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 process for developing a program.
preorder
frame
class attribute
development plan
2. The class from which a child class inherits.
return value
parent class
chained conditional
variable name
3. a sequence of instructions that specifies to a computer actions and computations to be performed.
program
tuple
loop
nested loop
4. The process of finding and removing any of the three kinds of programming errors.
object-oriented programming
volatile memory
debugging
leaf
5. 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
scaffolding
loop
tab
6. The order in which statements are executed during a program run.
singleton
data type
flow of execution
function composition
7. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.
loop
stack diagram
scalar multiplication
pure function
8. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
root
token
flow of execution
key-value pair
9. 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).
modulus operator
data type
iteration
encapsulate
10. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.
temporary variable
generalize
recursive definition
directory
11. 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
modifier
child
command line
12. The code (or the person who wrote it) that implements an ADT.
provider
condition
interpret
base case
13. A graphical representation of a set of variables and the values to which they refer.
directory
syntax error
abstraction
state diagram
14. A syntactic container providing a context for names so that the same name can reside in different namespaces without ambiguity.
priority queue
type conversion
root
namespace
15. Repeated execution of a set of programming statements.
iteration
child class
exception
modifier
16. A data item that is mapped to a value in a dictionary. Used to look up values in a dictionary.
compound data type
key
natural language
planned development
17. A way to traverse a tree - visiting each node before its children.
body
link
preorder
leaf
18. A file that contains printable characters organized into lines separated by newline characters.
singleton
traceback
development plan
text file
19. A new class created by inheriting from an existing class; also called a subclass.
inorder
child class
file
local variable
20. A function that does not modify any of the objects it receives as parameters. Most pure functions are fruitful.
pure function
token
text file
level
21. To create an instance of a class.
value
instantiate
method
binary tree
22. A software development practice which arrives at a desired feature through a series of small but iterative steps motivated by automated tests which are written first that express increasing refinements of the desired feature.
incremental development
comment
test-driven development (TDD)
parent
23. An ADT that defines the operations one might perform on a priority queue.
overflow
mode
mapping type
Priority Queue
24. A method that acts as a middleman between a caller and a helper method - often making the method easier or less error-prone to invoke.
algorithm
dead code
directory
wrapper
25. An implementation of a queue using a linked list.
linked queue
modulus operator
parse
binary operator
26. A thing to which a variable can refer.
object
return value
root
script
27. A data type comprised of a collection of keys and associated values.
modifier
aliases
body
mapping type
28. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).
siblings
command line argument
bug
recursive call
29. An error in a program that makes it do something other than what the programmer intended.
generalize
semantic error
variable name
continue statement
30. 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.
object-oriented language
return value
dot operator
class attribute
31. To execute a program in a high-level language by translating it one line at a time.
mode
condition
argv (argument vector)
interpret
32. A distinct method of operation within a computer program.
event
singleton
boolean expression
mode
33. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.
infix
object-oriented language
syntactical errors
siblings
34. A graphical representation of a stack of functions and their variables and the values to which they refer.
decrement
postorder
object code
stack diagram
35. A function that returns a boolean value.
evaluate
syntax
side effect
boolean function
36. A program (or the person who wrote it) that uses an ADT.
portability
invariant
trace
client
37. A way of developing programs starting with a prototype and gradually testing and improving it.
sequence
attribute
stack diagram
prototype development
38. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.
raise
constant
wrapping code in a function
continue statement
39. A collection of key-value pairs that maps from keys to values.
planned development
compound statement
dictionary
parent class
40. To signal an exception using the raise statement.
frame
assignment statement
compound data type
raise
41. 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.
accumulator
function call
development plan
generalize
42. An escape character '' followed by one or more printable characters used to designate a nonprintable character.
priority queue
conditional statement
unit testing
escape sequence
43. A character that is used to separate tokens such as punctuation in a natural language.
postorder
delimiter
client
increment
44. Another name for a runtime error.
exception
inheritance
base case
list comprehension
45. A variable used to count something - usually initialized to zero and incremented in the body of a loop.
invariant
counter
slice
root
46. A variable or value used to select a member of an ordered set - such as a character from a string.
state diagram
index
argv (argument vector)
dot notation
47. A string displayed by a command line interface indicating that commands can be entered.
list traversal
dot product
raise
command prompt
48. A way of writing a mathematical expression with each operator appearing before its operands.
algorithm
binary operator
rules of precedence
prefix notation
49. An embedded reference used to link one object to another.
exception
link
subexpression
list
50. An operation whose runtime does not depend on the size of the data structure.
traceback
mode
constant time
index