Part 1
Part 2
Part 3
Part 4
Part 5
100

Where does a computer store a program and the data that the program is working with while the program is running?

Main memory

100

The process known as the _____ cycle is used by the CPU to execute instructions in a program.      

fetch-decode-execute

100

The following is an example of an instruction written in which computer language?

10110000

Machine Language

100

What is the encoding technique called that is used to store negative numbers in the computer’s memory?

two’s complement

100

Which of the following is the correct if clause to use to determine whether choice is other than 10?

if choice != 10:

200

What is the largest value that can be stored in one byte?

255

200

The smallest storage location in a computer’s memory is known as a _____.

bit

200

Which of these is not a major hardware component of a typical computer system?

Operating system

200

What type of error produces incorrect results but does not prevent the program from running?

logical

200

When using the _____ operator, both sub-expressions must be true for the compound expression to be true.

and

300

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

300

The _____ coding scheme contains a set of 128 numeric codes that are used to represent characters in the computer memory.

ASCII

300

Which mathematical operator is used to raise five to the second power in Python?

**

300

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

300

What type of loop structure repeats the code a specific number of times?

counter controlled loop

400

If value1 is 2.0 and value2 is 12, what is the output of the following command?

print(value1 * value2)

24.0

400

The _____ built-in function is used to read a number that has been typed on the keyboard.

input()

400

When using the _____ operator, one or both sub expressions must be true for the compound expression to be true.

or

400

Which logical operators perform short-circuit evaluation?

or, not

400

What is the format for the while clause in Python?

while condition :

500

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

500

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

500

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

500

What does the following expression mean?

x <= y

x is less or equal to y

500

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