WorksheetsAPP lab essential skills review
Total questions: 99
Worksheet time: 50mins
var Score = 0;
function updateScoreAlways() {
****WHAT CHOICE BELOW WOULD GO HERE?****
}
You are creating a function so that the upper left button ("Always") of an app is consistently worth 4 points, so that you can call that function on every screen (in the event that Always button is clicked).
Which choice below is the correct line to insert into the function?
var Score = 4;
Score = Score + 4;
var score = 4;
score = score + 4;
This control is frequently used to let the user start an action.
Which of these could be used to display a different page?
Look carefully at the image.
What is the id name of the screen?
startScreen
Above
Below
Run
The image shows the properties of an object.
Which of the following are true?
You can choose more than one thing.
The object is called stopScreen
Background colour is one of the properties
I can choose an image to set as a property
Sound can be set as one of the properties of this object
Look carefully at the image.
What type of event is this the code for?
Long click
Click
Shake
Input
Look carefully at the image.
What object is this the event for?
LeftButton
RightButton
TopButton
BottomButton
Look carefully at the image.
What will happen when this event is carried out?
Nothing will happen
The left screen will display and then a sound will play
A sound will play and then the right screen will display
The screen will flash on and then flash off
Look carefully at the image.
This is an example of a user Interface.
True
False
The User Interface or UI of an app refers to..
One button on the screen
The layout of the screen that a person interacts with
The On/Off button
An event
To place objects onto the screen in order to create a user interface you would need to use...
Code mode
Design mode
Event mode
Property mode
How would you find out the id of an object on the screen?
Hover over it and read the label
Click on the object
Double-click on the object
Delete the object
Buttons, labels, images and the screen are all examples of objects.
True
false
Each object that I add to the User Interface must have a unique object id. That means, all objects must have a different object id.
True
False
What does the set property block do?
Enables you to set properties for objects
Repeats a set of instructions
Ends the program
Starts a new program
The button labelled 'Above' has which of the following properties.
CHOOSE 4!
Height
Font size
Text colour
Background colour
Sound
Which of the following are events? (Select all that apply)
Touching a button on an iPad screen
Pressing and holding a button on a screen
Shaking your phone to cause something to happen?
Typing on the keyboard of a mobile phone
Look carefully at the image.
What is at point A?
The object whose property is to be set
The event to be responded to
The property to be set
None of the above
Look carefully at the image.
What is at point B?
The object whose property is to be set
The event to be responded to
The property to be set
The value to be used for the property being set
Look carefully at the image.
What is at point C?
The object whose property is to be set
The event to be responded to
The property to be set
The value to be used for the property being set
A program designed to run blocks of code or functions in response to specified events is called...
An Event-driven program
A value
A property
An object
In order to test your code, you have to click _____ in the emulator.
run
reset
go
Don't forget to click _____ if you change your code!
run
reset
go
App Lab uses this coding language:
Python
HTML
JavaScript
Apps that respond to the user (events) are...
interactive
non-interactive
static
a file of readily available resources, like sounds or images
folder
library
resource bank
repository
‘App Lab’ uses the following programming language ‘ to create apps/programs
JAVA SCRIPT
VISUAL BASIC
C++
JAVA
This area contains various blocks needed for coding your app
tool box
block area
code area
instructions area
'onEvent' block has two parts which are 'onEvent and------
Screen
Code
Function
Does the screenshot show code view or design view?
design
code
What is the full form of GUI?
Graphic User Interface
Graphical User Interface
Graphical Unit Interface
Graphical User Interaction
Which code block do we use to declare a variable. (Create for the first time)
A well-defined procedure that allows a computer to solve a problem
algorithm
program
code
debugging
A sequence of instructions is called an __________
algorithm
program
code
debugging
backgrounds, buttons, labels etc are called?
Assets
backgrounds, buttons and labels
Elements
sausage
Hovering over a menu, clicking a button or scrolling down are called
(2 correct answers)
action
events
user input
user actions
To change the background colour of your App screen which block would you use?
OnEvent
SetProperty
PlaySound
If our goal is to make the screen green.
Which code combination is correct?
What outcome will the above code provide?
When the button is clicked it will change screen 1 to blue.
On the event of big button being clicked screen 1 will change to blue.
On the event of big button being clicked screen 1 will change from blue to green.
When the button is clicked it will change screen 1 to red.
There is an bug in the above code. Find the error, debug it and write the answer in the box below.
(Type in what it should say for the incorrect word).
(a)
A visual programming language is usually block code
True
False
A variable is used to store information
True
False
When creating a variable we used the keyword__________
BAR
CAR
VAR
Variable
To create the app when not coding, I use what mode?
Code
Design
Data
What mode do I use to program the app?
Data
Design
Code
The language of the web.
JavaScript
Visual Basic
C++
Select the correct code.
A
B
C
Select the correct code.
A
B
C
Which line of code produces the message?
1
2
3
Which line of code sets the font color?
1
2
3
Which line of code sets the text size?
1
2
3
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Which object is the code being applied to?
A
B
C
Do the properties match the app screenshot?
Yes
No
Do the properties match the app screenshot?
Yes
No
How many screens does the app included.
10
11
12
What happens when the user clicks the left button?
The left screen loads and a sound plays.
The left screen loads.
The right screen loads and a sound plays.
What happens when the user clicks the right button?
The left screen loads and a sound plays.
The right screen loads.
The right screen loads and a sound plays.
Which method can we NOT use to insert an image in App Lab ?
Link to image
Upload image
Copy image
Which block do we use for this or that in-app lab?
Create record ( Data )
On event ( UI controls )
If or Else ( Controls )
== ( Math )
The most important thing we needed to do before coding in App Lab?
Data
Coding
Design
Can we do textbase coding in App Lab?
Yes
No
Which code block can change images, colors, text, and other settings?
Which of these could display a different page?
Which code block can be used to declare a variable? (Typically at the start of your code)
One or more commands to be carried out by a computer
algorithm
program
code
debugging
Finding and fixing errors in programming
JavaScript
programming
code
debugging
App Lab is a 'web-based' (online) tool used to create simple apps
TRUE
FALSE
This area Contains various blocks (such as image, button, ABC label) needed for coding your app.
Workspace
Play Area
Toolbox
Instructions Area
What is the purpose of functions in APPlab?
Repeat the code
Reuse the code
Use in a conditional statement
None
What block would you use for calling of function?
what is declaring the function?
declaring the parameter name for functions
declaring the variable for functions
A function declaration tells the compiler about a function's name, return type, and parameters. A function definition provides the actual body of the function.
None
What is used to write comments?
++
=
//
--
What is the following code doing:
totalMarks = 8;
Declaring a variable
Assigning a value to a variable
Performing a calculation
Finding the running total
grading a test
What is at the end of a line of code?
#
;
)
>
.
A variable is used to:
Store a value in memory
Draw a circle
Store a value that does not change
Draw a rectangle
Run code
JavaScript uses the _______ keyword to define variables.
vrb
var
vari
vab
variable
Variables are not case sensitive
True
False
What is the value stored in the variable mouthSize?
var eyeSize = 33;
var mouthSize = 12;
33
12
32
13
0
In the code below, which part is the identifer (the name of the variable)?
var eyeSize = 12
var
eyeSize
=
12
0
In the code below which part is the assignment operator?
var eyeSize = 12
var
eyeSize
=
12
0
In the code below which part is the value?
var eyeSize = 12
var
eyeSize
=
12
0
var x = 10;
var y = 12;
x = x + 12;
What is the value of x after this code is run?
10
12
22
2
0
var score = 0;
How do you increase score by 1?
score = 1;
score = score + 1;
score = score - 1;
var score = 1;
score + 1 = score;
var score= 100;
Which one prints out the score correctly?
console.log("Score: " + score);
console.log("Score");
console.log(Score);
console.log("Score: " + Score);
var x = 2;
var y = 3;
y = x - y;
What is the value of y?
1
-1
5
"2-3"
0
