WorksheetsMid-term App Inventor Quiz
Total questions: 40
Worksheet time: 3600secs
You notice that there's a lot 'initialize global' to be defined at the start of a coding project. This is what we call a 'Global variable'. What could global variable means?
Greatly used for logging, driver objects, caching and thread pool, database connections
A type of variable that it is visible (hence accessible) throughout the program, unless shadowed
A type of variable that can be used where the scope and extent of the variable is within the method or statement block in which it is declared
A type of variable that can be used where the scope and extent of the variable is within the method or statement block in which it is declared
Picture below shows the example of a Local Variable ('initialise local'). What could Local Variable possibly means?
Greatly used for logging, driver objects, caching and thread pool, database connections
A type of variable that it is visible (hence accessible) throughout the program, unless shadowed
A type of variable that can be used where the scope and extent of the variable is within the method or statement block in which it is declared
A type of variable where a class of which a single copy exists, regardless of how many instances of the class exist
You notice that most of the project you have done in this term, has use a lot of 'Procedure' blocks. Why do you think we have to use 'Procedure' block a lot?
To make the coding proper
To make it easier for me to code as I can just call the procedure block whenever I want my sequence of blocks to run
To make it easier for me to code as I can see how many procedure need to be done
What are the component below that able to make a sprite moves in continuous movement?
Ball
ImageSprite
Clock
Button
What does Clock do?
It is a non-visible component
Show us the date and time
Set intervals and perform time calculations, manipulations, and conversions
In animating Tatiana, you experienced on how there were a lot of Tatiana costumes used. What kind of block does enable the switch of Tatiana costumes?
Procedure block (purple)
Global Variable block (initialise global)
Set block (orange)
Control block (E.g: when ___.Click) (yellow)
In Animating Tatiana, you realised that your Tatiana keep moving around even though you didn't press any button yet. What possibly caused this event?
In Space Invasion, why do we set the alienStepSize to 5?
To holds the number of alien step when it moves
To make 5 aliens
To have 5 random positions of the alien in the screen canvas
You already know how normal procedure blocks are generated as you can just drag it from the 'Procedure' block. What is the 'scoreValue' in the picture below stands for in the Procedure block? (hints given)
Variable
Input
Function
Output
In Soccer Ball, what will happen if setting Ball.speed to 0?
Nothing happens. All is well.
Nothing happens. All is well.
The ball will not moving at all.
The ball disappears from the display screen.
In Pong, block below explains that the paddle will move left and right due to the X position being changed. But, what will happen to the paddle in Y position?
It will follow X position
It will move up and down
It will move diagonally
It will not move up and down
Please choose the first event that will happen in this block:
If the edge that the reached is the bottom edge (game is over), play the game over sound, display the game over backdrop and stop the ball.
Ball1.EdgeReached is called every time the ball reaches an edge.
Otherwise (any other edge, continue the game), bounce the ball off the edge
Please choose the second event that will happen in this block:
If the edge that the reached is the bottom edge (game is over), play the game over sound, display the game over backdrop and stop the ball.
Ball1.EdgeReached is called every time the ball reaches an edge.
Otherwise (any other edge, continue the game), bounce the ball off the edge
Please choose the third event that will happen in this block:
If the edge that the reached is the bottom edge (game is over), play the game over sound,
display the game over backdrop and stop the ball.
Ball1.EdgeReached is called every time the ball reaches an edge.
Otherwise (any other edge, continue the game), bounce the ball off the edge
Labels, sensors and button are all examples of what?
Properties
Built-in controls
Components
Blocks
What are the thing that we use to identify aspects of each screen or component?
Extensions
Blocks
Behaviors
Properties
Components can be either visible or non-visible. Is this true?
True
False
This part shows a list of pictures/sound we use in the project. What is it?
Media
Viewer
Properties
Palette
A Label component is an example of visible component. Is this statement True or Not?
True
False
Clock is an example of a visible component. Is this statement true?
True
False
Sound is a non-visible component. Is this statement true?
True
False
ImageSprite component can be put without a Canvas. Is this statement true?
True
False
What kind of data is this?
Word data
Number data
String data
Boolean data
Which menu of app inventor allows you to test your app?
Connect
Build
Help
Project
A variable that can be used anywhere in a program
String data
Local variable
Global variable
Component
The section shows below is divided into sections and contain components. What it is?
Media
Palette
Properties
Blocks
What are the three key parts of the App Inventor programming environment?
Android device
Component Designer
Blocks Editor
Viewer
What is the the formatting element in which to place components that should be displayed component from left to right?
Horizontal arrangement
Vertical arangement
Sideways arrangement
Table arrangement
What is this process?
Procedure
Local variable
String
Conditionals
What is the data type of this block?
Number data
Boolean data
String data
Words data
What is the data type of this block?
Number data
Boolean data
String data
Words data
What is a variable?
Code which loops
A string data type
Conditional code
Storage location associated with a value
What is a component that display text?
Conditional
Button
Textbox
Label
What is the component that can detect clicks?
Slider
Button
Label
Sound
Which is the correct statement below?
The ball points to the right and does not move
The ball moves in North-West direction
The ball don't do anything
The ball moves towards the right
What does the code below do?
Nothing happens when the sprites is dragged
When the sprite is dragged, it follows the finger movement
When the sprite is touched down, change its costume to the first costume
It moves up and down
What do we do to make an ImageSprite move from the top of the screen to the bottom of the screen?
Change its position by decreasing its X value
Change its position by decreasing its Y value
Change its position by increasing its Y value
What does the code below do?
When ImageSprite1 touches ImageSprite2, "Oops" -is displayed and ImageSprite2 is hidden
When ImageSprite1 touches ImageSprite2, "Oops" -is displayed
When ImageSprite1 touches any other ImageSprite, "Oops" -is displayed and ImageSprite2 is hidden
When ImageSprite1 touches ImageSprite2, "Oops" disappeared
When this application is loaded, it displays the text "Hello". When will it change to "Bye"?
It will not change to "Bye"
It will change to "Bye" after 500 milliseconds have passed
It will change to "Bye" after 1000 milliseconds have passed
It will display "Bye for 500 milliseconds
What type of programming language use in App Inventor?
Python
Java
C++
Block
