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. One of the operators that compares two values: == or != or > or < or >= and <=.
attribute
singleton
functional programming style
comparison operator
2. 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.
method
embedded reference
integer division
wrapping code in a function
3. An escape character '' followed by one or more printable characters used to designate a nonprintable character.
mutable type
escape sequence
import statement
prototype development
4. A combination of variables and operators and values that represents a single result value.
namespace
expression
step size
functional programming style
5. A situation in which two or more names in a given namespace cannot be unambiguously resolved.
planned development
state diagram
file
naming collision
6. The block of statements in a compound statement that follows the header.
slice
variable
keyword
body
7. A data type that contains a sequence of elements of any type - like a list but is immutable. Can be used wherever an immutable type is required.
comparison operator
tuple
modifier
syntax error
8. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.
object-oriented language
syntactical errors
attribute
client
9. 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.
keyword
key
function definition
FIFO(First In First Out)
10. To prevent an exception from terminating a program using the try and except statements.
executable
implementation
handle an exception
initialization (of a variable)
11. A method for naming and accessing and organizing files and the data they contain.
file system
stack diagram
concatenate
wrapper
12. Repeated execution of a set of programming statements.
iteration
executable
event
program
13. A variable defined inside a function. A local variable can only be used inside its function.
hint
slice
local variable
attribute
14. An operation whose runtime is a linear function of the size of the data structure.
tuple
loop
linear time
comment
15. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.
parent class
Queue
instance
infinite recursion
16. An intermediate language between source code and object code. Many modern languages first compile source code into byte code and then interpret the byte code with a program called a virtual machine.
delimiter
byte code
Priority Queue
syntactical errors
17. An operation defined in linear algebra that multiplies two Points and yields a numeric value.
instantiate
namespace
dot product
linked list
18. A conditional branch with more than two possible flows of execution.
fruitful function
unit testing
chained conditional
low-level language
19. Code that satisfies the syntactic and semantic requirements of an interface.
infinite loop
escape sequence
client
implementation
20. 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.
function
namespace
text file
inheritance
21. A recursive call that occurs as the last statement (at the tail) of a function definition.
wrapper
function composition
object
tail recursion
22. A property of a program that can run on more than one kind of computer.
test-driven development (TDD)
portability
data type
cursor
23. An error in a program that makes it do something other than what the programmer intended.
semantic error
invariant
file system
trace
24. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.
whitespace
aliases
accumulator
docstring
25. An error that occurs at runtime.
boolean expression
event loop
traceback
exception
26. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.
dictionary
pure function
boolean value
operator overloading
27. A function which has no side effects. It only makes changes to the calling program through its return values.
syntax error
nesting
semantics
pure function
28. A special character that causes the cursor to move to the next tab stop on the current line.
keyword
tab
algorithm
sequence
29. An invisible marker that keeps track of where the next character will be printed.
cursor
test-driven development (TDD)
invariant
state diagram
30. 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.
escape sequence
scaffolding
mutable data type
generalize
31. A data type comprised of a collection of keys and associated values.
linked queue
mapping type
counter
text file
32. One program structure within another - such as a conditional statement inside a branch of another conditional statement.
delimiter
newline
nesting
loop
33. The sequential accessing of each element in a list.
list traversal
script
compound data type
aliases
34. An operation defined in linear algebra that multiplies each of the coordinates of a Point by a numeric value.
Queue
semantic error
scalar multiplication
boolean value
35. An item of data contained in a node.
variable name
clone
body
cargo
36. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.
trace
modulus operator
root
runtime error
37. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.
frame
modifier
integer division
mapping type
38. The set of nodes equidistant from the root.
singleton
traceback
mapping type
level
39. A special character that causes the cursor to move to the beginning of the next line.
instance
counter
prefix notation
newline
40. The process of formulating a problem and finding a solution and expressing the solution.
child
problem solving
sequence
formal language
41. An embedded reference used to link one object to another.
default value
link
queue
initialization method
42. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.
algorithm
initialization method
leaf
semantic error
43. Temporary storage of a precomputed value to avoid redundant computation.
dead code
logical operator
file
hint
44. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.
incremental development
body
keyword
constant
45. An element of a list - usually implemented as an object that contains a reference to another object of the same type.
node
scalar multiplication
method
random
46. The name and location of a file within a file system.
command line argument
level
path
semantics
47. Part of a program that can never be executed - often because it appears after a return statement.
hint
operator
dead code
dictionary
48. An organization of data for the purpose of making it easier to use.
data structure
frame
naming collision
assignment statement
49. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).
branch
test-driven development (TDD)
compound data type
command line argument
50. An error in a program.
return value
decrement
bug
exception