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. An operation whose runtime is a linear function of the size of the data structure.
linear time
nested loop
siblings
traceback
2. A linked list with a single node.
interpret
nested loop
singleton
syntax error
3. To represent one set of values using another set of values by constructing a mapping between them.
encode
handle an exception
functional programming style
whitespace
4. A variable in the sys module which stores a list of command line arguments passed to a program at run time.
postfix
object
argv (argument vector)
preorder
5. A collection of key-value pairs that maps from keys to values.
object code
temporary variable
dictionary
condition
6. An error in a program that makes it impossible to parse
byte code
raise
syntactical errors
syntax error
7. An operator that takes two operands.
binary operator
file system
operator
debugging
8. A programming construct that waits for events and processes them.
function call
event loop
algorithm
binary operator
9. Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.
debugging
comment
object-oriented programming
integer division
10. A way of writing a mathematical expression with each operator appearing before its operands.
mode
list traversal
link
prefix notation
11. Any one of the languages that people have designed for specific purposes - such as representing mathematical ideas or computer programs; all programming languages are formal languages.
element
singleton
formal language
recursion
12. An assignment to all of the elements in a tuple using a single assignment statement. Useful for swapping values.
encapsulate
parameter
tuple assignment
argument
13. A function that yields a return value.
recursive definition
fruitful function
invariant
variable
14. A special symbol that represents a simple computation like addition or multiplication or string concatenation.
optional parameter
pure function
infinite recursion
operator
15. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.
leaf
whitespace
return value
script
16. 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).
function composition
data type
byte code
tab
17. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.
modulus operator
optional parameter
immutable
function
18. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
argument
infinite recursion
infix
immutable data type
19. The dot operator ( .) permits access to attributes and functions of a module.
wrapper
dot operator
flow of execution
stack diagram
20. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.
tab
recursion
initialization method
queue
21. A special character that causes the cursor to move to the next tab stop on the current line.
tab
nested list
expression
body
22. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.
conditional statement
value
frame
pure function
23. 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
non-volatile memory
attribute
binary operator
24. A variable defined inside a module - accessed by using the dot operator ( .).
root
rules of precedence
continue statement
attribute
25. The value given to an optional parameter if no argument for it is provided in the function call.
tuple
recursive call
default value
bug
26. A group of consecutive statements with the same indentation.
preorder
initialization method
block
event
27. An invisible marker that keeps track of where the next character will be printed.
semantics
cursor
syntax error
event
28. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.
data structure
operator overloading
assignment statement
preorder
29. A variable or value used to select a member of an ordered set - such as a character from a string.
program
concatenate
trichotomy
index
30. A named collection of objects where each object is identified by an index.
list
generic data structure
event
list traversal
31. An expression in parentheses that acts as a single operand in a larger expression.
linked queue
wrapper
scaffolding
subexpression
32. The statements inside a loop.
boolean function
bug
body
list comprehension
33. An automatic procedure used to validate that individual units of code are working properly.
dot product
unit testing
mutable data type
high-level language
34. Another name for object code that is ready to be executed.
infix
object
executable
loop variable
35. An error in a program.
keyword
bug
event
chained conditional
36. Any of the data types that consist of an ordered set of elements with each element identified by an index.
file system
nesting
sequence
text file
37. 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.
class attribute
variable
continue statement
keyword
38. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.
trace
encapsulate
natural language
dot product
39. A way of writing mathematical expressions with the operators between the operands.
abstract data type (ADT)
infix
comparison operator
traverse
40. A graphical representation of a stack of functions and their variables and the values to which they refer.
program
interface
pure function
stack diagram
41. Repeated execution of a set of programming statements.
default value
slice
iteration
function definition
42. The name and location of a file within a file system.
path
docstring
value
modulus operator
43. An operation whose runtime does not depend on the size of the data structure.
nested list
accumulator
method
constant time
44. A program (or the person who wrote it) that uses an ADT.
binary operator
function definition
command line
client
45. An ADT that defines the operations one might perform on a priority queue.
assignment statement
tuple assignment
Priority Queue
encapsulate
46. The node that refers to a given node.
parent
generic data structure
incremental development
natural language
47. An expression that is either true or false.
command line argument
cargo
whitespace
boolean expression
48. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.
incremental development
dot notation
attribute
compiler
49. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.
high-level language
event loop
interpret
class
50. An assertion that must be true in order for a method to work correctly.
boolean expression
prototype development
condition
precondition