wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PLTW CSE Essentials - Review for EOC

Total questions: 170

Worksheet time: 2hrs 22mins

Name
Class
Date
1.
A(n) abstraction is:
a)
Way to manage complexity, hide details or remove duplication
b)
Type of code to perform a math operation, such as + - * /
c)
Values that a program provides to a function or subroutine
d)
A set of steps to accomplish a task.
2.

A(n) algorithm is:

a)

Values that a program provides to a function or subroutine

b)

Way to manage complexity, hide details or remove duplication

c)

Type of code to perform a math operation, such as + - * /

d)

A set of steps to accomplish a task.

3.

A(n) argument is:

a)

Way to manage complexity, hide details or remove duplication

b)

A set of steps to accomplish a task.

c)

Values that a program provides to a function or subroutine

d)

Type of code to perform a math operation, such as + - * /

4.

A(n) arithmetic operator is:

a)

Values that a program provides to a function or subroutine

b)

Type of code to perform a math operation, such as + - * /

c)

A set of steps to accomplish a task.

d)

Way to manage complexity, hide details or remove duplication

5.
A(n) Boolean expression is:
a)
An expression that can be evaluted as TRUE or FALSE. Often used in CONDITIONAL STATEMENTS, such as IF (condition) THEN (action1) ELSE (action2)
b)
Operators that are used to combine or change Boolean Expressions. The 3 standard operators are AND, OR, and NOT.
c)
Control block that looks for events to then perform action
d)
A symbol that represents a compare action for a computer to take. Examples are: ">" (greater than), "<" (less than) and "=" (equal)
6.

A(n) relational operator is:

a)

An expression that can be evaluted as TRUE or FALSE. Often used in CONDITIONAL STATEMENTS, such as IF (condition) THEN (action1) ELSE (action2)

b)

A symbol that represents a compare action for a computer to take. Examples are: ">" (greater than), "<" (less than) and "=" (equal)

c)

Operators that are used to combine or change Boolean Expressions. The 3 standard operators are AND, OR, and NOT.

d)

Control block that looks for events to then perform action

7.

A(n) event handler is:

a)

Operators that are used to combine or change Boolean Expressions. The 3 standard operators are AND, OR, and NOT.

b)

A symbol that represents a compare action for a computer to take. Examples are: ">" (greater than), "<" (less than) and "=" (equal)

c)

An expression that can be evaluted as TRUE or FALSE. Often used in CONDITIONAL STATEMENTS, such as IF (condition) THEN (action1) ELSE (action2)

d)

Control block that looks for events to then perform action

8.

A(n) logical operator is:

a)

An expression that can be evaluted as TRUE or FALSE. Often used in CONDITIONAL STATEMENTS, such as IF (condition) THEN (action1) ELSE (action2)

b)

Control block that looks for events to then perform action

c)

A symbol that represents a compare action for a computer to take. Examples are: ">" (greater than), "<" (less than) and "=" (equal)

d)

Operators that are used to combine or change Boolean Expressions. The 3 standard operators are AND, OR, and NOT.

9.
A(n) float is:
a)
A precise number by including values after the decimal place
b)
A programming statement that directs control flow - it uses BOOLEAN expressions to make a choice between different paths (IF (condition) THEN (path1) ELSE (path2)
c)
A data type that can have only 2 values - TRUE or FALSE
d)
A whole number, it does not have any digits after a decimal.
10.

A(n) integer is:

a)

A programming statement that directs control flow - it uses BOOLEAN expressions to make a choice between different paths (IF (condition) THEN (path1) ELSE (path2)

b)

A precise number by including values after the decimal place

c)

A whole number, it does not have any digits after a decimal.

d)

A data type that can have only 2 values - TRUE or FALSE

11.
A(n) boolean is:
a)
A data type that can have only 2 values - TRUE or FALSE
b)
A whole number, it does not have any digits after a decimal.
c)
A precise number by including values after the decimal place
d)
A programming statement that directs control flow - it uses BOOLEAN expressions to make a choice between different paths (IF (condition) THEN (path1) ELSE (path2)
12.

A(n) conditional statement is:

a)

A precise number by including values after the decimal place

b)

A data type that can have only 2 values - TRUE or FALSE

c)

A whole number, it does not have any digits after a decimal.

d)

A programming statement that directs control flow - it uses BOOLEAN expressions to make a choice between different paths (IF (condition) THEN (path1) ELSE (path2)

13.
A(n) event is:
a)
An action (such as clicking a button) or occurrence (receiving a text message) that happens during runtime that will trigger a response or behavior by the software.
b)
The smallest unit of data storage that a program can use.
c)
An object such as a number or word. A _____ is an expression that cannot be evaluated any further. Variables are evaluated to a final ____ before operators (arithmetic, relational, or logical) are then used on them.
d)
A type of variable that holds text (characters, numbers, punctuation or math symbols). Uses quotes to tell the computer to not treat what is inside the string (inside the quotes) as code.
14.

A(n) string is:

a)

An object such as a number or word. A _____ is an expression that cannot be evaluated any further. Variables are evaluated to a final ____ before operators (arithmetic, relational, or logical) are then used on them.

b)

An action (such as clicking a button) or occurrence (receiving a text message) that happens during runtime that will trigger a response or behavior by the software.

c)

The smallest unit of data storage that a program can use.

d)

A type of variable that holds text (characters, numbers, punctuation or math symbols). Uses quotes to tell the computer to not treat what is inside the string (inside the quotes) as code.

15.

A(n) value is:

a)

A type of variable that holds text (characters, numbers, punctuation or math symbols). Uses quotes to tell the computer to not treat what is inside the string (inside the quotes) as code.

b)

An object such as a number or word. A _____ is an expression that cannot be evaluated any further. Variables are evaluated to a final ____ before operators (arithmetic, relational, or logical) are then used on them.

c)

An action (such as clicking a button) or occurrence (receiving a text message) that happens during runtime that will trigger a response or behavior by the software.

d)

The smallest unit of data storage that a program can use.

16.

A(n) variable is:

a)

An action (such as clicking a button) or occurrence (receiving a text message) that happens during runtime that will trigger a response or behavior by the software.

b)

An object such as a number or word. A _____ is an expression that cannot be evaluated any further. Variables are evaluated to a final ____ before operators (arithmetic, relational, or logical) are then used on them.

c)

A type of variable that holds text (characters, numbers, punctuation or math symbols). Uses quotes to tell the computer to not treat what is inside the string (inside the quotes) as code.

d)

The smallest unit of data storage that a program can use.

17.

Which Event Handler will update the Screen to show the picture taken on the Canvas?

a)

Camera 1

b)

Camera 2

c)

Camera 3

d)

Camera 4

18.

If "AngryBird.X > HappyPig.X" is TRUE and "AngryBird.Y > HappyPig.Y" is FALSE, what color will be chosen?

a)

Purple

b)

Green

c)

Orange

d)

Yellow

19.

If AngryBird.X = 10, AngryBird.Y = 10 and HappyPig.X = 30, HappyPig.Y = 30, what color will be chosen?

a)

Purple

b)

Green

c)

Orange

d)

Yellow

20.

If AngryBird.X = 50, AngryBird.Y = 50 and HappyPig.X = 30, HappyPig.Y = 30, what color will be chosen?

a)

Purple

b)

Green

c)

Orange

d)

Yellow

21.

"when slider1.position changed" is an example of:

a)

an event handler

b)

a logical operator

c)

a float

d)

an integer

22.

"message", "title", "button1Text" are all examples of:

a)

abstraction

b)

arguments

c)

booleans

d)

events

23.

In the picture, "HappyImage.Y < Canvas1.Height * 0.1" is an example of:

a)

a boolean expression

b)

an event

c)

arguments

d)

an abstraction

24.

In the picture, OR is an example of:

a)

a logical operator

b)

an argument

c)

a float

d)

a string

25.

In the picture, the x in "Canvas1.Height x 0.1" is:

a)

a relational operator

b)

a logical operator

c)

an arithmetic operator

d)

a string

26.

What does Modulo do

a)

Gives the difference of two numbers

b)

Does simple arithmetic

c)

Give the product when mutiplying

d)

Returns the reminder when divding

27.

What does the following code statement mean "from .models import Question"?

a)

The code statement allows the views.py file to access to your Question data type defined in the models.py file.

b)

The code statement allows the views.py file access to your Question data type defined in the urls.py file.

c)

The code statement allows the views.py file access to your Question data type defined in the admin.py file.

d)

The code statement allows the views.py file access to your Question data type defined in the views.py file.

28.
To repeat a fixed number of times use a
a)
while loop
b)
for loop
c)
if loop
d)
indentation
29.
To repeat until a particular condition is true use
a)
while loop
b)
for loop
c)
if loop
d)
indentation
30.
The second part of if, that is executed when the condition is false
a)
if
b)
else
c)
for
d)
input
31.
Data type that can only be true or false
a)
int
b)
string
c)
bool
d)
float
32.
A variable that can hold a collection of values, often called an array in other programming languages
a)
list
b)
int
c)
string
d)
constant
33.
Decides if a string only contains numbers
a)
isalpha()
b)
isnumeric()
c)
int()
d)
string()
34.
Tells the interpreter that the code which follows is a function
a)
const
b)
int
c)
def
d)
while
35.
Converts a number to a string
a)
str()
b)
int()
c)
parseInt()
d)
convert
36.
Python identifies blocks of code by
a)
BEGIN and END keywords
b)
{ and }
c)
aligning up the starts of lines (indentation)
d)
guessing
37.
What extension must you add to the end of a file when saving?
a)
.xlsx
b)
.pptx
c)
.docx
d)
.py
38.
What does the term 'debug' mean?
a)
Identify errors and fix them.
b)
Making a calculation
c)
A set of instructions
d)
Looking at code
39.
What does the print function do in python?
a)
It's a variable.
b)
It can input data.
c)
It displays something like a string or integer
d)
It loops the code.
40.
What symbol do you use to make a comment in Python?
a)
@
b)
¬
c)
;
d)
#
41.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
42.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
43.
What will the output be from the following code?
Print("Hello world!")
a)
NameError
b)
Hello world!
c)
"Hello world"
d)
Print(Hello world!)
44.
What will the output be from the following code?
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
45.
What will the output be from the following code?
print(3*4)
a)
34
b)
7
c)
12
d)
3*4
46.
What will the output be from the following code?
print(3*4+5)
a)
27
b)
17
c)
12
d)
SyntaxError
47.
What will the output be from the following code?
print("3*4+5")
a)
SyntaxErrror
b)
17
c)
3*4+5
d)
12
48.
What will the output be from the following code?
print(9/3)
a)
3
b)
3.0
c)
9/3
d)
SyntaxError
49.
What will the output be from the following code?
print("Hello" + "world!")
a)
Hello world!
b)
Helloworld!
c)
SyntaxError
d)
"Hello" "world!"
50.
What will the output be from the following code?
print(9/3*2+4-5)
a)
19
b)
5.0
c)
0.5
d)
5
51.
What will the output be from the following code?
print("Hello" + 2 + "world")
a)
Hello 2 world
b)
Hello2world
c)
TypeError
d)
HelloHelloworld
52.
Joining elements together to make a string is called what?
a)
Combining
b)
Connecting
c)
Concatenation
d)
Stringing
53.
What is syntax?
a)
Syntax is the word used to describe an error
b)
Syntax is the rules of the programming language
c)
It is used to read information
d)
It is used to output information 
54.
A data type consisting of numbers, letters and symbols.
a)
String
b)
Integer
c)
Float
d)
Boolean
55.
Data type for a whole number
a)
String
b)
Integer
c)
Boolean
d)
Float
56.
A location in memory used to store data that can be changed.
a)
Constant
b)
Value
c)
Variable
d)
Iteration
57.
To solve a problem that requires the user to enter 10 numbers would use what type of iteration?
a)
While loop
b)
For loop
c)
Variable
d)
Selection
58.
The user is asked to enter a number which must be below one hundred. What type of iteration would be used to check this?
a)
For loop
b)
While loop
c)
Check loop
d)
Repeat loop
59.

Which of these is spelled correctly...

a)

Iteration

b)

Iteraton

c)

Iteretion

d)

Iterasion

60.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
61.
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
a)
True
b)
False
62.
Python is an example of a....
a)
Text-based programming language
b)
Object orientated programming language
c)
language written in java script
d)
Visual-based programming language
63.
Which of these would work as a piece of code?
a)
IF answer == "Yes":
b)
if answer == "Yes"
c)
if answer == "Yes":
d)
if answer = "yes":
64.
If you want more than one option for your code, what do you use (after if)?
a)
elif
b)
else
c)
ifif
65.

people = ["John", "Rob", "Bob"]

print (people[1])

what would this result be?

a)
John
b)
Rob
c)
Bob
66.

people = ["John", "Rob", "Bob"]

print (people[-1])

what would this result be?

a)
John
b)
Rob
c)
Bob
67.

people = ["John", "Rob", "Bob"]

print (people[4])

what would this result be?

a)
John
b)
Rob
c)
Bob
d)
Error
68.

Local is the opposite of global. Properties of components are global variables. Any variable that you initialize at the start of a program in App Inventor is a global variable.

a)

True

b)

False

69.

A variable and pattern designed to keep a running total through multiple iterations

a)

Accumulator Pattern

b)

Concatenation

c)

While Loop

d)

Counted Loop

70.

A procedure to follow, especially using iteration and conditionals

a)

For Loop

b)

Algorithm

c)

Return Value

d)

Concatenation

71.

What numbers are included in this range call: range(2, 10, 2)

a)

2, 4, 6, 8, 10

b)

2, 4, 6, 8

c)

1, 2, 3, 4, 5, 6, 7, 8, 9

d)

2, 3, 4, 5, 6, 7, 8, 9

72.
What will the output be from the following code?
print("Hello world!\nHello world!")
a)
Hello world! Hello world!
b)
Hello world!
Hello world!
c)
SyntaxError
d)
Hello world!
73.
What will the output be from the following code?
print("Hello world!" * 2)
a)
TypeError
b)
Hello world world!
c)
Hello world!Hello world!
d)
Hello world! * 2
74.
To create a newline at the end of prompt, you can use which of the following expressions?
a)
\new
b)
\n
c)
\break
d)
\return
75.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
76.
What will be the output?
name = 'Dave'
greeting = "Good morning" + name
print (greeting)
a)
Good moning 'Dave'
b)
Good morning Dave
c)
Good morning name
d)
Good morning + Dave
77.
! =
a)
greater than variable
b)
less than variable
c)
equal to
d)
not equal to
78.
2 = = 3
a)
TRUE
b)
FALSE
79.
3<=4
a)
TRUE
b)
FALSE
80.
Choose the correct Python code.
if age is less than 20 and greater than equal or equal to 15 then
a)
if age <20 and age >=15:
b)
if age <20>=15 :
81.

The modulo operation finds only the remainder when one number is divided by another. True or false?

a)

True

b)

False

82.
a)
5
b)
6
c)
21
d)
36
83.
a)

5

b)

6

c)

21

d)

36

84.
a)
A
b)
B
c)
C
d)
D
85.
What will the following lines of code print?
a)
A
b)
B
C
c)
A
C
d)
Nothing, it will return an error.
86.
What is another way of writing the following code? 
Score = Score + 1 
a)
Score.add(1)
b)
score + 1
c)
Score + Score
d)
Score += 1
87.
Which statement will check to see if a is equal to b?
a)
if a == b
b)
if a = b:
c)
if a != b:
d)
if a == b:
88.
What will be printed after running this FOR loop:

for number in range(6):
 
    print(number)
a)
The number 6 
b)
The numbers 0 - 5
c)
The number 5
d)
The numbers 1 - 6
89.
How many times does the following program print the word ‘computer’:

word= "computer"  
for num in range(1,6):
 
    print(word)
a)
5
b)
6
c)
1
d)
0
90.

The screen where you can drag and drop component pieces and design them using the User Interface.

a)

Designer

b)

Blocks Editor

c)

H&M on 34th street next to the chicken and rice cart

91.

The part of the app users open and interact with is the called the

a)

Back end

b)

User interface

c)

List

d)

Procedure

92.

The place where I tell the components of my app what to do

a)

Designer

b)

Blocks Editor

c)

Event

d)

Comment

93.

This refers to everything the user can't see in the browser, like databases and servers.

a)

Front End

b)

User Interface

c)

Back End

94.

Which menu option allows you to create a new app?

a)

Projects

b)

Connect

c)

Build

d)

Help

95.

Which menu option allows you to test your app?

a)

Project

b)

Connect

c)

Build

d)

Help

96.

Which menu option do you choose to begin developing an app?

a)

AI Companion

b)

Start New Project

c)

Save Project

d)

Export Selected Project

97.

Which menu option allow you to test your app via a WiFi connection?

a)

AI Companion

b)

Emulator

c)

USB

d)

Bluetooth

98.

Which of these is NOT one of the 3 main screens in App Inventor?

a)

Projects

b)

Connect

c)

Designer

d)

Blocks

99.

Which section of the Designer page displays how your app appears to the user?

a)

Pallette

b)

Viewer

c)

Components

d)

Properties

100.

On the Palette, under which selection will you find a Button?

a)

User Interface

b)

Layout

c)

Media

d)

Sensors

101.

On the Palette, under which item will you find the Accelerometer?

a)

User Interface

b)

Layout

c)

Media

d)

Sensors

102.

On the Palette, under which item will you find the Horizontal Arrangement?

a)

User Interface

b)

Layout

c)

Media

d)

Sensors

103.

On the Palette, under which item will you find the TextBox?

a)

User Interface

b)

Layout

c)

Media

d)

Sensorrs

104.

On the Palette, under which item will you find the Canvas?

a)

User Interface

b)

Layout

c)

Drawing and Animation

d)

Media

105.

On the Palette, under which item will you find the Clock?

a)

User Interface

b)

Media

c)

Layout

d)

Sensors

106.

On the Blocks page, under which item will you find the "If-Then" blocks?

a)

Control

b)

Logic

c)

Math

d)

Text

107.

The playing field for any App Inventor game is called a(n) ______?

a)

Label

b)

Canvas

c)

Horizontal Alignment

d)

Clock

108.

On the Blocks page, under which item will you find the "If-Then" blocks?

a)

Control

b)

Logic

c)

Math

d)

Text

109.

When connecting App Inventor to your mobile device via AI Companion, QR in QR Code stands for?

a)

Quick Read

b)

Quick Ready

c)

Quit Read

d)

Quite Ready

110.

Which ImageSprite Event causes this sprite to bounce off the edge of the screen?

a)

CollidedWith

b)

Dragged

c)

Touched

d)

EdgeReached EdgeReached

111.

All App Inventor Components have _______?

a)

Labels

b)

Images

c)

Buttons

d)

Properties

112.

Which ImageSprite Event causes this sprite to bounce off the edge of the screen?

a)

CollidedWith

b)

Dragged

c)

Touched

d)

EdgeReached EdgeReached

113.

Components have Properties such as color, size and behavior. A behavior example is ____?

a)

Height

b)

Speed

c)

Width

d)

Text

114.

To get a HorizontalArrangement to fill the width of the screen, which Property should be set?

a)

Height

b)

Width

c)

AlignHorizontal

d)

AlignVertical

115.

What is the purpose of this backpack icon?

a)

store apps in it

b)

delete unwanted blocks

c)

export blocks to other apps

d)

to make the page look pretty to make the page look pretty

116.

In programming, this is an action that occurs as a result of the user or another source,

a)

occassion

b)

design

c)

block

d)

event

117.

An example of an event would be?

a)

Mouse being clicked to hit mole

b)

Pressing right left arrow keys

c)

Key pad pressed to watch video

d)

All of the above

118.

Pieces of your app that do actions for you.

a)

String

b)

Components

c)

Array

d)

Block

119.

A component that you can animate and that can interact with a canvas.

a)

Image

b)

Charcter

c)

ImageSprite

d)

Image Component

120.

A ball is an example of an ___________?

a)

images

b)

canvas component

c)

imagesprites

121.

Label, Sound, or Button are all?

a)

loops

b)

blocks

c)

design variables

d)

components

122.

Procedures and events in MIT APP INVENTOR are called?

a)

arguments

b)

strings

c)

blocks

d)

loops

123.

These you connect together to tell your app what to do in App Inventor

a)

If Statements

b)

Blocks

c)

Loops

d)

Hadlers

124.

This is where you can drag and drop component pieces and design them using the User Interface

a)

Design Area

b)

Drawer

c)

Blocks

d)

Emuator

125.

What is wrong with this block of code

a)

It is missing the event handler block

b)

it is not going back to the original position

c)

It is not giving a point if it is put in the correct spot

126.
This is an example of what kind of data?
a)
String Data
b)
Number Data
c)
Boolean Data
d)
Words Data
127.
By clicking the blue icon, the programmer can drag additional smaller blocks into the larger block, thus changing the shape and functionality of the original block. 
a)
Mutator
b)
Global Variable
c)
Iteration
d)
Component
128.
Android is a ___________
a)
Open Source Software
b)
Google Play Store
c)
Flowchart                       
d)
Sweet DISH 
129.
Non-visible component that can detect shaking and measure acceleration approximately in three dimensions using SI units 
a)
gyroscope sensor
b)
pedometer
c)
accelorometer
d)
proximity 
130.

What does the purple block represent?

a)

Parameter

b)

Event Handler

c)

Command Block

d)

String

131.
A formatting element in which to place components that should be displayed from left to right
a)
Horizontal Arrangment
b)
Table Arrangement 
c)
Vertical Arrangement 
d)
Sideways Arrangements 
132.
Can detect clicks.
a)
label
b)
button
c)
textbox
d)
slider
133.
A component used to enter text
a)
Label 
b)
Spinner
c)
Button 
d)
Textbox
134.

This section allows you to see the apps interface as it would look on your device.

a)

Media

b)

Animation

c)

Image Picker

d)

Viewer

135.

True or False: Components can be either visible or non-visible.

a)

True

b)

False

136.
A list of tasks taken from the backlog that can be completed within a two week time line is called a . . .
a)
Backlog.
b)
Sprint task list.
c)
Procedure
d)
Event Handler
137.
A prioritized list of features that an app should have when it is finished is called a . . .
a)
Backlog.
b)
Sprint Task List.
c)
Data List.
d)
An Event Handler.
138.
A button click is an an example of . . .
a)
an Event.
b)
a Procedure
c)
a Argument
d)
a Backlog
139.
The process of saving your App as you develop it with different names to indicate which iteration of the app is most current is called
a)
version control.
b)
procedure building.
c)
using a naming convention.
d)
SCRUM.
140.
Camel Case is an example of ...
a)
a naming convention.
b)
version control.
c)
Python format.
d)
a data type.
141.
This block of code is an example of . . . 
a)
event handler.
b)
conditional statement.
c)
programming loop.
d)
a procedure that uses arguments.
142.
This block of code is an example of . . .
a)
an event handler.
b)
a conditional statement.
c)
an iterative loop.
d)
a non-visible component.
143.
This is an example of what kind of data?
a)
String Data
b)
Number Data
c)
Boolean Data
d)
Words Data
144.
What value is returned from index 3?
a)
3
b)
45
c)
123
d)
255
145.
A variable that can be used anywhere in a program.
a)
String Data
b)
Global Variable
c)
Local Variable
d)
Component
146.
Parts of an interface in a program.  
Examples include buttons and sprites.
a)
Mutator
b)
Global Variable
c)
Local Variable
d)
Component
147.
Code that will repeat itself for each item in a defined list.
a)
Mutator
b)
Global Variable
c)
Iteration
d)
Component
148.

This section is divided into sections and that contain components.

a)

Blocks

b)

Palette

c)

Properties

d)

Media

149.

This area shows a list of pictures and/or sound being used in the project.

a)

Properties

b)

Viewer

c)

Palette

d)

Media

150.

for letter in "12345":

- if letter == 3:

-- continue

- print(letter)

a)

1,2,4,5

b)

1,2,3,4,5

c)

2,3,4,5

d)

Error

151.

x = 0

while x + 1 < 5:

- x = x + 1

else:

- x += 1

print(x)

a)

4

b)

6

c)

5

d)

Infinite Loop

152.

x = 0

while x < 5:

- print(f'The current value of x is {x}')

-- x = x + 2

a)

2,4

b)

2,4,6

c)

0,2,4

d)

0,2,4,6

153.

What will the following code output?

myTuple = [(1, 2), (3, 4), (5, 6)]

for (a, b) in myTuple :

- print(a + b)

a)

1,2,3,4,5,6

b)

1,3,5

c)

2,4,6

d)

3,7,11

154.

mystring = "hello"

for letter in mystring :

- print(mystring.find(letter))

a)

0,1,2,2,4

b)

0,1,2,3,4

c)

0,1,1,2,4

d)

0,1,2,3,3

155.

What will the following code output?

my_list = [1,2,3,4,5,6,7,8,9,10]

for each_item in my_list:

- if each_item % 2 != 0:

-- print(each_item)

a)

All even numbers

b)

All odd numbers

c)

All the numbers

d)

None

156.
Identify the colors: RGB
a)
Red, Green, Blue
b)
Red, Gray, Blue
c)
Rose, Gray, Black
d)
Red, Green Black
157.
These make up your computer screen and contain red, green and blue to make an image. 
a)
RGB
b)
CMYK
c)
Pixels
d)
Halftone
158.
True color is...
a)
made up of 18 bit displays of CMYK
b)
made up of 18 bit displays of RGB
c)
made up of 24 bit displays of CMYK
d)
made up of 24 bit displays of RGB
159.
RGB is for displaying colors on computer screens. 
a)
True
b)
False
160.
RGB uses light to display color.
a)
True
b)
False
161.

When computers count to ten, the count begins with

a)

0

b)

1

c)

a

d)

A

162.
What's the correct algorithm to get the bus to the school?
a)
Turn Left, Move Forward, Move Forward, Turn Right
Move Forward, Move Forward
b)
Move Forward, Move Forward, Move Forward, Turn Left, Turn, Right
c)
Turn Left, Move Forward, Turn Right, Move Forward, Move Forward, Turn Left
d)
Turn Right, Move Forward, Turn Left, Move Forward, Turn Left
163.
The word "coding" means the same as "programming". 
a)
True
b)
False
164.

What will this program do when it is running?

a)

A. Move forward 5 times and then turn left 5 times

b)

B. Turn left and move forward 5 times

c)

C. Turn left 5 times and then move forward 5 times

d)

D. Move forward, then turn left, repeat 5 times

165.

True or False: Sequence matters in coding.

a)

True

b)

False

166.

RGB 255, 0, 0

a)

RED

b)

GREEN

c)

BLUE

d)

BLACK

e)

WHITE

167.

RGB 0, 0, 255

a)

RED

b)

GREEN

c)

BLUE

d)

BLACK

e)

WHITE

168.

RGB 0, 0, 0

a)

RED

b)

GREEN

c)

BLUE

d)

BLACK

e)

WHITE

169.

RGB 255, 255, 255

a)

RED

b)

GREEN

c)

BLUE

d)

BLACK

e)

WHITE

170.

RGB 0, 255, 0

a)

RED

b)

GREEN

c)

BLUE

d)

BLACK

e)

WHITE