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 statements inside a loop.
provider
compound statement
list comprehension
body
2. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.
modulus operator
infix
unit testing
runtime error
3. Making more than one assignment to the same variable during the execution of a program.
syntactical errors
object-oriented language
constant
multiple assignment
4. A combination of variables and operators and values that represents a single result value.
expression
nested loop
conditional statement
constant time
5. A way to traverse a tree - visiting the children of each node before the node itself.
linear time
postorder
syntax error
value
6. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
queueing policy
interpret
key-value pair
composition (of functions)
7. A method that acts as a middleman between a caller and a helper method - often making the method easier or less error-prone to invoke.
object
dictionary
veneer
wrapper
8. Nodes that share a common parent.
siblings
initialization (of a variable)
key
method
9. A numerical result that is too large to be represented in a numerical format.
traceback
docstring
overflow
mutable type
10. A graphical representation of a stack of functions and their variables and the values to which they refer.
formal language
stack diagram
file system
random
11. A programming construct that waits for events and processes them.
event loop
mode
naming collision
nested loop
12. An element of a list - usually implemented as an object that contains a reference to another object of the same type.
compound statement
immutable data type
node
script
13. To create a new object that has the same value as an existing object.
composition
exception
clone
file
14. A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses.
list comprehension
immutable
function call
wrapping code in a function
15. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.
parameter
command line argument
dot notation
initialization method
16. A style of programming in which data and the operations that manipulate it are organized into classes and methods.
object-oriented programming
scaffolding
fundamental ambiguity theorem
traverse
17. Code that is used during program development but is not part of the final version.
keyword
scaffolding
root
syntactical errors
18. An organization of data for the purpose of making it easier to use.
non-volatile memory
newline
boolean function
data structure
19. An error that occurs at runtime.
exception
inorder
key-value pair
queueing policy
20. A property of a program that can run on more than one kind of computer.
portability
trace
method
command prompt
21. A variable defined inside a function. A local variable can only be used inside its function.
local variable
branch
multiple assignment
dot notation
22. A branch of the conditional statement in a recursive function that does not result in a recursive call.
argument
linked list
base case
level
23. A part of a string (substring) specified by a range of indices.
tab
dot notation
slice
preorder
24. 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.
argument
tuple
parent
formal language
25. A statement that controls the flow of execution depending on some condition.
nested list
conditional statement
dead code
local 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.
fundamental ambiguity theorem
comment
instantiate
body
27. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.
loop
tail recursion
file system
frame
28. One of the named data items that makes up an instance.
trace
attribute
command prompt
unit testing
29. The value provided as the result of a function call.
child
client
parse
return value
30. A kind of data structure that can contain data of any type.
generic data structure
precondition
instantiate
flow of execution
31. A named collection of objects where each object is identified by an index.
list
fundamental ambiguity theorem
linked list
standard library
32. Both as a noun and as a verb - it means to increase by 1.
handle an exception
branch
increment
key-value pair
33. A reference to a list node can be treated as a single object or as the first in a list of nodes.
run time error
hint
fundamental ambiguity theorem
command line argument
34. The code (or the person who wrote it) that implements an ADT.
functional programming style
function call
provider
block
35. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.
helper
index
standard library
abstract data type (ADT)
36. An assertion that must be true in order for a method to work correctly.
precondition
formal language
infinite recursion
parent
37. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.
exception
state diagram
object-oriented language
executable
38. An ADT that defines the operations one might perform on a priority queue.
counter
immutable
test-driven development (TDD)
Priority Queue
39. A loop inside the body of another loop.
exception
standard library
tuple
nested loop
40. A process for developing a program.
compile
development plan
pure function
parameter
41. An expression that is either true or false.
boolean expression
sequence
object code
queue
42. To prevent an exception from terminating a program using the try and except statements.
increment
variable name
stack diagram
handle an exception
43. The name and location of a file within a file system.
infix
exception
nesting
path
44. One of the nodes referred to by a node.
semantic error
data type
expression
child
45. A syntactic container providing a context for names so that the same name can reside in different namespaces without ambiguity.
pure function
syntax
namespace
index
46. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.
file
unit testing
low-level language
standard library
47. The structure of a program.
list comprehension
syntax
handle an exception
initialization (of a variable)
48. Generalization by reducing the information content of a concept.
queue
nested loop
immutable
abstraction
49. Having no specific pattern. Unpredictable.
random
mode
modifier
traceback
50. 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.
development plan
keyword
standard library
counter