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 new class created by inheriting from an existing class; also called a subclass.
incremental development
child class
scaffolding
exception
2. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
step size
file system
argument
exception
3. The rules that determine which member of a queue is removed next.
portability
data type
loop
queueing policy
4. A collection of key-value pairs that maps from keys to values.
child class
dictionary
Priority Queue
counter
5. The process of formulating a problem and finding a solution and expressing the solution.
Queue
compile
list comprehension
problem solving
6. The sequential accessing of each element in a list.
Queue
postorder
formal language
list traversal
7. A situation in which two or more names in a given namespace cannot be unambiguously resolved.
delimiter
root
naming collision
test-driven development (TDD)
8. To execute a program in a high-level language by translating it one line at a time.
keyword
interpret
element
dot operator
9. A reserved word that is used by the compiler to parse program; you cannot use keywords like if or def or while as variable names.
object
preorder
client
keyword
10. Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.
increment
client
comment
aliases
11. One of the operators that compares two values: == or != or > or < or >= and <=.
optional parameter
aliases
comment
comparison operator
12. The structure of a program.
syntax
wrapper
method
base case
13. The process of calling the function that is currently executing.
token
recursion
variable name
tail recursion
14. The process of finding and removing any of the three kinds of programming errors.
linear time
immutable
link
debugging
15. One of the possible paths of the flow of execution determined by conditional execution.
high-level language
parent
branch
constant time
16. An automatic procedure used to validate that individual units of code are working properly.
unit testing
run time error
executable
child class
17. An invisible marker that keeps track of where the next character will be printed.
composition
cursor
singleton
provider
18. One of the operators that combines boolean expressions: and or and not.
logical operator
comment
attribute
tuple
19. A data type which can be modified.
counter
mutable data type
random
argument
20. A way of writing mathematical expressions with the operators after the operands.
variable
body
keyword
postfix
21. A variable used to count something - usually initialized to zero and incremented in the body of a loop.
delimiter
naming collision
key-value pair
counter
22. 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.
modifier
import statement
priority queue
command line
23. To create a new object that has the same value as an existing object.
type conversion
recursion
clone
temporary variable
24. An error in a program that makes it do something other than what the programmer intended.
semantic error
cursor
body
traverse
25. To represent one set of values using another set of values by constructing a mapping between them.
event
variable name
encode
delimiter
26. An assertion that should be true of an object at all times (except perhaps while the object is being modified).
low-level language
linked queue
invariant
variable name
27. An error in a program that makes it impossible to parse
interpret
mutable data type
syntax error
traverse
28. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.
embedded reference
modifier
composition (of functions)
method
29. Both as a noun and as a verb - it means to increase by 1.
increment
parse
singleton
composition (of functions)
30. An operation whose runtime is a linear function of the size of the data structure.
low-level language
aliases
linear time
delimiter
31. Decrease by 1.
decrement
initialization method
exception
delimiter
32. A graphical representation of a stack of functions and their variables and the values to which they refer.
polymorphic
child class
stack diagram
assignment statement
33. A list that is an element of another list.
debugging
nested list
mapping type
child
34. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.
data type
variable
file
formal language
35. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.
object code
loop
nesting
parent class
36. A variable defined inside a module - accessed by using the dot operator ( .).
provider
attribute
file
link
37. An ADT that defines the operations one might perform on a priority queue.
natural language
inheritance
Priority Queue
docstring
38. An assertion that must be true in order for a method to work correctly.
precondition
optional parameter
immutable data type
interpret
39. A branch of the conditional statement in a recursive function that does not result in a recursive call.
delimiter
token
traverse
base case
40. A character or string used to indicate where a string should be split.
dead code
conditional statement
cargo
delimiter
41. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.
wrapping code in a function
singleton
nesting
recursive definition
42. A style of program design in which the majority of functions are pure.
functional programming style
encode
stack diagram
parent class
43. There are exactly two boolean values: True and False.
abstraction
tuple
boolean value
modifier
44. A thing to which a variable can refer.
object
generalize
delimiter
root
45. Temporary storage of a precomputed value to avoid redundant computation.
hint
random
body
byte code
46. A special symbol that represents a simple computation like addition or multiplication or string concatenation.
text file
function composition
operator
list comprehension
47. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.
queue
list comprehension
initialization (of a variable)
precondition
48. Code that is used during program development but is not part of the final version.
token
flow of execution
scaffolding
increment
49. An error that does not occur until the program has started to execute but that prevents the program from continuing.
continue statement
runtime error
event loop
modifier
50. 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).
return value
aliases
data type
conditional statement