U4L2_3
Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Jess Violette
Used 3+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Use the image to predict what will appear in the Debug Console after the downButton is clicked twice.
73 F
23 C
71 F
22 C
73
23
71
22
23
73
22
71
nothing or not enough information
Answer explanation
the first time the downButton is clicked the tempF variable becomes 73, the tempC value is calculated to 23, the tempC value appears in the Debug Console (23), and then the tempF value populates the Debug Console
repeat with 2nd click of down button
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will appear in the Debug Console when you run this program?
23
73
75
24
73
23
nothing or not enough information
Answer explanation
the Debug Console is only updated in the onEvent if/when the down button is clicked. Until the button is clicked, nothing will appear in the Debug Console.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict what will appear in the Debug Console when the upButton is clicked.
71
76
77
nothing or not enough information
Answer explanation
There is no onEvent for the upButton in this snippet, therefore there is not enough information to determine what, if anything, will appear in the Debug Console.
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
A _________ is a debugging tool that allows you to see your variables update while the program runs, making it easier to see what they are doing.
Answer explanation
WATCHER
You can add watchers for any variable or object property by typing the name of a variable in the box and clicking the blue "add" button. If your program isn't running or the variable hasn't yet been assigned a value, the watcher will report a value of undefined. This isn't an error, it just means that the variable hasn't yet been assigned a value.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does this command do in a code?
captures data entered by the user, by reading data from a textInput() screen element
retrieves a string from within the code
connects to a helpful messaging app that keeps you connected with the people who matter most
I don't know
Answer explanation
getText() captures data entered into the App by the user, by reading data from a screen element such as a textInput(), button(), or textLabel().
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is an example of concatenation?
a very persuasive and persistent feline
setProperty("dollarsLabel",
"text",
"$")
onEvent("addOneButton",
"click",
function()
userName = "Hi, "
+
getText("nameInput")
+
" !"
Answer explanation
In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball".
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is an example of a "counter pattern"?
onEvent("upButton",
"click",
function(){
temp = 70
onEvent("upButton",
"click",
function(){
temp = temp + 2
onEvent("upButton",
"click",
function(){
counter
onEvent("upButton",
"click",
function(){
pattern 123123...
Answer explanation
in this example every time the upButton is clicked, the value stored in the temp variable (plastic baggie) is replaced with a number that is two more than the previous number. therefore each time the button is clicked, the variable is updating as though it is COUNTING by 2
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
INTERNET CONNECTION
Quiz
•
12th Grade
14 questions
[Lớp 12] Access - Ôn tập
Quiz
•
12th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
15 questions
Problem Solving : Design Solution
Quiz
•
12th Grade
15 questions
Virtual Private Server
Quiz
•
12th Grade
10 questions
Recap: Introduction to Python
Quiz
•
10th Grade
15 questions
Learning Checkpoint 3: Primary & Secondary Storage
Quiz
•
9th - 10th Grade
14 questions
4th quarter 2nd summative
Quiz
•
10th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
