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 displayed by a command line interface indicating that commands can be entered.
command prompt
parent class
postfix
variable
2. A variable used to count something - usually initialized to zero and incremented in the body of a loop.
increment
high-level language
counter
whitespace
3. A new class created by inheriting from an existing class; also called a subclass.
dot product
docstring
child class
variable name
4. A statement which makes the objects contained in a module available for use within another module.
import statement
loop variable
type conversion
syntax
5. A reference to a list node can be treated as a single object or as the first in a list of nodes.
fundamental ambiguity theorem
traceback
nested loop
rules of precedence
6. A logical error which stops a program from performing.
argument
test-driven development (TDD)
composition (of functions)
run time error
7. A way of developing programs starting with a prototype and gradually testing and improving it.
file system
data structure
prototype development
rules of precedence
8. An invisible marker that keeps track of where the next character will be printed.
sequence
whitespace
cursor
abstract data type (ADT)
9. Use of the dot operator '.' to access functions inside a module.
increment
boolean expression
dot notation
traceback
10. 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
algorithm
method
subexpression
body
11. A function that does not modify any of the objects it receives as parameters. Most pure functions are fruitful.
return value
pure function
unit testing
docstring
12. 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.
step size
command line argument
boolean value
modifier
13. A function which has no side effects. It only makes changes to the calling program through its return values.
side effect
syntactical errors
pure function
state diagram
14. An ordered set of objects waiting for a service of some kind.
queue
return value
evaluate
link
15. A character or string used to indicate where a string should be split.
header
comment
delimiter
frame
16. The node that refers to a given node.
parent
composition (of functions)
prototype development
hint
17. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.
inorder
queueing policy
accumulator
siblings
18. A statement that creates a new function specifying its name and parameters and the statements it executes.
inheritance
problem solving
function definition
raise
19. An assertion that must be true in order for a method to work correctly.
provider
precondition
argv (argument vector)
naming collision
20. Making more than one assignment to the same variable during the execution of a program.
aliases
multiple assignment
unit testing
boolean expression
21. To join two strings end-to-end.
mutable data type
concatenate
cargo
standard library
22. A named collection of files - also called a folder.
directory
cursor
inorder
docstring
23. Repeated execution of a set of programming statements.
initialization (of a variable)
FIFO(First In First Out)
iteration
dot operator
24. An object that belongs to a class.
semantic error
instance
formal language
composition (of functions)
25. 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.
invariant
branch
list traversal
body
26. The name and location of a file within a file system.
path
abstract data type (ADT)
boolean value
semantic error
27. One program structure within another - such as a conditional statement inside a branch of another conditional statement.
link
nesting
linked queue
immutable data type
28. The meaning of a program.
raise
semantics
data type
method
29. A property of a program that can run on more than one kind of computer.
nesting
portability
syntax error
semantic error
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.
pure function
semantics
element
veneer
31. The process of calling the function that is currently executing.
recursion
state diagram
child
semantics
32. A data type in which the values are made up of components or elements that are themselves values.
logical operator
key-value pair
delimiter
compound data type
33. Memory that can maintain its state without power. Hard drives and flash drives and rewritable compact disks (CD-RW) are examples of such memory.
file system
flow of execution
infix
non-volatile memory
34. 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.
integer division
algorithm
list traversal
increment
35. A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call.
list comprehension
multiple assignment
semantics
optional parameter
36. The class from which a child class inherits.
development plan
parent class
cargo
type conversion
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).
data type
traceback
step size
mapping type
38. There are exactly two boolean values: True and False.
planned development
boolean expression
argv (argument vector)
boolean value
39. A programming language that is designed to be easy for humans to read and write.
high-level language
nested list
inheritance
standard library
40. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.
local variable
docstring
interpret
planned development
41. 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?
overflow
trichotomy
standard library
dot operator
42. A data type comprised of a collection of keys and associated values.
recursive call
mapping type
function definition
multiple assignment
43. A visual cue that tells the user to input data.
compound data type
raise
integer division
prompt
44. One of the values in a list (or other sequence). The bracket operator selects elements of a list.
portability
pure function
element
mutable data type
45. A data type in which the elements can be modified. It is a compound type - e.g. lists.
source code
mutable type
precondition
event
46. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.
event
compile
problem solving
embedded reference
47. The boolean expression in a conditional statement that determines which branch is executed.
loop
abstraction
helper
condition
48. a sequence of instructions that specifies to a computer actions and computations to be performed.
program
object code
encode
base case
49. The statement in a recursive function with is a call to itself.
natural language
tuple
encapsulate
recursive call
50. A library is a collection of software used as tools in the development of other software.
instantiate
standard library
exception
trichotomy