WorksheetsT2 Written Work 1: Debugging Challenge
Total questions: 14
Worksheet time: 10mins
Find 5 mistakes in the code that prevent the correct output. Fill in the blanks with the correct fixes.
1.) global username should be a (a) value, not a number.
2.) 2345 should be changed to (b) . 3.) global grade should be a (c) , not text. 4.)"95" should be written as (d) . 5.)global passed should be a (e) , not text.
Fill in the blanks with the correct data type.
You are making a quiz app:
Store the user’s name → (a)
Store the user’s score → (b)
Store whether the user passed or failed → (c)
But the label shows nothing.
What skill was not sharpened?
Variable was not initialized
Text color is wrong
The label is hidden
Nothing is wrong
But the output is 1696450013000 instead of a date.
What’s missing?
Use datepicker block
Wrong clock component
Needs text join block
Nothing is wrong
Which type of value is “16”?
number
boolean
text
age
What type of value is stored?
number
text
boolean
num
What do you think is the output?
5
7
52
25
If you want to store a password, which type should it be?
number
text
boolean
"text"
If you want to store a student’s grade (87.5), which type should it be?
Text
Number
Boolean
What type of data is the value of answer?
Number
Text
Boolean
true
What do you think is the output?
Juan
juan
Name
Text
What is the final value of isLoggedin?
"true"
"false"
true
false
Which block is used to create a variable in MIT App Inventor?
If we want to store a quiz score, the data type should be (a) .
