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. The statements inside a loop.
link
body
handle an exception
event loop
2. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.
helper
executable
dot product
random
3. A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result.
algorithm
index
function
test-driven development (TDD)
4. A statement that creates a new function specifying its name and parameters and the statements it executes.
composition
chained conditional
function definition
prefix notation
5. A data structure that implements a collection using a sequence of linked nodes.
linked list
node
pure function
multiple assignment
6. A queueing policy in which the first member to arrive is the first to be removed.
FIFO(First In First Out)
prompt
siblings
namespace
7. 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.
rules of precedence
priority queue
fruitful function
body
8. A character that is used to separate tokens such as punctuation in a natural language.
list comprehension
delimiter
singleton
low-level language
9. The output of the compiler after it translates the program.
object code
function definition
semantics
client
10. The second part of a compound statement. The body consists of a sequence of statements all indented the same amount from the beginning of the header.
generalize
method
body
trace
11. The ability to define a new class that is a modified version of a previously defined class.
compound data type
inheritance
variable name
bug
12. To signal an exception using the raise statement.
raise
boolean function
frame
data type
13. An expression in parentheses that acts as a single operand in a larger expression.
continue statement
semantic error
subexpression
tuple
14. A way to traverse a tree - visiting the children of each node before the node itself.
list comprehension
overflow
Priority Queue
postorder
15. An operation whose runtime does not depend on the size of the data structure.
overflow
constant time
random
test-driven development (TDD)
16. Multiple variables that contain references to the same object.
portability
abstract data type (ADT)
file
aliases
17. A change in the state of a program made by calling a function that is not a result of reading the return value from the function. Can only be produced by modifiers.
side effect
constant time
implementation
slice
18. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.
value
text file
command line
composition (of functions)
19. An ADT that defines the operations one might perform on a priority queue.
node
fundamental ambiguity theorem
Priority Queue
standard library
20. A numerical result that is too large to be represented in a numerical format.
overflow
composition
constant
infix
21. The node that refers to a given node.
precondition
generic data structure
parent
delimiter
22. The process of finding and removing any of the three kinds of programming errors.
compound data type
composition
operator overloading
debugging
23. A signal such as a keyboard press or mouse click or message from another program.
client
event
rules of precedence
variable name
24. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.
parameter
token
child
body
25. A set of instructions for solving a class of problems by a mechanical and unintelligent process.
trichotomy
algorithm
syntax error
function
26. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.
docstring
optional parameter
delimiter
prompt
27. One of the possible paths of the flow of execution determined by conditional execution.
command line argument
formal language
mutable type
branch
28. Making more than one assignment to the same variable during the execution of a program.
formal language
multiple assignment
infix
modulus operator
29. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.
traverse
trace
compound statement
leaf
30. One of the values on which an operator operates.
nesting
runtime error
operand
functional programming style
31. Code that is used during program development but is not part of the final version.
class attribute
scaffolding
accumulator
compile
32. A data type that contains a sequence of elements of any type - like a list but is immutable. Can be used wherever an immutable type is required.
initialization method
incremental development
fundamental ambiguity theorem
tuple
33. An operator that takes two operands.
binary operator
formal language
parameter
index
34. A function that returns a boolean value.
element
boolean function
branch
veneer
35. An expression that is either true or false.
command line
parse
boolean expression
data type
36. A statement which makes the objects contained in a module available for use within another module.
incremental development
import statement
postfix
return value
37. A name given to a variable.
initialization (of a variable)
parent
incremental development
variable name
38. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.
tail recursion
list comprehension
initialization (of a variable)
executable
39. One of the values in a list (or other sequence). The bracket operator selects elements of a list.
cursor
element
prompt
constant
40. A statement that causes the current iteration of a loop to end.
script
parse
continue statement
preorder
41. An assertion that should be true of an object at all times (except perhaps while the object is being modified).
body
child class
abstraction
invariant
42. Given any real numbers a and b exactly one of the following relations holds: a < b or a > b or a = b. Thus when you can establish that two of the relations are false you can assume the remaining one is true. What is it called?
exception
delimiter
trichotomy
default value
43. A character or string used to indicate where a string should be split.
infinite recursion
delimiter
syntax error
conditional statement
44. A data type in which the elements can be modified. It is a compound type - e.g. lists.
step size
subexpression
mode
mutable type
45. Repeated execution of a set of programming statements.
tuple assignment
iteration
leaf
dot operator
46. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.
semantics
recursion
modifier
fruitful function
47. A situation in which two or more names in a given namespace cannot be unambiguously resolved.
naming collision
import statement
branch
iteration
48. The sequence of characters read into the command interpreter in a command line interface.
abstraction
node
command line
continue statement
49. A property of a program that can run on more than one kind of computer.
modifier
portability
implementation
problem solving
50. 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.
overflow
debugging
function composition
step size