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 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.
syntax error
low-level language
continue statement
step size
2. A distinct method of operation within a computer program.
random
command line argument
aliases
mode
3. The dot operator ( .) permits access to attributes and functions of a module.
exception
dot operator
source code
fundamental ambiguity theorem
4. A character that is used to separate tokens such as punctuation in a natural language.
prompt
postfix
delimiter
test-driven development (TDD)
5. An escape character '' followed by one or more printable characters used to designate a nonprintable character.
dot operator
linear time
escape sequence
command line
6. The boolean expression in a conditional statement that determines which branch is executed.
siblings
evaluate
condition
scaffolding
7. A group of consecutive statements with the same indentation.
attribute
dead code
block
Queue
8. The node that refers to a given node.
exception
exception
invariant
parent
9. A data item that is mapped to a value in a dictionary. Used to look up values in a dictionary.
key
portability
trichotomy
value
10. Nodes that share a common parent.
generalize
integer division
object
siblings
11. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.
tab
syntactical errors
composition
text file
12. A variable or value used to select a member of an ordered set - such as a character from a string.
initialization (of a variable)
inheritance
index
object code
13. 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.
node
command prompt
parent
composition (of functions)
14. An assertion that should be true of an object at all times (except perhaps while the object is being modified).
frame
optional parameter
invariant
value
15. To prevent an exception from terminating a program using the try and except statements.
handle an exception
frame
body
assignment statement
16. Multiple variables that contain references to the same object.
decrement
aliases
initialization method
queue
17. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.
file
rules of precedence
subexpression
delimiter
18. A numerical value that does not change during the execution of a program.
side effect
variable name
constant
conditional statement
19. A reference to a list node can be treated as a single object or as the first in a list of nodes.
command line
multiple assignment
recursive call
fundamental ambiguity theorem
20. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.
condition
tuple
frame
postorder
21. An expression in parentheses that acts as a single operand in a larger expression.
polymorphic
subexpression
infinite recursion
clone
22. An intermediate language between source code and object code. Many modern languages first compile source code into byte code and then interpret the byte code with a program called a virtual machine.
byte code
scaffolding
operand
pure function
23. A list that is an element of another list.
priority queue
nested list
flow of execution
linked list
24. A statement which makes the objects contained in a module available for use within another module.
import statement
nested list
delimiter
pure function
25. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.
modulus operator
child
class
condition
26. The name and location of a file within a file system.
Priority Queue
mutable type
path
inorder
27. A compound data type that is often used to model a thing or concept in the real world.
recursion
object
node
abstraction
28. A way to traverse a tree - visiting the children of each node before the node itself.
instance
multiple assignment
postorder
data type
29. A syntactic container providing a context for names so that the same name can reside in different namespaces without ambiguity.
interface
namespace
conditional statement
infix
30. 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.
token
constant time
instance
wrapping code in a function
31. Memory that can maintain its state without power. Hard drives and flash drives and rewritable compact disks (CD-RW) are examples of such memory.
non-volatile memory
base case
pure function
argument
32. A general process for solving a category of problems.
prototype development
algorithm
aliases
branch
33. A sequence of one or more characters used to specify the boundary between separate parts of text.
script
interface
delimiter
siblings
34. Decrease by 1.
instantiate
decrement
body
abstraction
35. One of the values on which an operator operates.
operand
function
low-level language
abstraction
36. An invisible marker that keeps track of where the next character will be printed.
cursor
natural language
token
mutable data type
37. Any of the data types that consist of an ordered set of elements with each element identified by an index.
import statement
exception
sequence
exception
38. A library is a collection of software used as tools in the development of other software.
generic data structure
scaffolding
standard library
import statement
39. The output of the compiler after it translates the program.
clone
prefix notation
whitespace
object code
40. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.
branch
rules of precedence
docstring
decrement
41. One of the values in a list (or other sequence). The bracket operator selects elements of a list.
list comprehension
command line argument
parent class
element
42. A variable in the sys module which stores a list of command line arguments passed to a program at run time.
argv (argument vector)
namespace
method
method
43. A conditional branch with more than two possible flows of execution.
chained conditional
return value
linked queue
fruitful function
44. 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.
object
provider
integer division
argument
45. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.
command line
operator overloading
program
binary operator
46. A character or string used to indicate where a string should be split.
accumulator
delimiter
linked queue
subexpression
47. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
argument
binary operator
Queue
operator
48. An assertion that must be true in order for a method to work correctly.
high-level language
precondition
traverse
object code
49. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.
compound data type
initialization method
high-level language
inheritance
50. Another name for a runtime error.
veneer
key-value pair
exception
accumulator