Chapter 1
Chapter 2
Chapter 3
Chapter 4
Code Questions
100

Translates a program into a separate machine language program

What is  compiler

100

The process of creating a program that works correctly

What is the program development cycle

100

Shape of a decision structure in a flowchart

What is a diamond shape

100

A loop that uses true/false to control the number of times a loop repeats

What is condition-controlled loop

100

If x < 20 and x > 40:

     print('The value of x is ', x)

What is an error

200
What part of the computer is responsible for running a program

What is the CPU

200

A set of well-defined steps that must be taken to perform a task

What is an algorithm

200

A statement that is used to test and expression

What is an if statement

200

A test that is performed before the iteration of code in a loop is executed

What is a pre-test

200

print('You need to read \"Hamlet\")

You need to read "Hamlet"

300

Type of disk drive that is more reliable than a traditional disk drive

What is a solid state drive

300

A graphical tool that programmers use to design a program

What is a flowchart

300

An operator that determines whether a specific relationship exists between two values (> < !=)

What is relational operator

300

A loop that runs a specific number of times

What is a count-controlled loop

300

x = 4

y = 5

not (x < y)

False

400

Type of memory that is volatile

What is RAM

400

Informal language that has no syntax rules

What is pseudocode

400

An if statement that has only alternative path of execution

What is a single-alternative statement

400

A function that is used in a for loop to generate a number of iteration that code is to run

What is the range function

400

for i in range (3):

    for x in range(2):

How many times does this code run?

What is 6

500

Place that a computer program is copied into for it to run

What is RAM

500

A name that represents a storage location in the computer memory

What is a variable

500

Using and/or in an if statement is called this type of evaluation

What is short circuit evaluation

500

In a nested loop this section of code is run first

What is the innermost loop

500

x = 0

while x > 0:

    print (x)

    x += 1

How many times will this code run?

What is zero times