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. One program structure within another - such as a conditional statement inside a branch of another conditional statement.
keyword
nesting
priority queue
function call
2. A linked list with a single node.
attribute
inheritance
singleton
abstraction
3. 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.
development plan
veneer
low-level language
type conversion
4. Repeated execution of a set of programming statements.
modulus operator
iteration
event loop
assignment statement
5. A statement that consists of two parts: header - which begins with a keyword determining the statement type and ends with a colon. body - containing one or more statements indented the same amount from the header.
operand
non-volatile memory
compound statement
linear time
6. A logical error which stops a program from performing.
multiple assignment
run time error
handle an exception
leaf
7. 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.
loop
development plan
constant
priority queue
8. The class from which a child class inherits.
parent class
mutable type
precondition
function
9. a sequence of instructions that specifies to a computer actions and computations to be performed.
data type
program
index
traceback
10. A syntactic container providing a context for names so that the same name can reside in different namespaces without ambiguity.
pure function
inorder
namespace
condition
11. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.
token
encapsulate
aliases
linear time
12. A method for naming and accessing and organizing files and the data they contain.
random
initialization method
object
file system
13. Code that is used during program development but is not part of the final version.
delimiter
scaffolding
comment
low-level language
14. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.
infinite recursion
method
object-oriented language
delimiter
15. A tree in which each node refers to zero or one or two dependent nodes.
binary tree
newline
expression
interface
16. Making more than one assignment to the same variable during the execution of a program.
exception
command line
invariant
multiple assignment
17. A kind of data structure that can contain data of any type.
function
modulus operator
generic data structure
keyword
18. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).
run time error
command line argument
compiler
attribute
19. Another name for object code that is ready to be executed.
element
executable
postorder
queueing policy
20. Use of the dot operator '.' to access functions inside a module.
method
program
boolean expression
dot notation
21. A step-by-step process for solving a category of problems.
file
algorithm
natural language
semantics
22. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.
modulus operator
parent class
hint
dot notation
23. The topmost node in a tree with no parent.
comparison operator
fruitful function
escape sequence
root
24. Using the output from one function call as the input to another.
variable name
escape sequence
inorder
function composition
25. A recursive call that occurs as the last statement (at the tail) of a function definition.
algorithm
immutable data type
client
tail recursion
26. Temporary storage of a precomputed value to avoid redundant computation.
infix
hint
continue statement
body
27. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.
immutable data type
hint
unit testing
list comprehension
28. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
key-value pair
evaluate
linked list
parse
29. 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.
return value
boolean value
tuple
test-driven development (TDD)
30. An error in a program.
encapsulate
level
runtime error
bug
31. A numerical value that does not change during the execution of a program.
body
constant
sequence
index
32. A special character that causes the cursor to move to the next tab stop on the current line.
tab
siblings
syntactical errors
infinite loop
33. A signal such as a keyboard press or mouse click or message from another program.
loop
semantics
implementation
event
34. The boolean expression in a conditional statement that determines which branch is executed.
condition
continue statement
object
escape sequence
35. To iterate through the elements of a set performing a similar operation on each.
state diagram
traverse
concatenate
interpret
36. 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.
infinite recursion
sequence
accumulator
helper
37. The statements inside a loop.
body
path
function call
recursive call
38. The name and location of a file within a file system.
path
index
functional programming style
evaluate
39. To prevent an exception from terminating a program using the try and except statements.
modulus operator
handle an exception
compiler
branch
40. A data type in which the values are made up of components or elements that are themselves values.
initialization (of a variable)
rules of precedence
compound data type
method
41. A programming language that is designed to be easy for humans to read and write.
step size
class attribute
high-level language
element
42. A way to traverse a tree - visiting the children of each node before the node itself.
Queue
base case
attribute
postorder
43. The order in which statements are executed during a program run.
scalar multiplication
compile
flow of execution
rules of precedence
44. 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.
level
traceback
constant time
exception
45. 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).
text file
data type
embedded reference
interpret
46. The set of nodes equidistant from the root.
formal language
semantic error
embedded reference
level
47. The meaning of a program.
method
inheritance
semantics
dictionary
48. A conditional branch with more than two possible flows of execution.
initialization method
dot product
token
chained conditional
49. A string displayed by a command line interface indicating that commands can be entered.
syntax error
handle an exception
command prompt
algorithm
50. A change in the state of a program made by calling a function that is not a result of reading the return value from the function. Can only be produced by modifiers.
side effect
instance
syntactical errors
flow of execution