1/91
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
A(n)__________is a set of instructions that a computer follows to perform a task.
a. compiler
b. program
c. interpreter
d. programming language
program
The physical devices that a computer is made of are referred to as________.
a. hardware
b. software
c. the operating system
d. tools
hardware
The part of a computer that runs programs is called________.
a. RAM
b. secondary storage
c. main memory
d. the CPU
the CPU
Today, CPUs are small chips known as________.
a. ENIACs
b. microprocessors
c. memory chips
d. operating systems
microprocessors
The computer stores a program while the program is running, as well as the data that the program is working with, in_______.
a. secondary storage
b. the CPU
c. main memory
d. the microprocessor
main memory
This is a volatile type of memory that is used only for temporary storage while a program is running.
a. RAM
b. secondary storage
c. the disk drive
d. the USB drive
RAM
A type of memory that can hold data for long periods of time, even when there is no power to the computer, is called_______.
a. RAM
b. main memory
d. secondary storage
d. CPU storage
secondary storage.
A component that collects data from people or other devices and sends it to the computer is called_________.
a. an output device
b. an input device
c. a secondary storage device
d. main memory
an input device
A video display is a(n)________device.
a. output
b. input
c. secondary storage
d. main memory
output
A_______is enough memory to store a letter of the alphabet or a small number.
a. byte
b. bit
c. switch
d. transistor
byte
A byte is made up of eight________.
a. CPUs
b. instructions
c. variables
d. bits
bits
In the_____numbering system, all numeric values are written as sequences of 0s and 1s.
a. hexadecimal
b. binary
c. octal
d. decimal
binary
A bit that is turned off represents the following value:______.
a. 1
b. −1
c. 0
d. “no”
0
A set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters is_______.
a. binary numbering
b. ASCII
c. Unicode
d. ENIAC
ASCII
An extensive encoding scheme that can represent characters for many languages in the world is_______.
a. binary numbering
b. ASCII
c. Unicode
d. ENIAC
Unicode
Negative numbers are encoded using the_______technique.
a. two’s complement
b. floating point
c. ASCII
d. Unicode
two’s complement
Real numbers are encoded using the_________technique.
a. two’s complement
b. floating point
c. ASCII
d. Unicode
floating point
The tiny dots of color that digital images are composed of are called__________.
a. bits
b. bytes
c. color packets
d. pixels
pixels
If you were to look at a machine language program, you would see_________.
a. Python code
b. a stream of binary numbers
c. English words
d. circuits
a stream of binary numbers
In the__________part of the fetch-decode-execute cycle, the CPU determines which operation it should perform.
a. fetch
b. decode
c. execute
d. deconstruct
decode
Computers can only execute programs that are written in_________.
a. Java
b. assembly language
c. machine language
d. Python
machine language
The______translates an assembly language program to a machine language program.
a. assembler
b. compiler
c. translator
d. interpreter
assembler
The words that make up a high-level programming language are called______.
a. binary instructions
b. mnemonics
c. commands
d. keywords
keywords
The rules that must be followed when writing a program are called_______.
a. syntax
b. punctuation
c. keywords
d. operators
syntax
A(n)________program translates a high-level language program into a separate machine language program.
a. assembler
b. compiler
c. translator
d. utility
compiler
A________error does not prevent the program from running, but causes it to produce incorrect results.
a. syntax
b. hardware
c. logic
d. fatal
logic
A__________is a single function that the program must perform in order to satisfy the customer.
a. task
b. software requirement
c. prerequisite
d. predicate
software requirement
A(n)________is a set of well-defined logical steps that must be taken to perform a task.
a. logarithm
b. plan of action
c. logic schedule
d. algorithm
algorithm
An informal language that has no syntax rules and is not meant to be compiled or executed is called________.
a. faux code
b. pseudocode
c. Python
d. a flowchart
pseudocode
A_________is a diagram that graphically depicts the steps that take place in a program.
a. flowchart
b. step chart
c. code graph
d. program graph
flowchart
A_______is a sequence of characters.
a. char sequence
b. character collection
c. string
d. text block
string
A________is a name that references a value in the computer’s memory.
a. variable
b. register
c. RAM slot
d. byte
variable
A_________is any hypothetical person using a program and providing input for it.
a. designer
b. user
c. guinea pig
d. test subject
user
A string literal in Python must be enclosed________.
a. parentheses.
b. single-quotes.
c. double-quotes.
d. either single-quotes or double-quotes.
either single-quotes or double quotes
Short notes placed in different parts of a program explaining how those parts of the program work are called________.
a. comments
b. reference manuals
c. tutorials
d. external documentation
comments
A(n)________makes a variable reference a value in the computer’s memory.
a. variable declaration
b. assignment statement
c. math expression
d. string literal
assignment statement
This symbol marks the beginning of a comment in Python.
a. &
b. *
c. **
d. #
#
Which of the following statements will cause an error?
a. x = 17
b. 17 = x
c. x = 99999
d. x = '17'
17 = x
In the expression 12 + 7, the values on the right and left of the + symbol are called________.
a. operands
b. operators
c. arguments
d. math expressions
operands
This operator performs integer division.
a. //
b. %
c. **
d. /
//
This is an operator that raises a number to a power.
a. %
b. *
c. **
d. /
**
This operator performs division, but instead of returning the quotient it returns the remainder.
a. %
b. *
c. **
d. /
%
Suppose the following statement is in a program: price = 99.0. After this statement executes, the price variable will reference a value of which data type?
a. int
b. float
c. currency
d. str
float
Which built-in function can be used to read input that has been typed on the keyboard?
a. input()
b. get_input()
c. read_input()
d. keyboard()
input()
Which built-in function can be used to convert an int value to a float?
a. int_to_float()
b. float()
c. convert()
d. int()
float()
A magic number is__________________.
a. a number that is mathematically undefined
b. an unexplained value that appears in a program’s code
c. a number that cannot be divided by 1
d. a number that causes computers to crash
an unexplained value that appears in a program’s code
A__________is a name that represents a value that does not change during the program’s execution.
a. named literal
b. named constant
c. variable signature
d. key term
named constant
A_________structure can execute a set of statements only under certain circumstances.
a. sequence
b. circumstantial
c. decision
d. Boolean
decision
A____________structure provides one alternative path of execution.
a. sequence
b. single alternative decision
c. one path alternative
d. single execution decision
single execution decision
A(n)__________expression has a value of either True or False.
a. binary
b. decision
c. unconditional
d. Boolean
Boolean
The symbols >, <, and == are all___________operators.
a. relational
b. logical
c. conditional
d. ternary
relational
A(n)_________structure tests a condition and then takes one path if the condition is true, or another path if the condition is false.
a. if statement
b. single alternative decision
c. dual alternative decision
d. sequence
dual alternative decision
You use a(n)__________statement to write a single alternative decision structure.
a. test-jump
b. if
c. if-else
d. if-call
if
You use a(n)____________statement to write a dual alternative decision structure.
a. test-jump
b. if
c. if-else
d. if-call
if-else
and, or, and not are__________operators.
a. relational
b. logical
c. conditional
d. ternary
logical
A compound Boolean expression created with the__________operator is true only if both of its subexpressions are true.
a. and
b. or
c. not
d. both
and
A compound Boolean expression created with the_________operator is true only if both of its subexpressions are true.
a. and
b. or
c. not
d. both
and
The___________operator takes a Boolean expression as its operand and reverses its logical value.
a. and
b. or
c. not
d. either
not
A__________is a Boolean variable that signals when some condition exists in the program.
a. flag
b. signal
c. sentinel
d. siren
flag
A_________-controlled loop uses a true/false condition to control the number of times that it repeats.
a. Boolean
b. condition
c. decision
d. count
condition
A_________-controlled loop repeats a specific number of times.
a. Boolean
b. condition
c. decision
d. count
count
Each repetition of a loop is known as a(n)__________.
a. cycle
b. revolution
c. orbit
d. iteration
iteration
The while loop is a_________type of loop.
a. pretest
b. no-test
c. prequalified
d. post-iterative
pretest
A(n)_________loop has no way of ending and repeats until the program is interrupted.
a. indeterminate
b. interminable
c. infinite
d. timeless
infinite
The -= operator is an example of a(n)________operator.
a. relational
b. augmented assignment
c. complex assignment
d. reverse assignment
augmented assignment
A(n)_________variable keeps a running total.
a. sentinel
b. sum
c. total
d. accumulator
accumulator
A(n)________is a special value that signals when there are no more items from a list of items to be processed. This value cannot be mistaken as an item from the list.
a. sentinel
b. flag
c. signal
d. accumulator
sentinel
GIGO stands for_________.
a. great input, great output
b. garbage in, garbage out
c. GIGahertz Output
d. GIGabyte Operation
garbage in, garbage out
The integrity of a program’s output is only as good as the integrity of the program’s___________.
a. compiler
b. programming language
c. input
d. debugger
input
The input operation that appears just before a validation loop is known as the__________.
a. prevalidation read
b. primordial read
c. initialization read
d. priming read
priming read
Validation loops are also known as_______.
a. error traps
b. doomsday loops
c. error avoidance loops
d. defensive loops
error traps
A group of statements that exist within a program for the purpose of performing a specific task is a(n)_________.
a. block
b. parameter
c. function
d. expression
function
A design technique that helps to reduce the duplication of code within a program and is a benefit of using functions is_________.
a. code reuse
b. divide and conquer
c. debugging
d. facilitation of teamwork
code reuse
The first line of a function definition is known as the_________.
a. body
b. introduction
c. initialization
d. header
header
You_________a function to execute it.
a. define
b. call
c. import
d. export
call
A design technique that programmers use to break down an algorithm into functions is known as__________.
a. top-down design
b. code simplification
c. code refactoring
d. hierarchical subtasking
top-down design
A___________is a diagram that gives a visual representation of the relationships between functions in a program.
a. flowchart
b. function relationship chart
c. symbol chart
d. hierarchy chart
hierarchy chart
The_______keyword is ignored by the Python interpreter and can be used as a placeholder for code that will be written later.
a. placeholder
b. pass
c. pause
d. skip
pass
A__________is a variable that is created inside a function.
a. global variable
b. local variable
c. hidden variable
d. none of the above; you cannot create a variable inside a function
local variable
A(n)_________is the part of a program in which a variable may be accessed.
a. declaration space
b. area of visibility
c. scope
d. mode
scope
A(n)________is a piece of data that is sent into a function.
a. argument
b. parameter
c. header
d. packet
argument
A(n)________is a special variable that receives a piece of data when a function is called.
a. argument
b. parameter
c. header
d. packet
parameter
A variable that is visible to every function in a program file is a_________.
a. local variable
b. universal variable
c. program-wide variable
d. global variable
global variable
When possible, you should avoid using_______variables in a program.
a. local
b. global
c. reference
d. parameter
global
This is a prewritten function that is built into a programming language.
a. standard function
b. library function
c. custom function
d. cafeteria function
library function
This standard library function returns a random integer within a specified range of values.
a. random
b. randint
c. random_integer
d. uniform
randint
This standard library function returns a random floating-point number in the range of 0.0 up to 1.0 (but not including 1.0).
a. random
b. randint
c. random_integer
d. uniform
random
This standard library function returns a random floating-point number within a specified range of values.
a. random
b. randint
c. random_integer
d. uniform
uniform
This statement causes a function to end and sends a value back to the part of the program that called the function.
a. end
b. send
c. exit
d. return
return
This is a design tool that describes the input, processing, and output of a function.
a. hierarchy chart
b. IPO chart
c. datagram chart
d. data processing chart
IPO chart
This type of function returns either True or False.
a. Binary
b. true_false
c. Boolean
d. logical
Boolean
This is a math module function.
a. derivative
b. factor
c. sqrt
d. differentiate
sqrt