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. An operation whose runtime is a linear function of the size of the data structure.
object code
linear time
rules of precedence
syntax error
2. A way of developing programs starting with a prototype and gradually testing and improving it.
program
prototype development
parameter
pure function
3. A named collection of files - also called a folder.
trace
directory
concatenate
command line
4. Making more than one assignment to the same variable during the execution of a program.
initialization method
algorithm
body
multiple assignment
5. A variable defined inside a function. A local variable can only be used inside its function.
local variable
attribute
chained conditional
sequence
6. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.
non-volatile memory
traverse
operator overloading
cursor
7. Decrease by 1.
FIFO(First In First Out)
singleton
invariant
decrement
8. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.
decrement
trace
attribute
syntax error
9. A style of program design in which the majority of functions are pure.
concatenate
functional programming style
argv (argument vector)
composition (of functions)
10. A graphical representation of a stack of functions and their variables and the values to which they refer.
stack diagram
constant time
event loop
formal language
11. A collection of key-value pairs that maps from keys to values.
accumulator
dictionary
compound data type
operator overloading
12. A function that changes one or more of the objects it receives as parameters. Most modifiers are void.
algorithm
modifier
evaluate
increment
13. A conditional branch with more than two possible flows of execution.
keyword
token
chained conditional
tuple assignment
14. One of the operators that combines boolean expressions: and or and not.
logical operator
modulus operator
modifier
keyword
15. An error that does not occur until the program has started to execute but that prevents the program from continuing.
dot operator
object
runtime error
stack diagram
16. 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.
comment
file
continue statement
traverse
17. 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.
operator overloading
provider
accumulator
function
18. A branch of the conditional statement in a recursive function that does not result in a recursive call.
docstring
decrement
sequence
base case
19. An assertion that should be true of an object at all times (except perhaps while the object is being modified).
invariant
instance
compiler
logical operator
20. To simplify an expression by performing the operations in order to yield a single value.
hint
aliases
evaluate
incremental development
21. A numerical result that is too large to be represented in a numerical format.
overflow
mutable type
temporary variable
infinite recursion
22. A variable used to count something - usually initialized to zero and incremented in the body of a loop.
linked queue
level
traverse
counter
23. An operation defined in linear algebra that multiplies each of the coordinates of a Point by a numeric value.
incremental development
scalar multiplication
recursive call
parent
24. The value given to an optional parameter if no argument for it is provided in the function call.
default value
comparison operator
multiple assignment
dead code
25. Multiple variables that contain references to the same object.
aliases
recursive definition
bug
linked list
26. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.
syntax error
queue
recursive definition
tuple assignment
27. A character that is used to separate tokens such as punctuation in a natural language.
parse
delimiter
preorder
function composition
28. A tree in which each node refers to zero or one or two dependent nodes.
root
binary tree
import statement
command line
29. Generalization by reducing the information content of a concept.
logical operator
flow of execution
abstraction
wrapper
30. 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
nested loop
composition (of functions)
high-level language
31. The sequential accessing of each element in a list.
executable
object-oriented programming
precondition
list traversal
32. 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.
tuple
tail recursion
data type
nested list
33. The dot operator ( .) permits access to attributes and functions of a module.
linked list
dot operator
file
semantic error
34. An ordered set of objects waiting for a service of some kind.
queue
composition
modifier
local variable
35. A compound data type that is often used to model a thing or concept in the real world.
volatile memory
docstring
multiple assignment
object
36. The ability to define a new class that is a modified version of a previously defined class.
inheritance
increment
key
clone
37. A variable in the sys module which stores a list of command line arguments passed to a program at run time.
parent class
mutable type
pure function
argv (argument vector)
38. A step-by-step process for solving a category of problems.
header
stack diagram
trichotomy
algorithm
39. The name and location of a file within a file system.
function
path
composition
block
40. The code (or the person who wrote it) that implements an ADT.
high-level language
provider
loop
state diagram
41. Code that is used during program development but is not part of the final version.
script
scaffolding
raise
event loop
42. The output of the compiler after it translates the program.
object-oriented programming
object code
directory
attribute
43. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.
incremental development
instantiate
nesting
volatile memory
44. 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).
conditional statement
data type
attribute
accumulator
45. An embedded reference used to link one object to another.
instantiate
link
function definition
object
46. A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a
sequence
prefix notation
method
nesting
47. To examine a program and analyze the syntactic structure.
scaffolding
parse
continue statement
semantic error
48. An item of data contained in a node.
immutable
variable
formal language
cargo
49. A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language.
tuple
prototype development
low-level language
nesting
50. Code that satisfies the syntactic and semantic requirements of an interface.
wrapping code in a function
command line
implementation
delimiter