wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSE Quiz review for Midterm

Total questions: 50

Worksheet time: 35mins

Name
Class
Date
1.

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

2.
This is the image for 
a)
Google Classroom
b)
Google Sites
c)
Google Docs
d)
Google Sheets
3.
This is an example of what kind of data?
a)
String Data
b)
Number Data
c)
Boolean Data
d)
Words Data
4.

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

a)

an event handler

b)

a logical operator

c)

a float

d)

an integer

5.

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

6.

In the picture, OR is an example of:

a)

a logical operator

b)

an argument

c)

a float

d)

a string

7.

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

8.

Which block of code below demonstrates an example of abstraction?

a)
b)
c)
d)
9.

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

10.

What output would be given if the user typed in 'ten' as the pizza size?

a)

An entry was left blank.

b)

Please enter a number and try again!

c)

Area: 78.5

d)

False

11.

If I say the word "Algorithm" I am talking about what?

a)

When we all go to a store called Rithim.

b)

Algae that can DANCE!!!

c)

A new dance move.

d)

A list of steps you follow to finish a task.

12.

In coding an event is what?

a)

An action that causes something to happen.

b)

An item on your calendar.

c)

A way to move air.

d)

A device that blows air into your computer.

13.

Problems or mistakes in the code for an algorithm or program are known as:

a)

Bugs

b)

Slugs

c)

Tugs

d)

Rugs

14.

When you tell the computer to repeat a command or step over and over and over and over and over and over and over and over and over and... oh yeah, over again as many times as you tell to repeat.

a)

Deja Vu

b)

Loop

c)

Repeating

d)

Being annoying

15.

Statements that can only run under certain conditions or situations such as: if the seat is taken, then move to the next available seat.

a)

conditionals (if/then statements)

b)

variable

c)

abstractions

d)

binary

16.

A technique or process that manages complexity in a program or computer system. Abstraction "hides" details or removes duplication, allowing the programmer to focus on high-level considerations and functions rather than the rules of a programming language.

a)

abstraction

b)

accumulator

c)

aggregator

d)

algorithm

17.

A set of steps to accomplish a task. An algorithm can be expressed in many kinds of notation, such as natural language, pseudocode, and flowcharts. Algorithms are essential to the way computers process data, because they contain the specific instructions for what a computer or program does.

a)

algorithm

b)

accumulator

c)

aggregator

d)

abstraction

18.

A software application, especially one that a user downloads to a mobile device.

a)

app

b)

append

c)

API

d)

argument

19.

One of two values, such as "true" or "false".

a)

boolean

b)

branch

c)

broadcast

d)

backlog

20.

A set of program instructions.

a)

code

b)

class

c)

characters

d)

complier

21.

A function or artifact in an app that you can add in Design view of MIT App Inventor. Examples are: Canvas, Camera, Label, Slider, Sound, Horizontal arrangement, Button.

a)

component

b)

computer science

c)

conditional statement

d)

counting loop

22.

A programming statement that evaluates a true/false Boolean expression to determine the next steps in a program

a)

conditional statement

b)

component

c)

computer science

d)

criterion

23.

An action or occurrence that happens during runtime that will trigger a response or behavior by the software.

a)

event

b)

expression

c)

file path

d)

file extension

24.

a control block that looks for inputs or events to know when to perform a specific action.

a)

event handler

b)

equality

c)

file extension

d)

float

25.

A process of repeating a set of instructions a specified number of times or until a condition is met. Also known as a loop.

a)

iteration

b)

list

c)

loop

d)

method

26.

A sequence of instructions that continually repeats until a condition is met. Also known as an iteration

a)

loop

b)

iteration

c)

machine vision

d)

modular

27.

A structured collaborative process in which two people create code together, each with a specific role. The "driver" types at the keyboard and the "navigator" directs the code creation based on the requirements of the development.

a)

pair programming

b)

output

c)

parameter

d)

operating system

28.

Which components in AppInventor are used to increase the usability of a user interface? Select all that apply.

a)

Labels

b)

Speech to text

c)

Accelerometer

d)

TinyDB

29.

What three colors are mixed together to create the images you see on monitors?

a)

Red, green, blue

b)

Red, blue, yellow

c)

Red, green, yellow

d)

Green, blue, yellow

30.

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

31.
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
32.
Python identifies blocks of code by
a)
BEGIN and END keywords
b)
{ and }
c)
aligning up the starts of lines (indentation)
d)
guessing
33.
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.
34.
What symbol do you use to make a comment in Python?
a)
@
b)
¬
c)
;
d)
#
35.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
36.
What will the output be from the following code?
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
37.
What will the output be from the following code?
print("3*4+5")
a)
SyntaxErrror
b)
17
c)
3*4+5
d)
12
38.
What will the output be from the following code?
print("Hello" + "world" + "today")
a)
Helloworldtoday
b)
Hello world today
c)
"Hello" "world" "today"
d)
SyntaxError
39.
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
40.
Joining elements together to make a string is called what?
a)
Combining
b)
Connecting
c)
Concatenation
d)
Stringing
41.
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 
42.
A data type consisting of numbers, letters and symbols.
a)
String
b)
Integer
c)
Float
d)
Boolean
43.
Code repeated / looped until a condition has been met or a set number of times.
a)
Sequence
b)
Selection
c)
Iteration
d)
Variable
44.
A location in memory used to store data that can be changed.
a)
Constant
b)
Value
c)
Variable
d)
Iteration
45.
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
46.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
47.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
48.
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
49.

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

print (people[1])

what would this result be?

a)
John
b)
Rob
c)
Bob
50.

A procedure to follow, especially using iteration and conditionals

a)

For Loop

b)

Algorithm

c)

Return Value

d)

Concatenation