Font size
WorksheetsAppLab
Total questions: 10
Worksheet time: 6mins
What do we use to identify and modify screen elements or widgets?
onEvent
dropdowns
properties
buttons
What will happen when this code is run?
'that's great' will appear in the console log
'that's great' will appear on the screen
'try again' will appear in the console log
'try again' will appear on the screen
Which programming language does AppLab use?
Java
Python
JavaScript
C++
Two rules for naming elements or components of your app:
Start with a capital letter
Use a widget identifier such as btn or scr to help you know which element does what
Always leave a space between words
Use camel case for multiple words
Logic errors are ......
(2 answers)
When the computer returns an error message of some kind that is a clue about what it can't understand
When the program runs but doesn't do what you think it should
Situations where no error message is displayed, the output is either not what you expect or nothing happens
things misspelled or written in such a way the computer doesn't understand what you're trying to say
A variable ............
3 answers
starts with a lower case letter
can change during the running of the program
is a container for storing a value
is fixed for the duration of the program
A syntax error
2 answers
is an error in the coding language which prevents the program from running
could be caused by misspelling the name of a variable or element
could be caused by using the wrong operator to calculate an answer
could be caused by entering incorrect data into a variable
What would be the outcome of this program?
A square
A straight line
A triangle
A circle
What would this program produce?
A square
A triangle
A hexagon
A circle
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?
score = 1
score = +1
score = score + 1
score + 1
