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 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.
evaluate
random
overflow
body
2. A sequence of one or more characters used to specify the boundary between separate parts of text.
algorithm
leaf
function call
delimiter
3. A way of writing mathematical expressions with the operators after the operands.
inheritance
overflow
postfix
chained conditional
4. A function that does not modify any of the objects it receives as parameters. Most pure functions are fruitful.
dot product
local variable
method
pure function
5. 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).
boolean value
data type
functional programming style
child
6. 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.
Queue
body
class attribute
modifier
7. Another name for a runtime error.
exception
method
clone
embedded reference
8. A style of program design in which the majority of functions are pure.
body
postorder
functional programming style
operator overloading
9. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.
file
incremental development
mutable type
node
10. Multiple variables that contain references to the same object.
siblings
invariant
prefix notation
aliases
11. The statement in a recursive function with is a call to itself.
recursive call
encode
non-volatile memory
command prompt
12. A syntactic container providing a context for names so that the same name can reside in different namespaces without ambiguity.
program
namespace
instantiate
path
13. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.
mutable type
immutable
operand
class
14. An integer variable or value that indicates an element of a list.
exception
recursive definition
index
queue
15. A program stored in a file (usually one that will be interpreted).
interface
script
composition (of functions)
whitespace
16. A data type (usually a collection of objects) that is defined by a set of operations but that can be implemented in a variety of ways.
abstract data type (ADT)
root
parse
class
17. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.
list comprehension
object
modifier
dot operator
18. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.
compile
run time error
prototype development
low-level language
19. Nodes that share a common parent.
object code
siblings
instantiate
list traversal
20. A reference to a list node can be treated as a single object or as the first in a list of nodes.
cursor
decrement
nested loop
fundamental ambiguity theorem
21. A general process for solving a category of problems.
wrapping code in a function
scaffolding
algorithm
fruitful function
22. 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.
nested list
tuple
counter
side effect
23. One program structure within another - such as a conditional statement inside a branch of another conditional statement.
modifier
boolean function
nesting
algorithm
24. Given any real numbers a and b exactly one of the following relations holds: a < b or a > b or a = b. Thus when you can establish that two of the relations are false you can assume the remaining one is true. What is it called?
continue statement
infinite loop
trichotomy
syntactical errors
25. The output of the compiler after it translates the program.
compile
object code
command line
parse
26. To create an instance of a class.
attribute
infinite recursion
multiple assignment
instantiate
27. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
embedded reference
index
argument
infix
28. Another name for object code that is ready to be executed.
veneer
class
executable
modulus operator
29. An invisible marker that keeps track of where the next character will be printed.
cursor
multiple assignment
function definition
continue statement
30. 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.
return value
veneer
frame
boolean expression
31. A file that contains printable characters organized into lines separated by newline characters.
header
default value
hint
text file
32. An ADT that defines the operations one might perform on a priority queue.
generalize
Priority Queue
unit testing
immutable data type
33. 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.
volatile memory
comment
helper
compound data type
34. A compound data type whose elements cannot be assigned new values.
level
conditional statement
keyword
immutable
35. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.
inorder
attribute
delimiter
linked queue
36. An ordered set of objects waiting for a service of some kind.
queue
program
method
trace
37. A string displayed by a command line interface indicating that commands can be entered.
command prompt
child
return value
semantic error
38. One of the possible paths of the flow of execution determined by conditional execution.
branch
compiler
mapping type
raise
39. Function-like attribute of an object. Methods are invoked (called) on an object using the dot operator.
unit testing
method
class
script
40. A branch of the conditional statement in a recursive function that does not result in a recursive call.
temporary variable
base case
polymorphic
aliases
41. A way of writing mathematical expressions with the operators between the operands.
default value
infix
flow of execution
invariant
42. An operation whose runtime does not depend on the size of the data structure.
assignment statement
composition (of functions)
constant time
class
43. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.
state diagram
evaluate
frame
boolean function
44. A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses.
function call
file system
encapsulate
singleton
45. One of the named data items that makes up an instance.
attribute
list comprehension
traceback
delimiter
46. An item of data contained in a node.
instance
cargo
natural language
runtime error
47. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.
path
siblings
initialization (of a variable)
scaffolding
48. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.
portability
evaluate
fruitful function
token
49. Code that satisfies the syntactic and semantic requirements of an interface.
implementation
type conversion
local variable
dot product
50. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.
immutable data type
key
exception
level