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 variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.
invariant
accumulator
argv (argument vector)
dot product
2. An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.
binary tree
integer division
tail recursion
expression
3. An assertion that should be true of an object at all times (except perhaps while the object is being modified).
tail recursion
modifier
event
invariant
4. An ADT that performs the operations one might perform on a queue.
function call
Queue
parent
algorithm
5. A list that is an element of another list.
nested list
linked queue
escape sequence
level
6. A combination of variables and operators and values that represents a single result value.
expression
mutable type
compile
parent
7. An item of data contained in a node.
cargo
stack diagram
integer division
prototype development
8. Making more than one assignment to the same variable during the execution of a program.
constant
syntactical errors
multiple assignment
FIFO(First In First Out)
9. To signal an exception using the raise statement.
standard library
tuple assignment
raise
nested loop
10. The set of nodes equidistant from the root.
object-oriented language
semantics
level
data structure
11. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
argument
file
immutable
binary tree
12. 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.
optional parameter
semantics
priority queue
parent class
13. A numerical value that does not change during the execution of a program.
iteration
argument
overflow
constant
14. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.
parent
expression
executable
incremental development
15. 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
base case
method
newline
dot operator
16. To examine a program and analyze the syntactic structure.
parse
unit testing
infinite recursion
temporary variable
17. A new class created by inheriting from an existing class; also called a subclass.
child class
unit testing
linear time
interface
18. A variable defined inside a module - accessed by using the dot operator ( .).
tail recursion
debugging
attribute
run time error
19. A variable used as part of the terminating condition of a loop.
attribute
loop variable
object-oriented programming
provider
20. An error that occurs at runtime.
escape sequence
exception
increment
parent class
21. Use of the dot operator '.' to access functions inside a module.
argv (argument vector)
list traversal
level
dot notation
22. The name and location of a file within a file system.
path
nested loop
body
exception
23. To replace something unnecessarily specific (like a constant value) with something appropriately general (like a variable or parameter). It makes code more versatile - more likely to be reused and sometimes even easier to write.
operator overloading
generalize
value
multiple assignment
24. An automatic procedure used to validate that individual units of code are working properly.
unit testing
dictionary
traverse
interface
25. An error in a program that makes it do something other than what the programmer intended.
semantic error
embedded reference
preorder
overflow
26. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.
composition (of functions)
provider
docstring
loop
27. To prevent an exception from terminating a program using the try and except statements.
handle an exception
infix
step size
compound data type
28. A list of the functions that are executing - printed when a runtime error occurs. Also commonly refered to as a stack trace since it lists the functions in the order in which they are stored in the runtime stack.
object
linked queue
traceback
object-oriented programming
29. The process of calling the function that is currently executing.
recursion
body
parse
development plan
30. A name given to a variable.
variable name
class attribute
infinite recursion
file system
31. Generalization by reducing the information content of a concept.
abstraction
body
variable name
slice
32. A compound data type whose elements cannot be assigned new values.
function
high-level language
base case
immutable
33. An operation defined in linear algebra that multiplies two Points and yields a numeric value.
function
import statement
mutable type
dot product
34. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.
modulus operator
trace
boolean value
semantics
35. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.
problem solving
client
list comprehension
list traversal
36. A variable that is defined inside a class definition but outside any method. These are accessible from any method in the class and are shared by all instances of the class.
source code
logical operator
prototype development
class attribute
37. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.
linked queue
syntax
branch
initialization (of a variable)
38. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.
generic data structure
whitespace
preorder
optional parameter
39. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.
planned development
tab
initialization (of a variable)
subexpression
40. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.
composition
keyword
step size
nested list
41. An element of a list - usually implemented as an object that contains a reference to another object of the same type.
index
node
embedded reference
function definition
42. Multiple variables that contain references to the same object.
veneer
aliases
mutable data type
flow of execution
43. A loop in which the terminating condition is never satisfied.
mutable type
linear time
infinite loop
constant time
44. An implementation of a queue using a linked list.
boolean value
linked queue
command line
siblings
45. The boolean expression in a conditional statement that determines which branch is executed.
queue
infinite loop
condition
infix
46. A collection of key-value pairs that maps from keys to values.
instantiate
dictionary
high-level language
increment
47. A numerical result that is too large to be represented in a numerical format.
modifier
veneer
overflow
client
48. An explicit statement that takes a value of one type and computes a corresponding value of another type.
prototype development
loop
queue
type conversion
49. An ADT that defines the operations one might perform on a priority queue.
Priority Queue
link
escape sequence
dot product
50. An integer variable or value that indicates an element of a list.
trace
index
operator
semantic error