wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ISPFL8 Endterm Quiz #3

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

In our game of Flip Card, the game uses 20 unique card faces.

a)

TRUE

b)

FALSE

2.

Clicking a button reveals the card face image.

a)

TRUE

b)

FALSE

3.

The game keeps track of the first clicked card location (loc1) and button number (bt) even after it's hidden.

a)

TRUE

b)

FALSE

4.

Buttons are disabled after they are clicked.

a)

TRUE

b)

FALSE

5.

Matching all cards automatically restarts the game.

a)

TRUE

b)

FALSE

6.

The "Busy" flag is used to prevent accidental clicks while revealing mismatched cards.

a)

TRUE

b)

FALSE

7.

The code uses absolute positioning for buttons and image views.

a)

TRUE

b)

FALSE

8.

The game displays the backside of the cards before they are revealed.

a)

TRUE

b)

FALSE

9.

The application can be minimized and restored without affecting the game state.

a)

TRUE

b)

FALSE

10.

The game ends when all cards are revealed, regardless of whether they match.

a)

TRUE

b)

FALSE

11.
The _____ subroutine is called whenever the activity is created.
a)
Sub Process_Globals
b)
Sub Activity_Create
c)
Sub Button1_Click
d)
Sub restart
12.
The loc array is an integer array of size _____ likely to store references to card face image names.
a)
10
b)
20
c)
Unpredictable, depends on user clicks.
d)
The code doesn't specify the size.
13.
The calcx subroutine checks a _____ flag to prevent further clicks while revealing cards.
a)
match
b)
visible
c)
busy
d)
Timer1
14.
A timer named _____ is used to hide cards that don't match after they are revealed.
a)
Timer1
b)
Timer2
c)
There are no timers used for hiding cards.
d)
Sub restart
15.
When a card is clicked, the calcx subroutine hides the button using the _____ property based on the button number.
a)
enabled
b)
visible
c)
image
d)
location
16.
The game ends when a variable named _____ reaches a value of 10.
a)
clicks
b)
match
c)
busy
d)
The game never ends.
17.
Images for the card faces are loaded from the application's _____ folder.
a)
External storage
b)
DirAssets
c)
Downloaded online during gameplay.
d)
The code doesn't specify the image source.
18.
Comments in the code suggest the developer might have intended for the mix subroutine to be called _____ during initialization.
a)
Multiple times (current implementation)
b)
Once 2
c)
Not called at all.
d)
The comments don't mention the mix subroutine.
19.
Buttons clicked by the user have a subroutine named _____ attached to them, which handles the click event.
a)
Sub Click
b)
ButtonX_Click (where X is the button number)
c)
All buttons share a single click handler.
d)
Clicking buttons doesn't trigger any subroutines.
20.
The _____ subroutine restarts the game, resetting the board and hiding all cards.
a)
Sub Button_Click
b)
Sub Timer1_Tick
c)
Sub Activity_Resume
d)
Sub restart