Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

T2 Written Work 1: Debugging Challenge

Total questions: 14

Worksheet time: 10mins

Name
Class
Date
1.

Find 5 mistakes in the code that prevent the correct output. Fill in the blanks with the correct fixes.

  1. 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.

Choose from the below words
Boolean
Text
"Juan"
Number
95
True
Character
Num
2.

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)  

Choose from the below words
Text
Number
Boolean
name
score
"true" 
3.

 But the label shows nothing.
What skill was not sharpened?

a)

Variable was not initialized

b)

Text color is wrong

c)

The label is hidden

d)

Nothing is wrong

4.

But the output is 1696450013000 instead of a date.
What’s missing?

a)

 Use datepicker block

b)

Wrong clock component

c)

Needs text join block

d)

Nothing is wrong

5.

Which type of value is “16”?

a)

number

b)

boolean

c)

text

d)

age

6.

What type of value is stored?

a)

number

b)

text

c)

boolean

d)

num

7.

What do you think is the output?

a)

5

b)

7

c)

52

d)

25

8.

If you want to store a password, which type should it be?

a)

number

b)

text

c)

boolean

d)

"text"

9.

 If you want to store a student’s grade (87.5), which type should it be?

a)

Text

b)

Number

c)

Boolean

10.

What type of data is the value of answer?

a)

Number

b)

Text

c)

Boolean

d)

true

11.

What do you think is the output?

a)

Juan

b)

juan

c)

Name

d)

Text

12.

What is the final value of isLoggedin?

a)

"true"

b)

"false"

c)

true

d)

false

13.

Which block is used to create a variable in MIT App Inventor?

a)

b)

c)

d)

14.

If we want to store a quiz score, the data type should be (a)   .