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 program (or the person who wrote it) that uses an ADT.
linked queue
client
prompt
handle an exception
2. The order in which statements are executed during a program run.
encapsulate
traverse
child
flow of execution
3. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).
object-oriented programming
assignment statement
command line argument
slice
4. Nodes that share a common parent.
algorithm
siblings
variable
stack diagram
5. 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.
step size
dot operator
compound statement
generalize
6. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.
planned development
modulus operator
helper
functional programming style
7. A graphical representation of a set of variables and the values to which they refer.
dot notation
path
state diagram
dead code
8. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.
file
tuple assignment
list comprehension
logical operator
9. 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.
composition (of functions)
modulus operator
random
high-level language
10. A combination of variables and operators and values that represents a single result value.
loop variable
priority queue
expression
source code
11. A loop inside the body of another loop.
boolean value
nested loop
mode
attribute
12. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.
newline
algorithm
run time error
whitespace
13. One of the basic elements of the syntactic structure of a program - analogous to a word in a natural language.
compound statement
token
problem solving
syntax error
14. An expression that is either true or false.
body
exception
mutable data type
boolean expression
15. To examine a program and analyze the syntactic structure.
dead code
encode
object code
parse
16. An element of a list - usually implemented as an object that contains a reference to another object of the same type.
node
branch
encode
key
17. Use of the dot operator '.' to access functions inside a module.
command line argument
index
dot notation
program
18. A statement which makes the objects contained in a module available for use within another module.
import statement
method
command prompt
iteration
19. A data type in which the elements can be modified. It is a compound type - e.g. lists.
hint
mutable type
problem solving
import statement
20. An assignment to all of the elements in a tuple using a single assignment statement. Useful for swapping values.
sequence
standard library
tuple assignment
random
21. Repeated execution of a set of programming statements.
algorithm
iteration
exception
key
22. A variable that is defined inside a class definition but outside any method. These are accessible from any method in the class and are shared by all instances of the class.
level
object-oriented programming
precondition
class attribute
23. A logical error which stops a program from performing.
file
exception
run time error
frame
24. A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language.
functional programming style
function
composition (of functions)
low-level language
25. To execute a program in a high-level language by translating it one line at a time.
trace
interpret
instantiate
fruitful function
26. A style of programming in which data and the operations that manipulate it are organized into classes and methods.
functional programming style
body
object-oriented programming
problem solving
27. A named collection of objects where each object is identified by an index.
planned development
list
high-level language
object-oriented programming
28. To create an instance of a class.
comment
low-level language
instantiate
encapsulate
29. A recursive call that occurs as the last statement (at the tail) of a function definition.
expression
tail recursion
condition
text file
30. Code that satisfies the syntactic and semantic requirements of an interface.
infinite recursion
element
implementation
binary tree
31. 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.
text file
veneer
rules of precedence
low-level language
32. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.
tail recursion
linear time
initialization method
argument
33. A file that contains printable characters organized into lines separated by newline characters.
text file
formal language
conditional statement
linear time
34. A programming language that is designed to be easy for humans to read and write.
non-volatile memory
veneer
high-level language
chained conditional
35. A way of developing programs starting with a prototype and gradually testing and improving it.
parent class
queueing policy
prototype development
exception
36. One of the operators that combines boolean expressions: and or and not.
tab
attribute
logical operator
planned development
37. A function that changes one or more of the objects it receives as parameters. Most modifiers are void.
fruitful function
modifier
file
scalar multiplication
38. An operation whose runtime is a linear function of the size of the data structure.
semantics
block
exception
linear time
39. The statement in a recursive function with is a call to itself.
boolean expression
recursive call
binary operator
portability
40. An error in a program that makes it do something other than what the programmer intended.
random
side effect
semantic error
implementation
41. The process of calling the function that is currently executing.
recursion
natural language
modulus operator
run time error
42. 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.
encode
mutable data type
child class
priority queue
43. A sequence of one or more characters used to specify the boundary between separate parts of text.
FIFO(First In First Out)
priority queue
delimiter
docstring
44. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.
run time error
prompt
planned development
queue
45. One of the operators that compares two values: == or != or > or < or >= and <=.
comparison operator
prefix notation
syntax error
parse
46. A special character that causes the cursor to move to the beginning of the next line.
tab
newline
optional parameter
inheritance
47. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.
continue statement
helper
child class
token
48. A data structure that implements a collection using a sequence of linked nodes.
file
dot product
linked list
binary operator
49. A general process for solving a category of problems.
algorithm
exception
recursion
loop
50. 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.
embedded reference
linked list
accumulator
docstring