WorksheetsPLTW CSE EOY Review #2
Total questions: 100
Worksheet time: 1hrs 2mins
Which Event Handler will update the Screen to show the picture taken on the Canvas?
Camera 1
Camera 2
Camera 3
Camera 4
"when slider1.position changed" is an example of:
an event handler
a logical operator
a float
an integer
In the picture, "HappyImage.Y < Canvas1.Height * 0.1" is an example of:
a boolean expression
an event
arguments
an abstraction
In the picture, OR is an example of:
a logical operator
an argument
a float
a string
In the picture, the x in "Canvas1.Height x 0.1" is:
a relational operator
a logical operator
an arithmetic operator
a string
Which block of code below demonstrates an example of abstraction?
What type of variables are used in the procedure?
2 global variables
2 local variables
2 local variables and 1 global variable
1 local variable and 2 global variables
What output would be given if the user typed in 'ten' as the pizza size?
An entry was left blank.
Please enter a number and try again!
Area: 78.5
False
If I say the word "Algorithm" I am talking about what?
When we all go to a store called Rithim.
Algae that can DANCE!!!
A new dance move.
A list of steps you follow to finish a task.
In coding an event is what?
An action that causes something to happen.
An item on your calendar.
A way to move air.
A device that blows air into your computer.
Problems or mistakes in the code for an algorithm or program are known as:
Bugs
Slugs
Tugs
Rugs
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.
Deja Vu
Loop
Repeating
Being annoying
Statements that can only run under certain conditions or situations such as: if the seat is taken, then move to the next available seat.
conditionals (if/then statements)
variable
abstractions
binary
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.
abstraction
accumulator
aggregator
algorithm
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.
algorithm
accumulator
aggregator
abstraction
A software application, especially one that a user downloads to a mobile device.
app
append
API
argument
One of two values, such as "true" or "false".
boolean
branch
broadcast
backlog
A set of program instructions.
code
class
characters
complier
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.
component
computer science
conditional statement
counting loop
A programming statement that evaluates a true/false Boolean expression to determine the next steps in a program
conditional statement
component
computer science
criterion
An action or occurrence that happens during runtime that will trigger a response or behavior by the software.
event
expression
file path
file extension
a control block that looks for inputs or events to know when to perform a specific action.
event handler
equality
file extension
float
A process of repeating a set of instructions a specified number of times or until a condition is met. Also known as a loop.
iteration
list
loop
method
A sequence of instructions that continually repeats until a condition is met. Also known as an iteration
loop
iteration
machine vision
modular
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.
pair programming
output
parameter
operating system
Which components in AppInventor are used to increase the usability of a user interface? Select all that apply.
Labels
Speech to text
Accelerometer
TinyDB
What three colors are mixed together to create the images you see on monitors?
Red, green, blue
Red, blue, yellow
Red, green, yellow
Green, blue, yellow
A(n) arithmetic operator is:
Values that a program provides to a function or subroutine
Type of code to perform a math operation, such as + - * /
A set of steps to accomplish a task.
Way to manage complexity, hide details or remove duplication
print("Hello world!")
print(3+4)
print("3*4+5")
print("Hello" + "world" + "today")
print("Hello world!" * 2)
people = ["John", "Rob", "Bob"]
print (people[2])
what would this result be?
John
Rob
Bob
A procedure to follow, especially using iteration and conditionals
For Loop
Algorithm
Return Value
Concatenation
Find T ?
T=144 / 2 + 5 * 9 - ( 8 -3 )
106
688
112
684
def.number (r1 , r2)
sum = r1 / r2
return sum
a = number (r2 = 15 , r1 = 10)
2 / 3
3 / 2
error
2
Find the Output:
Item = {"ECE" , "CSE" , "EEE" , "CIVIL"}
Item.add (2,"MECH")
print(Item)
{ "ECE" , "MECH" , "CSE" , "EEE" , "CIVIL" }
{ "ECE" , "CSE" , "MECH" , "EEE" , "CIVIL" }
{ "ECE" , "CSE" , "EEE" , "CIVIL" }
{ "ECE" , "CSE" , "EEE" ,"MECH" , "CIVIL" }
Which of the following function convert a string to a float in python ?
float(X)
int(x[,base])
long(X[,base])
str(X)
what is the output of the following programing ?
X = [ 'ab' , 'cd' ]
for i in X:
i.upper()
print (x)
[ 'AB' , 'CD' ]
[ 'ab' , 'cd' ]
[ AB , CD ]
ERROR
A(n) integer is:
A programming statement that directs control flow - it uses BOOLEAN expressions to make a choice between different paths (IF (condition) THEN (path1) ELSE (path2)
A precise number by including values after the decimal place
A whole number, it does not have any digits after a decimal.
A data type that can have only 2 values - TRUE or FALSE
What does Modulo do
Gives the difference of two numbers
Does simple arithmetic
Give the product when mutiplying
Returns the reminder when divding
Print("Hello world!")
print("Hello world!")
people = ["John", "Rob", "Bob"]
print (people[4])
what would this result be?
people = ["John", "Rob", "Bob"]
print (people[1])
what would this result be?
Input is defined as Information or signals entered into a computer system. Which of the items below are the input into a computer?
Keyboard
Printer
Monitor
All of the above
A set of program instructions is known as?
Input
Output
Syntax
Code
A function of an application or user interface is known as?
Abstraction
Feature
Debugging
Itiration
A means to create computer programs by manipulating elements graphically rather than using text is known as?
Python
Block Based Programming
Code
Abstraction
designer view
You create the user interface
identify errors in programs and fix them
a set of step to accomplish a task
smallest unit of data storage that a program can use
variable
You create the user interface
identify errors in programs and fix them
a set of step to accomplish a task
smallest unit of data storage that a program can use
The science of creating artifacts and solving problems using the power of a computer.
user-centered
code
input
computer science
Information or signals entered into a computer system (ex: buttons or touch screens).
user-centered
computer science
input
code
A sequence of actions or instructions to follow in solving a problem or accomplishing a task is known as?
Event
Block Based Programming
Procedure
Code
A(n) arithmetic operator is:
Values that a program provides to a function or subroutine
Type of code to perform a math operation, such as + - * /
A set of steps to accomplish a task.
Way to manage complexity, hide details or remove duplication
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.
component
computer science
conditional statement
counting loop
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.
pair programming
output
parameter
operating system
Which below is an example of Computer Science in our lives?
Programable Thermostats
Ring Door bell with Camera
A person with an insulin monitor
All of the above
print(9/3)
