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. Calling one function from within the body of another or using the return value of one function as an argument to the call of another.
body
composition (of functions)
parent class
modifier
2. The name and location of a file within a file system.
path
naming collision
byte code
tuple
3. 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.
linked queue
object
generalize
standard library
4. Memory that can maintain its state without power. Hard drives and flash drives and rewritable compact disks (CD-RW) are examples of such memory.
import statement
default value
non-volatile memory
infinite recursion
5. A situation in which two or more names in a given namespace cannot be unambiguously resolved.
inheritance
naming collision
dot product
postorder
6. An error that occurs at runtime.
overflow
dead code
script
exception
7. A statement that creates a new function specifying its name and parameters and the statements it executes.
function definition
high-level language
modifier
key
8. An assertion that must be true in order for a method to work correctly.
precondition
executable
invariant
key
9. A bottom-most node in a tree with no children.
compile
leaf
namespace
text file
10. A string displayed by a command line interface indicating that commands can be entered.
chained conditional
command prompt
unit testing
dictionary
11. To divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).
return value
encapsulate
naming collision
object code
12. Any of the data types that consist of an ordered set of elements with each element identified by an index.
sequence
implementation
loop
binary operator
13. One of the named data items that makes up an instance.
attribute
function definition
token
root
14. A data structure that implements a collection using a sequence of linked nodes.
modulus operator
condition
linked list
docstring
15. One of the values in a list (or other sequence). The bracket operator selects elements of a list.
program
function composition
planned development
element
16. A special character that causes the cursor to move to the next tab stop on the current line.
encapsulate
runtime error
tab
immutable data type
17. A statement that assigns a value to a name (variable).
recursion
assignment statement
docstring
mapping type
18. The dot operator ( .) permits access to attributes and functions of a module.
child
unit testing
dot operator
postfix
19. A graphical representation of a set of variables and the values to which they refer.
flow of execution
state diagram
fundamental ambiguity theorem
file
20. 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.
boolean value
script
rules of precedence
optional parameter
21. The set of operations that define an ADT.
index
interface
header
iteration
22. An implementation of a queue using a linked list.
delimiter
compile
linked queue
clone
23. A thing to which a variable can refer.
object
comment
frame
handle an exception
24. A way to traverse a tree - visiting the children of each node before the node itself.
postorder
Queue
argument
invariant
25. A name that refers to a value.
interpret
accumulator
modulus operator
variable
26. 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.
body
infix
multiple assignment
semantics
27. An operation whose runtime is a linear function of the size of the data structure.
natural language
linear time
semantics
data structure
28. A way of developing programs starting with a prototype and gradually testing and improving it.
list
compile
prototype development
import statement
29. 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
dot operator
delimiter
hint
method
30. The sequence of characters read into the command interpreter in a command line interface.
delimiter
command line
source code
node
31. The code (or the person who wrote it) that implements an ADT.
namespace
provider
instance
boolean expression
32. A name used inside a function to refer to the value passed as an argument.
variable name
namespace
parameter
dead code
33. The output of the compiler after it translates the program.
object code
algorithm
index
assignment statement
34. The node that refers to a given node.
parent
interpret
natural language
invariant
35. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.
non-volatile memory
generic data structure
operator overloading
tuple
36. 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?
comparison operator
integer division
trichotomy
tab
37. Temporary storage of a precomputed value to avoid redundant computation.
tuple assignment
hint
source code
counter
38. An element of a list - usually implemented as an object that contains a reference to another object of the same type.
node
initialization method
argv (argument vector)
integer division
39. 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.
operand
delimiter
Queue
function
40. A function that returns a boolean value.
byte code
boolean function
priority queue
modulus operator
41. The sequential accessing of each element in a list.
initialization (of a variable)
list traversal
leaf
raise
42. An error in a program that makes it do something other than what the programmer intended.
attribute
semantic error
newline
postfix
43. To iterate through the elements of a set performing a similar operation on each.
semantic error
program
command line argument
traverse
44. To examine a program and analyze the syntactic structure.
data structure
optional parameter
sequence
parse
45. The value provided as the result of a function call.
return value
run time error
interpret
traverse
46. To represent one set of values using another set of values by constructing a mapping between them.
newline
interpret
encode
dictionary
47. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.
state diagram
helper
immutable data type
trace
48. The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.
veneer
return value
rules of precedence
level
49. A function that yields a return value.
parent class
fruitful function
tab
executable
50. The process of calling the function that is currently executing.
recursion
non-volatile memory
postorder
tail recursion