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 string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.
random
docstring
program
veneer
2. A statement which makes the objects contained in a module available for use within another module.
clone
variable
delimiter
import statement
3. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.
token
child
incremental development
prototype development
4. 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.
aliases
argv (argument vector)
formal language
encode
5. The process of calling the function that is currently executing.
recursion
low-level language
preorder
initialization (of a variable)
6. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.
continue statement
nested loop
mutable type
wrapping code in a function
7. Another name for object code that is ready to be executed.
composition (of functions)
executable
instantiate
child class
8. An expression in parentheses that acts as a single operand in a larger expression.
subexpression
method
integer division
data structure
9. One program structure within another - such as a conditional statement inside a branch of another conditional statement.
nesting
logical operator
slice
random
10. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.
tuple
base case
nesting
trace
11. 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.
body
evaluate
child
composition
12. A variable used as part of the terminating condition of a loop.
type conversion
loop variable
variable name
preorder
13. A graphical representation of a set of variables and the values to which they refer.
script
instantiate
state diagram
tuple assignment
14. A function that changes one or more of the objects it receives as parameters. Most modifiers are void.
modifier
formal language
state diagram
wrapping code in a function
15. A variable or value used to select a member of an ordered set - such as a character from a string.
compound statement
index
syntactical errors
object code
16. A character or string used to indicate where a string should be split.
dictionary
linked queue
handle an exception
delimiter
17. A compound data type that is often used to model a thing or concept in the real world.
data structure
loop variable
object
trace
18. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.
initialization method
variable name
object
frame
19. A method for naming and accessing and organizing files and the data they contain.
parameter
operand
prefix notation
file system
20. The ability to define a new class that is a modified version of a previously defined class.
flow of execution
logical operator
function call
inheritance
21. The order in which statements are executed during a program run.
fundamental ambiguity theorem
comment
preorder
flow of execution
22. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).
command line argument
invariant
operator overloading
Queue
23. An ordered set of objects waiting for a service of some kind.
queue
data structure
high-level language
debugging
24. 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.
class attribute
increment
formal language
traceback
25. A data type in which the elements can be modified. It is a compound type - e.g. lists.
constant time
scaffolding
helper
mutable type
26. A branch of the conditional statement in a recursive function that does not result in a recursive call.
exception
functional programming style
event
base case
27. A style of program design in which the majority of functions are pure.
file
keyword
low-level language
functional programming style
28. A set of instructions for solving a class of problems by a mechanical and unintelligent process.
algorithm
nested list
delimiter
multiple assignment
29. An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.
program
child class
boolean expression
integer division
30. A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result.
constant time
object-oriented programming
compile
function
31. A way to traverse a tree - visiting the children of each node before the node itself.
parameter
nesting
subexpression
postorder
32. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.
inorder
run time error
key
trace
33. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
command prompt
condition
key-value pair
event loop
34. The set of operations that define an ADT.
whitespace
cargo
loop
interface
35. The name and location of a file within a file system.
parse
clone
path
unit testing
36. A variable in the sys module which stores a list of command line arguments passed to a program at run time.
condition
argv (argument vector)
command prompt
Queue
37. To divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).
encapsulate
linked queue
node
handle an exception
38. Temporary storage of a precomputed value to avoid redundant computation.
boolean function
frame
binary tree
hint
39. An operation whose runtime does not depend on the size of the data structure.
constant time
syntactical errors
continue statement
trichotomy
40. A way of writing a mathematical expression with each operator appearing before its operands.
return value
pure function
prefix notation
Priority Queue
41. Memory which requires an electrical current to maintain state. Information stored is lost when the computer is turned off.
return value
modifier
flow of execution
volatile memory
42. An escape character '' followed by one or more printable characters used to designate a nonprintable character.
list traversal
child
token
escape sequence
43. A statement that assigns a value to a name (variable).
algorithm
FIFO(First In First Out)
assignment statement
non-volatile memory
44. One of the named data items that makes up an instance.
node
attribute
slice
import statement
45. To represent one set of values using another set of values by constructing a mapping between them.
encode
runtime error
interface
subexpression
46. To create an instance of a class.
instantiate
traceback
comparison operator
low-level language
47. A named collection of files - also called a folder.
syntactical errors
object-oriented language
directory
prototype development
48. An error in a program.
dot product
data type
random
bug
49. A combination of variables and operators and values that represents a single result value.
key-value pair
expression
object
state diagram
50. 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.
stack diagram
siblings
step size
token