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 defined in linear algebra that multiplies two Points and yields a numeric value.
counter
dot product
compiler
compound data type
2. To replace something unnecessarily specific (like a constant value) with something appropriately general (like a variable or parameter). It makes code more versatile - more likely to be reused and sometimes even easier to write.
logical operator
object-oriented language
type conversion
generalize
3. An ADT that defines the operations one might perform on a priority queue.
syntax
Priority Queue
default value
comment
4. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.
file
accumulator
namespace
encode
5. 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.
encapsulate
script
priority queue
invariant
6. A queueing policy in which the first member to arrive is the first to be removed.
node
FIFO(First In First Out)
concatenate
postorder
7. An implementation of a queue using a linked list.
directory
linked queue
index
logical operator
8. A name given to a variable.
debugging
variable name
byte code
nested list
9. A visual cue that tells the user to input data.
comment
prompt
command prompt
state diagram
10. A data type which can be modified.
invariant
command line
mutable data type
handle an exception
11. A character that is used to separate tokens such as punctuation in a natural language.
delimiter
incremental development
class attribute
inorder
12. A collection of key-value pairs that maps from keys to values.
dictionary
function composition
mutable data type
stack diagram
13. A loop in which the terminating condition is never satisfied.
syntax
priority queue
infinite loop
mutable data type
14. A property of a program that can run on more than one kind of computer.
inorder
naming collision
portability
mutable type
15. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.
initialization (of a variable)
class
initialization method
list
16. A special character that causes the cursor to move to the next tab stop on the current line.
delimiter
natural language
delimiter
tab
17. An error in a program.
bug
command line
infix
parse
18. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
infix
nested loop
key-value pair
mutable type
19. One of the values on which an operator operates.
escape sequence
operand
siblings
compound data type
20. Making more than one assignment to the same variable during the execution of a program.
object-oriented language
method
multiple assignment
cursor
21. Another name for object code that is ready to be executed.
executable
increment
concatenate
nested loop
22. The value provided as the result of a function call.
whitespace
subexpression
helper
return value
23. An operation whose runtime does not depend on the size of the data structure.
mutable data type
priority queue
non-volatile memory
constant time
24. A program that translates higher level programming languages into basic instructions the CPU can understand.
class attribute
constant time
data type
compiler
25. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.
loop
non-volatile memory
compile
state diagram
26. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.
queue
generalize
object-oriented language
variable
27. An operation defined in linear algebra that multiplies each of the coordinates of a Point by a numeric value.
scalar multiplication
encapsulate
planned development
preorder
28. A group of consecutive statements with the same indentation.
queueing policy
wrapper
block
object
29. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.
encode
initialization (of a variable)
fundamental ambiguity theorem
whitespace
30. A variable or value used to select a member of an ordered set - such as a character from a string.
index
algorithm
data type
encode
31. A statement that consists of two parts: header - which begins with a keyword determining the statement type and ends with a colon. body - containing one or more statements indented the same amount from the header.
attribute
rules of precedence
compound statement
planned development
32. The output of the compiler after it translates the program.
dead code
object code
leaf
object-oriented language
33. The dot operator ( .) permits access to attributes and functions of a module.
modulus operator
constant time
generalize
dot operator
34. 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.
type conversion
Priority Queue
accumulator
data structure
35. A way of writing a mathematical expression with each operator appearing before its operands.
inheritance
program
prefix notation
nesting
36. A new class created by inheriting from an existing class; also called a subclass.
parse
child class
run time error
infinite loop
37. 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).
overflow
exception
data type
attribute
38. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.
token
linear time
object
class
39. Code that satisfies the syntactic and semantic requirements of an interface.
implementation
method
composition
Priority Queue
40. An automatic procedure used to validate that individual units of code are working properly.
naming collision
unit testing
accumulator
increment
41. A named collection of objects where each object is identified by an index.
embedded reference
list
syntax error
delimiter
42. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.
docstring
wrapping code in a function
FIFO(First In First Out)
polymorphic
43. 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.
invariant
recursive definition
abstract data type (ADT)
syntax error
44. 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
exception
cargo
45. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.
dot product
clone
binary operator
recursive definition
46. A data type in which the elements can be modified. It is a compound type - e.g. lists.
infinite loop
compile
delimiter
mutable type
47. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.
import statement
semantics
modulus operator
leaf
48. Both as a noun and as a verb - it means to increase by 1.
expression
abstraction
test-driven development (TDD)
increment
49. The block of statements in a compound statement that follows the header.
variable name
stack diagram
body
root
50. One of the values in a list (or other sequence). The bracket operator selects elements of a list.
Queue
prefix notation
evaluate
element