SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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 variable defined inside a function. A local variable can only be used inside its function.
local variable
executable
veneer
object-oriented programming
2. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.
recursive definition
precondition
method
infinite loop
3. A process for developing a program.
token
implementation
abstraction
development plan
4. A way to traverse a tree - visiting each node before its children.
argument
preorder
prompt
binary operator
5. 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.
wrapper
key-value pair
object
test-driven development (TDD)
6. A function that returns a boolean value.
debugging
boolean function
slice
fruitful function
7. A method for naming and accessing and organizing files and the data they contain.
file system
tail recursion
composition (of functions)
method
8. A logical error which stops a program from performing.
abstract data type (ADT)
method
run time error
priority queue
9. A name given to a variable.
variable name
type conversion
delimiter
instantiate
10. An object that belongs to a class.
continue statement
recursive definition
instance
algorithm
11. 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.
volatile memory
wrapping code in a function
handle an exception
non-volatile memory
12. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.
encapsulate
modifier
parse
object-oriented programming
13. A loop in which the terminating condition is never satisfied.
base case
infinite loop
invariant
logical operator
14. To signal an exception using the raise statement.
raise
leaf
function definition
byte code
15. A list that is an element of another list.
nested list
event loop
command line
formal language
16. A part of a string (substring) specified by a range of indices.
variable
slice
source code
linked list
17. An assignment to all of the elements in a tuple using a single assignment statement. Useful for swapping values.
embedded reference
byte code
incremental development
tuple assignment
18. 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.
encapsulate
event
integer division
stack diagram
19. A numerical value that does not change during the execution of a program.
exception
constant
interface
escape sequence
20. A reserved word that is used by the compiler to parse program; you cannot use keywords like if or def or while as variable names.
whitespace
invariant
keyword
algorithm
21. The block of statements in a compound statement that follows the header.
body
FIFO(First In First Out)
local variable
list traversal
22. 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.
prototype development
dot product
priority queue
body
23. An error that occurs at runtime.
runtime error
script
root
exception
24. To examine a program and analyze the syntactic structure.
step size
object-oriented programming
parse
data structure
25. 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
tuple assignment
linear time
Priority Queue
26. The process of calling the function that is currently executing.
recursion
semantics
continue statement
operand
27. The process of finding and removing any of the three kinds of programming errors.
comparison operator
root
loop variable
debugging
28. 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.
instance
test-driven development (TDD)
prompt
constant
29. One of the values in a list (or other sequence). The bracket operator selects elements of a list.
step size
element
postfix
encapsulate
30. A file that contains printable characters organized into lines separated by newline characters.
text file
path
hint
nested loop
31. An operation defined in linear algebra that multiplies each of the coordinates of a Point by a numeric value.
token
incremental development
traverse
scalar multiplication
32. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.
planned development
algorithm
compound statement
mutable type
33. A compound data type whose elements cannot be assigned new values.
problem solving
incremental development
immutable
aliases
34. One of the values on which an operator operates.
header
operand
wrapping code in a function
docstring
35. A name used inside a function to refer to the value passed as an argument.
event
parameter
block
element
36. A named collection of files - also called a folder.
directory
linked queue
object
method
37. A collection of key-value pairs that maps from keys to values.
nested list
dictionary
multiple assignment
argv (argument vector)
38. 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.
index
optional parameter
script
raise
39. Function-like attribute of an object. Methods are invoked (called) on an object using the dot operator.
continue statement
abstract data type (ADT)
method
immutable
40. An item of data contained in a node.
raise
provider
attribute
cargo
41. A tree in which each node refers to zero or one or two dependent nodes.
local variable
binary tree
delimiter
aliases
42. There are exactly two boolean values: True and False.
algorithm
multiple assignment
boolean value
exception
43. A program that translates higher level programming languages into basic instructions the CPU can understand.
slice
compiler
list comprehension
planned development
44. A bottom-most node in a tree with no children.
delimiter
naming collision
leaf
argv (argument vector)
45. 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
random
rules of precedence
method
nesting
46. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.
scaffolding
hint
program
token
47. An error that does not occur until the program has started to execute but that prevents the program from continuing.
runtime error
bug
singleton
initialization method
48. The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.
rules of precedence
optional parameter
siblings
side effect
49. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.
queue
list comprehension
infinite loop
link
50. A function that can operate on more than one type. If all the operations in a function can be applied to a type then the function can be applied to a type.
parent
nested list
abstraction
polymorphic