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 style of program design in which the majority of functions are pure.
portability
header
functional programming style
preorder
2. Both as a noun and as a verb - it means to increase by 1.
precondition
decrement
increment
parent class
3. The sequence of characters read into the command interpreter in a command line interface.
abstract data type (ADT)
command line
low-level language
level
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
instance
function definition
dot operator
method
5. An assignment to all of the elements in a tuple using a single assignment statement. Useful for swapping values.
decrement
variable
tuple assignment
token
6. A numerical value that does not change during the execution of a program.
constant
invariant
parent class
argv (argument vector)
7. The process of formulating a problem and finding a solution and expressing the solution.
inheritance
helper
random
problem solving
8. A way to traverse a tree - visiting each node before its children.
parse
low-level language
preorder
argv (argument vector)
9. Any one of the languages that people speak that evolved naturally.
natural language
logical operator
key-value pair
raise
10. An invisible marker that keeps track of where the next character will be printed.
invariant
preorder
cursor
class
11. An explicit statement that takes a value of one type and computes a corresponding value of another type.
immutable
type conversion
binary operator
modifier
12. The boolean expression in a conditional statement that determines which branch is executed.
problem solving
keyword
condition
exception
13. A special character that causes the cursor to move to the beginning of the next line.
parse
algorithm
newline
exception
14. A part of a string (substring) specified by a range of indices.
invariant
wrapping code in a function
slice
initialization (of a variable)
15. The code (or the person who wrote it) that implements an ADT.
provider
veneer
parent class
attribute
16. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
rules of precedence
key-value pair
optional parameter
tab
17. A bottom-most node in a tree with no children.
scalar multiplication
dead code
leaf
random
18. A name that refers to a value.
tail recursion
variable
nested list
step size
19. Making more than one assignment to the same variable during the execution of a program.
preorder
multiple assignment
random
natural language
20. A name given to a variable.
variable name
docstring
directory
parent
21. 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.
byte code
Queue
tuple assignment
parse
22. A function which has no side effects. It only makes changes to the calling program through its return values.
pure function
singleton
scalar multiplication
key-value pair
23. Nodes that share a common parent.
method
siblings
attribute
cargo
24. To join two strings end-to-end.
natural language
loop variable
concatenate
syntactical errors
25. A program in a high-level language before being compiled.
test-driven development (TDD)
level
source code
modulus operator
26. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.
loop variable
leaf
directory
token
27. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.
singleton
counter
chained conditional
value
28. A program that translates higher level programming languages into basic instructions the CPU can understand.
boolean expression
pure function
base case
compiler
29. To signal an exception using the raise statement.
random
immutable data type
raise
linear time
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.
mutable data type
import statement
generalize
newline
31. One program structure within another - such as a conditional statement inside a branch of another conditional statement.
scalar multiplication
nesting
Queue
list
32. An object that belongs to a class.
command prompt
siblings
instance
class
33. A variable used as part of the terminating condition of a loop.
traverse
loop variable
text file
semantic error
34. An assertion that must be true in order for a method to work correctly.
precondition
child
priority queue
high-level language
35. To execute a program in a high-level language by translating it one line at a time.
handle an exception
operand
side effect
interpret
36. A graphical representation of a set of variables and the values to which they refer.
runtime error
parent class
state diagram
parse
37. A way of writing mathematical expressions with the operators between the operands.
delimiter
infix
compound statement
overflow
38. An operation defined in linear algebra that multiplies two Points and yields a numeric value.
operand
text file
dot product
value
39. 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.
formal language
class
abstract data type (ADT)
event loop
40. Given any real numbers a and b exactly one of the following relations holds: a < b or a > b or a = b. Thus when you can establish that two of the relations are false you can assume the remaining one is true. What is it called?
operand
trichotomy
runtime error
dead code
41. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.
cargo
trichotomy
traverse
loop
42. One of the values on which an operator operates.
prefix notation
operand
comment
header
43. A class definition that implements an ADT with method definitions that are invocations of other methods - sometimes with simple transformations. It does no significant work but it improves or standardizes the interface seen by the client.
veneer
tail recursion
loop variable
runtime error
44. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
initialization (of a variable)
argument
object code
flow of execution
45. The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.
abstract data type (ADT)
recursive call
rules of precedence
recursive definition
46. Function-like attribute of an object. Methods are invoked (called) on an object using the dot operator.
class
method
delimiter
loop
47. A set of instructions for solving a class of problems by a mechanical and unintelligent process.
object code
side effect
algorithm
binary tree
48. 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.
comment
object-oriented programming
modulus operator
binary operator
49. An automatic procedure used to validate that individual units of code are working properly.
event
singleton
compound statement
unit testing
50. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.
delimiter
parse
frame
token