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 part of a string (substring) specified by a range of indices.
inorder
bug
client
slice
2. 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).
traverse
data type
index
high-level language
3. The rules that determine which member of a queue is removed next.
queueing policy
optional parameter
clone
function
4. A compound data type whose elements cannot be assigned new values.
immutable
method
default value
boolean function
5. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.
tail recursion
invariant
class
high-level language
6. A function that returns a boolean value.
tuple
preorder
boolean function
cargo
7. One of the named data items that makes up an instance.
scalar multiplication
variable name
attribute
increment
8. The order in which statements are executed during a program run.
exception
object-oriented programming
flow of execution
encode
9. The boolean expression in a conditional statement that determines which branch is executed.
condition
scalar multiplication
command line argument
comparison operator
10. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.
immutable data type
exception
counter
postorder
11. A character that is used to separate tokens such as punctuation in a natural language.
overflow
iteration
delimiter
invariant
12. A style of programming in which data and the operations that manipulate it are organized into classes and methods.
increment
wrapping code in a function
body
object-oriented programming
13. A named collection of objects where each object is identified by an index.
postfix
problem solving
composition
list
14. An element of a list - usually implemented as an object that contains a reference to another object of the same type.
prompt
node
branch
invariant
15. One of the nodes referred to by a node.
formal language
clone
algorithm
child
16. An ordered set of objects waiting for a service of some kind.
queue
branch
return value
dot notation
17. 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.
instantiate
base case
class attribute
volatile memory
18. A branch of the conditional statement in a recursive function that does not result in a recursive call.
abstraction
base case
tab
directory
19. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.
high-level language
binary operator
modulus operator
condition
20. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.
script
object
formal language
recursive definition
21. A way of writing mathematical expressions with the operators after the operands.
postfix
tail recursion
interpret
object
22. The code (or the person who wrote it) that implements an ADT.
provider
function call
type conversion
temporary variable
23. A method for naming and accessing and organizing files and the data they contain.
composition (of functions)
initialization method
file system
method
24. A loop in which the terminating condition is never satisfied.
dot operator
accumulator
element
infinite loop
25. A data type comprised of a collection of keys and associated values.
naming collision
polymorphic
aliases
mapping type
26. A set of instructions for solving a class of problems by a mechanical and unintelligent process.
boolean value
syntax error
evaluate
algorithm
27. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.
continue statement
dot product
program
incremental development
28. A signal such as a keyboard press or mouse click or message from another program.
infinite recursion
state diagram
clone
event
29. An operator that takes two operands.
binary operator
constant
argument
state diagram
30. The value provided as the result of a function call.
increment
return value
multiple assignment
low-level language
31. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.
local variable
composition
evaluate
comparison operator
32. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.
random
overflow
delimiter
initialization method
33. A collection of key-value pairs that maps from keys to values.
algorithm
dictionary
encapsulate
index
34. A data structure that implements a collection using a sequence of linked nodes.
newline
docstring
conditional statement
linked list
35. An escape character '' followed by one or more printable characters used to designate a nonprintable character.
escape sequence
list traversal
integer division
namespace
36. A graphical representation of a stack of functions and their variables and the values to which they refer.
index
test-driven development (TDD)
stack diagram
multiple assignment
37. A statement that creates a new function specifying its name and parameters and the statements it executes.
function definition
traceback
wrapper
dictionary
38. A character or string used to indicate where a string should be split.
delimiter
method
non-volatile memory
operand
39. The output of the compiler after it translates the program.
object code
pure function
block
child
40. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
priority queue
temporary variable
argument
modulus operator
41. A data type in which the elements can be modified. It is a compound type - e.g. lists.
body
mutable type
generalize
escape sequence
42. A way to traverse a tree - visiting each node before its children.
preorder
mutable type
singleton
hint
43. A way of developing programs starting with a prototype and gradually testing and improving it.
step size
operator overloading
function definition
prototype development
44. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.
random
modifier
frame
initialization (of a variable)
45. An explicit statement that takes a value of one type and computes a corresponding value of another type.
function call
formal language
type conversion
Priority Queue
46. One program structure within another - such as a conditional statement inside a branch of another conditional statement.
element
nesting
composition (of functions)
parameter
47. One of the values in a list (or other sequence). The bracket operator selects elements of a list.
mutable data type
client
embedded reference
element
48. A data item that is mapped to a value in a dictionary. Used to look up values in a dictionary.
linked list
object-oriented programming
key
source code
49. The node that refers to a given node.
parent
logical operator
compiler
list
50. The class from which a child class inherits.
local variable
semantics
parent class
child class