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 statement that creates a new function specifying its name and parameters and the statements it executes.
function definition
modifier
tail recursion
boolean function
2. Part of a program that can never be executed - often because it appears after a return statement.
dead code
inheritance
interface
scaffolding
3. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.
flow of execution
leaf
recursive definition
expression
4. The set of operations that define an ADT.
interface
path
provider
conditional statement
5. A variable used to count something - usually initialized to zero and incremented in the body of a loop.
step size
flow of execution
mapping type
counter
6. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.
abstract data type (ADT)
newline
class
tuple assignment
7. Any of the data types that consist of an ordered set of elements with each element identified by an index.
sequence
logical operator
tuple
branch
8. Both as a noun and as a verb - it means to increase by 1.
loop
continue statement
increment
postfix
9. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.
implementation
siblings
instantiate
composition
10. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.
list comprehension
assignment statement
modifier
client
11. A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result.
nested list
inorder
attribute
function
12. 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.
escape sequence
polymorphic
dot notation
modulus operator
13. A special character that causes the cursor to move to the next tab stop on the current line.
expression
runtime error
key-value pair
tab
14. An operation defined in linear algebra that multiplies two Points and yields a numeric value.
delimiter
dot product
tail recursion
namespace
15. A combination of variables and operators and values that represents a single result value.
expression
comment
function
element
16. The node that refers to a given node.
child
syntactical errors
fundamental ambiguity theorem
parent
17. A numerical value that does not change during the execution of a program.
evaluate
constant
nested loop
block
18. The structure of a program.
modifier
high-level language
counter
syntax
19. Another name for object code that is ready to be executed.
immutable
data structure
executable
cursor
20. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.
multiple assignment
mutable type
queue
inorder
21. A statement that causes the current iteration of a loop to end.
continue statement
queue
dead code
preorder
22. A part of a string (substring) specified by a range of indices.
slice
executable
scalar multiplication
class
23. A situation in which two or more names in a given namespace cannot be unambiguously resolved.
traceback
naming collision
class attribute
flow of execution
24. An explicit statement that takes a value of one type and computes a corresponding value of another type.
scaffolding
concatenate
type conversion
client
25. The rules that determine which member of a queue is removed next.
traverse
executable
queueing policy
bug
26. An error in a program that makes it impossible to parse
class attribute
natural language
syntax error
chained conditional
27. A statement which makes the objects contained in a module available for use within another module.
generic data structure
concatenate
import statement
queue
28. The name and location of a file within a file system.
path
nested list
level
operator overloading
29. A property of a program that can run on more than one kind of computer.
polymorphic
modifier
base case
portability
30. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.
event loop
accumulator
algorithm
operator overloading
31. A new class created by inheriting from an existing class; also called a subclass.
file system
syntactical errors
boolean value
child class
32. A name that refers to a value.
variable
raise
function composition
modifier
33. A name used inside a function to refer to the value passed as an argument.
logical operator
portability
parameter
recursive call
34. Calling one function from within the body of another or using the return value of one function as an argument to the call of another.
child class
condition
composition (of functions)
scaffolding
35. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.
dead code
trichotomy
index
initialization (of a variable)
36. 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.
parameter
docstring
optional parameter
function
37. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
algorithm
mapping type
comment
key-value pair
38. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.
child
evaluate
file
mutable data type
39. A special character that causes the cursor to move to the beginning of the next line.
semantic error
decrement
newline
comparison operator
40. A character that is used to separate tokens such as punctuation in a natural language.
recursion
cursor
integer division
delimiter
41. An automatic procedure used to validate that individual units of code are working properly.
unit testing
recursive definition
instantiate
accumulator
42. Code that is used during program development but is not part of the final version.
semantics
high-level language
scaffolding
interface
43. An operator that takes two operands.
initialization (of a variable)
index
list traversal
binary operator
44. 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.
object
priority queue
step size
dot operator
45. 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.
side effect
delimiter
parameter
wrapper
46. a sequence of instructions that specifies to a computer actions and computations to be performed.
program
token
whitespace
bug
47. 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.
subexpression
generic data structure
compound statement
wrapping code in a function
48. An error in a program that makes it do something other than what the programmer intended.
semantic error
planned development
list
binary operator
49. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.
traceback
high-level language
initialization method
sequence
50. An element of a list - usually implemented as an object that contains a reference to another object of the same type.
parent
nested loop
node
prompt