Where does a computer store a program and the data that the program is working with while the program is running?
Main memory
The process known as the _____ cycle is used by the CPU to execute instructions in a program.
fetch-decode-execute
The following is an example of an instruction written in which computer language?
10110000
Machine Language
What is the encoding technique called that is used to store negative numbers in the computer’s memory?
two’s complement
Which of the following is the correct if clause to use to determine whether choice is other than 10?
if choice != 10:
What is the largest value that can be stored in one byte?
255
The smallest storage location in a computer’s memory is known as a _____.
bit
Which of these is not a major hardware component of a typical computer system?
Operating system
What type of error produces incorrect results but does not prevent the program from running?
logical
When using the _____ operator, both sub-expressions must be true for the compound expression to be true.
and
The _____ function reads a piece of data that has been entered at the keyboard and returns that piece of data, as a string, back to the program.
input
The _____ coding scheme contains a set of 128 numeric codes that are used to represent characters in the computer memory.
ASCII
Which mathematical operator is used to raise five to the second power in Python?
**
After the execution of the following statement, the variable sold will reference the numeric literal value as a(n) _____ data type: sold = 256.752
float
What type of loop structure repeats the code a specific number of times?
counter controlled loop
If value1 is 2.0 and value2 is 12, what is the output of the following command?
print(value1 * value2)
24.0
The _____ built-in function is used to read a number that has been typed on the keyboard.
input()
When using the _____ operator, one or both sub expressions must be true for the compound expression to be true.
or
Which logical operators perform short-circuit evaluation?
or, not
What is the format for the while clause in Python?
while condition :
Which of the following is the correct if clause to determine whether y is in the range 10 through 50?
if y > 10 and y < 50
What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8?
x < y or z > x
true
What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8?
x < y and z > x
false
What does the following expression mean?
x <= y
x is less or equal to y
What are the values that the variable num contains through the iterations of the following for loop?
for num in range(2, 9, 2)
2, 4, 6, 8