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 function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.
tab
infinite recursion
test-driven development (TDD)
infinite loop
2. Any one of the languages that people speak that evolved naturally.
instantiate
prototype development
initialization (of a variable)
natural language
3. A string displayed by a command line interface indicating that commands can be entered.
flow of execution
traverse
command prompt
abstraction
4. A function that changes one or more of the objects it receives as parameters. Most modifiers are void.
default value
chained conditional
modifier
level
5. The class from which a child class inherits.
exception
wrapper
parent class
event
6. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.
file system
docstring
exception
node
7. An assertion that must be true in order for a method to work correctly.
tuple assignment
infinite loop
precondition
rules of precedence
8. A style of program design in which the majority of functions are pure.
increment
functional programming style
function composition
aliases
9. Any one of the languages that people have designed for specific purposes - such as representing mathematical ideas or computer programs; all programming languages are formal languages.
leaf
functional programming style
encapsulate
formal language
10. Code that satisfies the syntactic and semantic requirements of an interface.
nesting
implementation
provider
condition
11. A set of values. The type of a value determines how it can be used in expressions. So far the types you have seen are integers (type int) and floating-point numbers (type float) and strings (type str).
implementation
Priority Queue
data type
default value
12. 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.
traceback
list comprehension
function definition
token
13. To signal an exception using the raise statement.
Priority Queue
stack diagram
run time error
raise
14. An ADT that defines the operations one might perform on a priority queue.
Priority Queue
level
linked list
argument
15. The value given to an optional parameter if no argument for it is provided in the function call.
algorithm
condition
default value
increment
16. A character or string used to indicate where a string should be split.
delimiter
syntax
tuple assignment
immutable data type
17. A statement that causes the current iteration of a loop to end.
continue statement
index
generic data structure
tab
18. An assertion that should be true of an object at all times (except perhaps while the object is being modified).
FIFO(First In First Out)
state diagram
invariant
encode
19. A graphical representation of a set of variables and the values to which they refer.
syntax error
file
key
state diagram
20. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.
key
delimiter
boolean value
list comprehension
21. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.
modulus operator
source code
interpret
expression
22. A data type in which the values are made up of components or elements that are themselves values.
boolean value
base case
class attribute
compound data type
23. An error in a program.
non-volatile memory
bug
wrapping code in a function
leaf
24. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
object-oriented language
child class
postfix
key-value pair
25. A class definition that implements an ADT with method definitions that are invocations of other methods - sometimes with simple transformations. It does no significant work but it improves or standardizes the interface seen by the client.
conditional statement
variable name
veneer
key-value pair
26. A thing to which a variable can refer.
argv (argument vector)
data structure
object
pure function
27. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.
algorithm
directory
trace
overflow
28. 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.
tuple
low-level language
debugging
condition
29. The block of statements in a compound statement that follows the header.
header
fundamental ambiguity theorem
child class
body
30. A way of developing programs starting with a prototype and gradually testing and improving it.
raise
list
nested list
prototype development
31. An escape character '' followed by one or more printable characters used to designate a nonprintable character.
interface
variable name
escape sequence
prompt
32. A data type comprised of a collection of keys and associated values.
mapping type
immutable
function definition
modifier
33. One of the operators that compares two values: == or != or > or < or >= and <=.
implementation
list comprehension
comparison operator
queue
34. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.
test-driven development (TDD)
invariant
value
compile
35. A special character that causes the cursor to move to the next tab stop on the current line.
tab
problem solving
parent class
compiler
36. A program stored in a file (usually one that will be interpreted).
script
attribute
child class
dead code
37. A function that yields a return value.
function definition
fruitful function
decrement
operator
38. The ability to define a new class that is a modified version of a previously defined class.
object
inheritance
syntactical errors
functional programming style
39. Function-like attribute of an object. Methods are invoked (called) on an object using the dot operator.
exception
function
method
text file
40. A branch of the conditional statement in a recursive function that does not result in a recursive call.
base case
compound statement
argv (argument vector)
operator overloading
41. A variable in the sys module which stores a list of command line arguments passed to a program at run time.
instantiate
command prompt
wrapping code in a function
argv (argument vector)
42. A special character that causes the cursor to move to the beginning of the next line.
singleton
body
newline
block
43. A reference stored in an attribute of an object.
compound statement
path
inheritance
embedded reference
44. A way to traverse a tree - visiting the children of each node before the node itself.
mutable data type
postorder
index
nesting
45. A variable or value used to select a member of an ordered set - such as a character from a string.
argv (argument vector)
index
Queue
handle an exception
46. The statement in a recursive function with is a call to itself.
recursive call
boolean function
algorithm
client
47. A sequence of one or more characters used to specify the boundary between separate parts of text.
invariant
escape sequence
delimiter
trace
48. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.
inorder
data structure
increment
file
49. A statement that creates a new function specifying its name and parameters and the statements it executes.
helper
function definition
operator
interpret
50. A way of writing mathematical expressions with the operators after the operands.
postfix
decrement
data type
header