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 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.
index
parameter
high-level language
compound statement
2. The sequence of characters read into the command interpreter in a command line interface.
command line
tuple assignment
algorithm
value
3. 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
algorithm
abstract data type (ADT)
attribute
4. The statements inside a loop.
body
compound data type
logical operator
file system
5. To represent one set of values using another set of values by constructing a mapping between them.
byte code
root
path
encode
6. 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
parse
local variable
program
7. A collection of key-value pairs that maps from keys to values.
problem solving
evaluate
multiple assignment
dictionary
8. Another name for a runtime error.
exception
element
stack diagram
event
9. An operation defined in linear algebra that multiplies two Points and yields a numeric value.
dot product
inheritance
tab
instance
10. A logical error which stops a program from performing.
linked list
infinite recursion
run time error
function
11. A method for naming and accessing and organizing files and the data they contain.
child
file system
command line argument
semantics
12. A list of the functions that are executing - printed when a runtime error occurs. Also commonly refered to as a stack trace since it lists the functions in the order in which they are stored in the runtime stack.
class
tab
interpret
traceback
13. A data type in which the elements can be modified. It is a compound type - e.g. lists.
mutable type
boolean expression
object
object-oriented programming
14. The ability to define a new class that is a modified version of a previously defined class.
syntax error
inheritance
class attribute
infinite recursion
15. To divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).
problem solving
header
encapsulate
program
16. The order in which statements are executed during a program run.
precondition
leaf
local variable
flow of execution
17. A file that contains printable characters organized into lines separated by newline characters.
text file
function
hint
delimiter
18. 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
text file
counter
conditional statement
method
19. The meaning of a program.
child class
semantics
token
runtime error
20. An invisible marker that keeps track of where the next character will be printed.
interface
preorder
cursor
initialization (of a variable)
21. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.
abstract data type (ADT)
loop
siblings
local variable
22. One of the basic elements of the syntactic structure of a program - analogous to a word in a natural language.
token
wrapper
siblings
nested loop
23. A queueing policy in which the first member to arrive is the first to be removed.
namespace
boolean expression
data type
FIFO(First In First Out)
24. A character that is used to separate tokens such as punctuation in a natural language.
delimiter
decrement
abstract data type (ADT)
list
25. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.
handle an exception
initialization method
branch
Priority Queue
26. An explicit statement that takes a value of one type and computes a corresponding value of another type.
docstring
link
type conversion
linear time
27. A special character that causes the cursor to move to the beginning of the next line.
command line
newline
encapsulate
fundamental ambiguity theorem
28. Any one of the languages that people speak that evolved naturally.
natural language
text file
dot notation
dot operator
29. One of the operators that compares two values: == or != or > or < or >= and <=.
comparison operator
algorithm
return value
step size
30. A style of programming in which data and the operations that manipulate it are organized into classes and methods.
object-oriented programming
encode
rules of precedence
loop variable
31. A style of program design in which the majority of functions are pure.
binary tree
event
functional programming style
comment
32. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.
level
compile
boolean expression
debugging
33. Code that is used during program development but is not part of the final version.
scaffolding
subexpression
counter
child class
34. A name that refers to a value.
client
standard library
variable
key
35. A general process for solving a category of problems.
dot product
singleton
algorithm
child
36. A branch of the conditional statement in a recursive function that does not result in a recursive call.
subexpression
base case
modifier
method
37. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.
key
prototype development
infinite recursion
child
38. A way of developing programs starting with a prototype and gradually testing and improving it.
prototype development
dead code
token
high-level language
39. A combination of variables and operators and values that represents a single result value.
recursive call
expression
Queue
command line
40. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.
whitespace
inorder
boolean function
decrement
41. The structure of a program.
infinite recursion
syntax
newline
hint
42. A statement that creates a new function specifying its name and parameters and the statements it executes.
parse
function definition
data type
unit testing
43. The set of nodes equidistant from the root.
level
key-value pair
optional parameter
parameter
44. The block of statements in a compound statement that follows the header.
concatenate
command prompt
element
body
45. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.
class
random
boolean function
whitespace
46. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.
tuple
boolean value
wrapper
object-oriented language
47. A property of a program that can run on more than one kind of computer.
prototype development
composition
portability
list comprehension
48. A reference to a list node can be treated as a single object or as the first in a list of nodes.
binary operator
cargo
inorder
fundamental ambiguity theorem
49. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.
parse
iteration
whitespace
test-driven development (TDD)
50. A sequence of one or more characters used to specify the boundary between separate parts of text.
delimiter
infinite recursion
tuple assignment
slice