wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSE Quiz #5

Total questions: 50

Worksheet time: 33mins

Name
Class
Date
1.

Sam wants to clean up the user interface on her app. Which view should she be working in on MIT App Inventor?

a)

Designer View

b)

Blocks View

2.

The purple block is called a . . .

a)

Variable

b)

Event

c)

Procedure

d)

List

3.

Select the Integer.

a)

7

b)

7.98

c)

B

d)

"cat"

4.

Which data type only allows True or False as values?

a)

Float

b)

Integer

c)

Boolean

d)

String

5.

Choose the block that represents a CONDITIONAL STATEMENT.

a)
b)
c)
d)
6.

Choose the block that represents a PROCEDURE.

a)
b)
c)
d)
7.

Choose the block that represents a EMPTY TEXT STRING BLOCK.

a)
b)
c)
d)
8.

Choose the block that represents a VARIABLE.

a)
b)
c)
d)
9.

What are the two roles of pair programming?

a)

Driver & Narrator

b)

Driver & Navigator

c)

Controller & Navigator

d)

Boss & Wingman

10.

What does the Driver do in pair programming?

a)

The driver is the boss of the team.

b)

The driver runs the mouse while the navigator runs the keyboard.

c)

The driver drives the car in the video game.

d)

The driver operates the keyboard and the mouse and follows directions from the navigator.

11.

What does the Navigator do in pair programming?

a)

The Navigator operates the keyboard and the mouse.

b)

The Navigator follows directions from the Driver.

c)

The Navigator reviews code, identifies potential errors, and proposed ideas and suggestions.

d)

The Navigator modifies the code and controls the computer.

12.

What is the purpose of these blocks?

a)

To call the ImageSprite.

b)

To move the ImageSprite to the middle of the screen.

c)

To change the height & width of the screen.

d)

To make the screen smaller.

13.

If the user clicks the Guess button, when will this code run?

a)

If the user enters a guess lower than the secret number.

b)

If the user enters a guess higher than the secret number.

c)

if the user enters the correct secret number.

d)

If a sting is typed in

14.
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.
15.

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.

16.

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 + - * /

17.

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

18.
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)
19.

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

20.

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.

21.
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.
22.

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

23.

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)

24.

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.

25.

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.

26.

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.

27.

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

28.

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

29.

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

a)

an event handler

b)

a logical operator

c)

a float

d)

an integer

30.

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

31.

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

a)

an event handler

b)

a logical operator

c)

a float

d)

an integer

32.

Which AppInventor component is used to create a database in the app?

a)

TinyDB

b)

LocalDB

c)

DBstart

d)

DBsetup

33.

What word describes a loop that changes the value of a count by a specific amount every time?

a)

Increment

b)

Global

c)

Join

d)

Endpoint

34.

What programming concept hides details to simplify the program for the user or programmer?

a)

Abstraction

b)

Algorithm

c)

Accumulators

d)

Databases

35.

What type of variables are used in the procedure?

a)

2 global variables

b)

2 local variables

c)

2 local variables and 1 global variable

d)

1 local variable and 2 global variables

36.

What is the modulo of 14 / 8?

a)

6

b)

8

c)

14

d)

1

37.

What data type is a modulo?

a)

String

b)

List

c)

Integer

d)

Float

38.

What is another name for a modulo?

a)

Division

b)

Remainder

c)

Difference

d)

Subtraction

39.

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

40.

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

41.

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

42.

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

43.

In software design, the term decompose means?

a)

To break down a complex problem or system into smaller parts that are more manageable and easier to understand.

b)

To allow for hardware to be recycled and not put in landfills

c)

The amount of time it takes for the hardware to start to breakdown

d)

Breaking up parts of the project and having the project manager assign them.

44.

Is the first step in the design process. Includes the problem being identified, validated, and justified. The design requirements are determined and the design brief is created.

a)

research solutions

b)

generate concepts

c)

define the problem

d)

present solution

e)

construct/test prototype

45.

This step in Design process includes building the a testable prototype. Then testing it for performance/ usability/ durability, collecting the data, analyzing the date and creating a test report of the findings.

a)

construct and test a prototype

b)

generate concepts

c)

present solution

d)

define the problem

e)

iterate the solution

46.
What is the main goal of the design process?
a)
To write reports
b)
To make things
c)
To make charts and graphs
d)
To find solutions to problems
47.

A technology company has identified the need for a smaller laptop computer that weighs less, but they do not have enough knowledge about how to build it.

What would be the next logical step engineers would take to design and produce this laptop computer?

a)

Build a new type of laptop battery

b)

Research current laptop technology

c)

Build a prototype computer

48.

This is the last step in the Design process and is when the project portfolio is shared usually during a formal presentation.

a)

present solution

b)

construct/test prototype

c)

generate concepts

d)

Justifiable

e)

Brainstorm

49.

This step in Design process includes creating a detailed design solution and detailed technical drawings.

a)

present solution

b)

define the problem

c)

construct and test a prototype

d)

evaluate solutions

e)

develop solution

50.

Which step of the design process would you brainstorm ideas on possible solutions or products?

a)

Evaluate Solutions

b)

Generate Concepts

c)

Present Solution

d)

Define the Problem