SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Programming
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.
recursive call
body
recursion
token
2. A tree in which each node refers to zero or one or two dependent nodes.
binary tree
dictionary
siblings
algorithm
3. One program structure within another - such as a conditional statement inside a branch of another conditional statement.
header
queueing policy
binary operator
nesting
4. An escape character '' followed by one or more printable characters used to designate a nonprintable character.
escape sequence
text file
interpret
fruitful function
5. The process of finding and removing any of the three kinds of programming errors.
compile
debugging
dictionary
dead code
6. The interval between successive elements of a linear sequence. The third (and optional argument) to the range function is called the step size. If not specified it defaults to 1.
header
boolean function
client
step size
7. A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call.
dead code
optional parameter
algorithm
instance
8. An assertion that must be true in order for a method to work correctly.
comparison operator
interface
data structure
precondition
9. A kind of data structure that can contain data of any type.
parse
generic data structure
runtime error
mode
10. A function that yields a return value.
pure function
prefix notation
fruitful function
chained conditional
11. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.
object-oriented language
compile
script
list traversal
12. A recursive call that occurs as the last statement (at the tail) of a function definition.
non-volatile memory
boolean expression
constant
tail recursion
13. An operator that takes two operands.
object
constant
byte code
binary operator
14. A function that returns a boolean value.
interpret
command prompt
boolean function
source code
15. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.
infix
newline
docstring
singleton
16. A library is a collection of software used as tools in the development of other software.
standard library
tuple
import statement
compile
17. The process of formulating a problem and finding a solution and expressing the solution.
script
problem solving
infinite loop
encode
18. A process for developing a program.
development plan
veneer
script
command prompt
19. A loop in which the terminating condition is never satisfied.
infinite loop
naming collision
compound data type
command prompt
20. A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a
method
run time error
boolean value
linked list
21. Generalization by reducing the information content of a concept.
method
raise
abstraction
scalar multiplication
22. The meaning of a program.
syntax error
semantics
default value
escape sequence
23. An operation defined in linear algebra that multiplies two Points and yields a numeric value.
docstring
modifier
dot product
default value
24. A bottom-most node in a tree with no children.
keyword
optional parameter
leaf
mapping type
25. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.
file
conditional statement
wrapping code in a function
object-oriented language
26. A queueing policy in which each member has a priority determined by external factors. The member with the highest priority is the first to be removed.
runtime error
cursor
fruitful function
priority queue
27. An operation whose runtime does not depend on the size of the data structure.
instantiate
data type
comparison operator
constant time
28. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.
incremental development
immutable data type
object code
interface
29. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.
formal language
logical operator
value
natural language
30. To signal an exception using the raise statement.
variable name
raise
assignment statement
constant
31. Code that is used during program development but is not part of the final version.
scaffolding
continue statement
low-level language
integer division
32. The dot operator ( .) permits access to attributes and functions of a module.
Queue
subexpression
dot operator
generalize
33. To represent one set of values using another set of values by constructing a mapping between them.
key
syntax error
encode
operator overloading
34. The value given to an optional parameter if no argument for it is provided in the function call.
argument
formal language
docstring
default value
35. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.
path
whitespace
handle an exception
modulus operator
36. An explicit statement that takes a value of one type and computes a corresponding value of another type.
directory
semantics
type conversion
scalar multiplication
37. A statement that consists of two parts: header - which begins with a keyword determining the statement type and ends with a colon. body - containing one or more statements indented the same amount from the header.
prototype development
compound statement
infinite recursion
modulus operator
38. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
key-value pair
encapsulate
link
attribute
39. A situation in which two or more names in a given namespace cannot be unambiguously resolved.
queue
root
naming collision
operator
40. A variable used to count something - usually initialized to zero and incremented in the body of a loop.
composition
exception
FIFO(First In First Out)
counter
41. An assertion that should be true of an object at all times (except perhaps while the object is being modified).
data type
namespace
chained conditional
invariant
42. A statement that controls the flow of execution depending on some condition.
conditional statement
development plan
index
chained conditional
43. The sequence of characters read into the command interpreter in a command line interface.
compile
linear time
command line
modifier
44. A variable used to store an intermediate value in a complex calculation.
boolean function
unit testing
executable
temporary variable
45. The topmost node in a tree with no parent.
root
syntax
keyword
recursive call
46. An error in a program that makes it impossible to parse
delimiter
syntax error
multiple assignment
formal language
47. The structure of a program.
inheritance
dot notation
element
syntax
48. A variable in the sys module which stores a list of command line arguments passed to a program at run time.
integer division
iteration
exception
argv (argument vector)
49. A variable used as part of the terminating condition of a loop.
loop variable
composition (of functions)
tail recursion
function definition
50. A visual cue that tells the user to input data.
encode
problem solving
formal language
prompt