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. Part of a program that can never be executed - often because it appears after a return statement.
incremental development
index
decrement
dead code
2. The meaning of a program.
semantics
text file
non-volatile memory
constant
3. An element of a list - usually implemented as an object that contains a reference to another object of the same type.
scalar multiplication
node
operator overloading
command prompt
4. 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
data type
siblings
logical operator
method
5. A branch of the conditional statement in a recursive function that does not result in a recursive call.
instance
base case
functional programming style
continue statement
6. A distinct method of operation within a computer program.
binary tree
event loop
mode
client
7. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.
boolean value
inorder
list comprehension
syntactical errors
8. The name and location of a file within a file system.
iteration
side effect
path
semantics
9. 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.
object
side effect
generalize
class
10. The set of operations that define an ADT.
interface
modifier
fundamental ambiguity theorem
header
11. To divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).
recursive definition
embedded reference
encapsulate
planned development
12. The process of formulating a problem and finding a solution and expressing the solution.
problem solving
incremental development
singleton
key-value pair
13. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.
semantic error
branch
accumulator
value
14. A named collection of files - also called a folder.
operand
algorithm
key
directory
15. A variable used as part of the terminating condition of a loop.
concatenate
encapsulate
loop variable
priority queue
16. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.
prompt
variable name
helper
traverse
17. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
body
header
argument
composition (of functions)
18. The first part of a compound statement. Headers begin with a keyword and end with a colon (:)
executable
header
data structure
operand
19. A conditional branch with more than two possible flows of execution.
test-driven development (TDD)
interpret
expression
chained conditional
20. Using the output from one function call as the input to another.
token
aliases
inheritance
function composition
21. An assertion that must be true in order for a method to work correctly.
precondition
cargo
handle an exception
preorder
22. The set of nodes equidistant from the root.
directory
chained conditional
level
syntactical errors
23. The sequence of characters read into the command interpreter in a command line interface.
constant
data structure
operator overloading
command line
24. The rules that determine which member of a queue is removed next.
import statement
abstract data type (ADT)
class attribute
queueing policy
25. The process of calling the function that is currently executing.
object
continue statement
recursion
development plan
26. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.
tab
docstring
non-volatile memory
data type
27. A program stored in a file (usually one that will be interpreted).
fruitful function
polymorphic
script
singleton
28. A tree in which each node refers to zero or one or two dependent nodes.
handle an exception
binary tree
immutable data type
exception
29. A special character that causes the cursor to move to the beginning of the next line.
condition
boolean expression
newline
list traversal
30. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.
dot notation
initialization (of a variable)
function definition
argument
31. Any one of the languages that people speak that evolved naturally.
natural language
child
body
dot product
32. The block of statements in a compound statement that follows the header.
syntax error
fruitful function
side effect
body
33. A numerical value that does not change during the execution of a program.
runtime error
pure function
delimiter
constant
34. A visual cue that tells the user to input data.
prompt
method
file system
dead code
35. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.
operator overloading
raise
mode
data type
36. Generalization by reducing the information content of a concept.
abstraction
directory
docstring
composition (of functions)
37. A way of writing mathematical expressions with the operators after the operands.
random
postfix
function composition
frame
38. Another name for a runtime error.
nested list
assignment statement
exception
cursor
39. A data type which can be modified.
mutable data type
sequence
traverse
planned development
40. An error that occurs at runtime.
exception
problem solving
queueing policy
inorder
41. A special symbol that represents a simple computation like addition or multiplication or string concatenation.
parse
linear time
operator
formal language
42. Code that satisfies the syntactic and semantic requirements of an interface.
handle an exception
block
nested list
implementation
43. A step-by-step process for solving a category of problems.
multiple assignment
command line
argv (argument vector)
algorithm
44. A variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.
token
parameter
list traversal
accumulator
45. There are exactly two boolean values: True and False.
command prompt
abstract data type (ADT)
veneer
boolean value
46. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.
tab
whitespace
argument
step size
47. One of the named data items that makes up an instance.
tab
loop
continue statement
attribute
48. To prevent an exception from terminating a program using the try and except statements.
leaf
raise
loop variable
handle an exception
49. 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.
boolean value
byte code
client
prefix notation
50. A combination of variables and operators and values that represents a single result value.
tab
binary operator
expression
assignment statement