wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AppLab

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

What do we use to identify and modify screen elements or widgets?

a)

onEvent

b)

dropdowns

c)

properties

d)

buttons

2.

What will happen when this code is run?

a)

'that's great' will appear in the console log

b)

'that's great' will appear on the screen

c)

'try again' will appear in the console log

d)

'try again' will appear on the screen

3.

Which programming language does AppLab use?

a)

Java

b)

Python

c)

JavaScript

d)

C++

4.

Two rules for naming elements or components of your app:

a)

Start with a capital letter

b)

Use a widget identifier such as btn or scr to help you know which element does what

c)

Always leave a space between words

d)

Use camel case for multiple words

5.

Logic errors are ......

(2 answers)

a)

When the computer returns an error message of some kind that is a clue about what it can't understand

b)

When the program runs but doesn't do what you think it should

c)

Situations where no error message is displayed, the output is either not what you expect or nothing happens

d)

things misspelled or written in such a way the computer doesn't understand what you're trying to say

6.

A variable ............

3 answers

a)

starts with a lower case letter

b)

can change during the running of the program

c)

is a container for storing a value

d)

is fixed for the duration of the program

7.

A syntax error

2 answers

a)

is an error in the coding language which prevents the program from running

b)

could be caused by misspelling the name of a variable or element

c)

could be caused by using the wrong operator to calculate an answer

d)

could be caused by entering incorrect data into a variable

8.

What would be the outcome of this program?

a)

A square

b)

A straight line

c)

A triangle

d)

A circle

9.

What would this program produce?

a)

A square

b)

A triangle

c)

A hexagon

d)

A circle

10.

This code was set up to add 1 point to score every time a widget called 'hitGold' was clicked. What is missing from line 4?

a)

score = 1

b)

score = +1

c)

score = score + 1

d)

score + 1