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. Multiple variables that contain references to the same object.
standard library
precondition
aliases
comparison operator
2. A process for developing a program.
conditional statement
low-level language
prototype development
development plan
3. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.
natural language
object
Queue
key-value pair
4. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).
runtime error
functional programming style
command line argument
dot notation
5. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.
directory
modulus operator
polymorphic
interface
6. A program stored in a file (usually one that will be interpreted).
script
traceback
directory
recursive definition
7. Code that satisfies the syntactic and semantic requirements of an interface.
initialization method
body
implementation
pure function
8. 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.
trace
keyword
base case
interpret
9. One of the basic elements of the syntactic structure of a program - analogous to a word in a natural language.
token
provider
key-value pair
text file
10. A data structure that implements a collection using a sequence of linked nodes.
linked list
iteration
volatile memory
infinite loop
11. To create a new object that has the same value as an existing object.
prototype development
list comprehension
syntax error
clone
12. The first part of a compound statement. Headers begin with a keyword and end with a colon (:)
invariant
iteration
header
dot notation
13. The block of statements in a compound statement that follows the header.
temporary variable
composition (of functions)
escape sequence
body
14. A statement that creates a new function specifying its name and parameters and the statements it executes.
scalar multiplication
continue statement
function definition
expression
15. A graphical representation of a set of variables and the values to which they refer.
encapsulate
docstring
recursion
state diagram
16. An expression in parentheses that acts as a single operand in a larger expression.
clone
subexpression
prototype development
base case
17. A list that is an element of another list.
nested list
level
singleton
base case
18. Using the output from one function call as the input to another.
namespace
function composition
command line argument
body
19. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.
object-oriented language
chained conditional
inorder
value
20. A variable defined inside a function. A local variable can only be used inside its function.
local variable
concatenate
object code
value
21. Decrease by 1.
pure function
local variable
decrement
mutable type
22. A special symbol that represents a simple computation like addition or multiplication or string concatenation.
handle an exception
operator
overflow
list
23. The statements inside a loop.
accumulator
linked list
body
element
24. 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.
generalize
pure function
variable
assignment statement
25. A numerical value that does not change during the execution of a program.
header
key
constant
attribute
26. A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language.
event loop
docstring
low-level language
attribute
27. Both as a noun and as a verb - it means to increase by 1.
linked list
parse
encode
increment
28. Having no specific pattern. Unpredictable.
boolean value
random
compiler
preorder
29. A method for naming and accessing and organizing files and the data they contain.
file system
portability
comparison operator
recursion
30. 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.
fruitful function
counter
syntax
tuple
31. Code that is used during program development but is not part of the final version.
encode
function definition
scaffolding
runtime error
32. An escape character '' followed by one or more printable characters used to designate a nonprintable character.
default value
trichotomy
namespace
escape sequence
33. To signal an exception using the raise statement.
assignment statement
encapsulate
frame
raise
34. 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.
logical operator
compound statement
overflow
prefix notation
35. A program in a high-level language before being compiled.
compound statement
source code
pure function
syntactical errors
36. The structure of a program.
syntax
helper
constant
delimiter
37. A data type which can be modified.
side effect
assignment statement
nested loop
mutable data type
38. A thing to which a variable can refer.
trichotomy
object
encapsulate
Priority Queue
39. An ADT that performs the operations one might perform on a queue.
byte code
Queue
development plan
operator overloading
40. An expression that is either true or false.
boolean expression
tuple
infinite loop
naming collision
41. A change in the state of a program made by calling a function that is not a result of reading the return value from the function. Can only be produced by modifiers.
newline
side effect
nested list
child
42. The process of calling the function that is currently executing.
chained conditional
concatenate
recursion
linear time
43. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.
source code
list
random
infinite recursion
44. A file that contains printable characters organized into lines separated by newline characters.
embedded reference
text file
postorder
command line argument
45. An explicit statement that takes a value of one type and computes a corresponding value of another type.
tail recursion
comment
immutable
type conversion
46. A character or string used to indicate where a string should be split.
generic data structure
generalize
prefix notation
delimiter
47. 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.
immutable data type
fundamental ambiguity theorem
parse
class attribute
48. The meaning of a program.
binary tree
semantics
infix
portability
49. The ability to define a new class that is a modified version of a previously defined class.
type conversion
rules of precedence
logical operator
inheritance
50. To read a string of characters or tokens and analyze its grammatical structure.
variable
iteration
parse
list comprehension