wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

FINAL EXAMINATION | CTCC0603

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

What does an Activity represent in an Android application?

a)

A background process

b)

A single screen or window for user interaction

c)

The entire application

d)

A floating database

2.

The first screen a user sees when opening an Android app is typically called:

a)

Launcher Activity

b)

Start Activity

c)

Main Activity

d)

Root Activity

3.

Which file usually defines the Activity’s layout in Android?

a)

Java File

b)

XML File

c)

Manifest File

d)

.apk File

4.

An Activity Java class usually extends which parent class?

a)

ActivityCreator

b)

AppCompatActivity

c)

MainIntent

d)

XMLInflater

5.

Which method is responsible for setting the layout view of an Activity?

a)

onRun()

b)

setLayout()

c)

onCreate()

d)

createUI()

6.

To make an Activity part of the application, it must be declared in:

a)

build.gradle

b)

Java class

c)

Android Manifest

d)

App Settings

7.

What is an Intent in Android?

a)

A UI element

b)

A type of database

c)

A message requesting an action from another component

d)

A background service

8.

Which type of intent specifies the exact activity to start?

a)

Explicit

b)

Implicit

c)

Direct

d)

Internal

9.

Which type of Intent asks the system to choose an application that can handle the action?

a)

Direct Intent

b)

Internal Intent

c)

Explicit Intent

d)

Implicit Intent

10.

What method is used to start a new Activity using an Intent?

a)

runActivity()

b)

startIntent()

c)

startActivity()

d)

openActivity()

11.

Extras sent with Intent are stored as:

a)

Key-value pairs inside a Bundle

b)

Only integers

c)

File attachments

d)

URI data only

12.

Which method retrieves a single integer extra from an Intent?

a)

getIntentData()

b)

getIntExtra()

c)

getIntValue()

d)

getExtraBundle()

13.

Which function allows an Activity to return data back to the caller?

a)

startReturning()

b)

startActivity()

c)

startActivityForResult()

d)

ActivityReturn()

14.

Which callback receives the result sent back from another Activity?

a)

onStart()

b)

onActivityResult()

c)

onResponse()

d)

onReturnResult()

15.

When the Back button is pressed, what Android mechanism determines which Activity resumes?

a)

Result Code

b)

Activity Queue

c)

Activity Stack (Back Stack)

d)

Manifest Listing

16.

What is the basic building block for all Android UI components?

a)

Activity

b)

Fragment

c)

View

d)

Layout

17.

Which UI element allows free-form text input from the user?

a)

Spinner

b)

EditText

c)

RadioButton

d)

CheckBox

18.

The view that currently receives user input is said to have:

a)

Touch control

b)

Focus

c)

Gesture

d)

Interaction

19.

Which of the following allows selecting only one choice at a time?

a)

CheckBoxes

b)

ToggleButtons

c)

RadioButtons in a RadioGroup

d)

Spinners

20.

Which UI element is typically used for a primary action, such as adding a new item?

a)

ToggleButton

b)

FloatingActionButton (FAB)

c)

RadioButton

d)

SeekBar

21.

Which input type is used for passwords in EditText?

a)

textAutoCorrect

b)

textShortMessage

c)

textPassword

d)

textEmailAddress

22.

A button click can be handled in code using:

a)

requestFocus()

b)

addOnClick()

c)

setOnClickListener()

d)

onTouchEvent()

23.

Which input control displays options in a dropdown list?

a)

Spinner

b)

CheckBox

c)

ToggleButton

d)

EditText

24.

A dialog that interrupts the flow and requires user interaction to continue is called:

a)

Action Bar

b)

Snackbar

c)

AlertDialog

d)

PopUpButton

25.

Which class is used to help detect common touch gestures?

a)

MotionEventHelper

b)

GestureManager

c)

GestureDetectorCompat

d)

TouchInterpreter

26.

What Android component acts like a mini-activity inside an activity?

a)

ViewHolder

b)

Fragment

c)

Menu

d)

Dialog

27.

Which allows selecting multiple independent choices?

a)

RadioButtons

b)

Spinner

c)

Toggle

d)

CheckBoxes

28.

Which property can be used in XML to assign the next view to receive focus?

a)

android:focusOn

b)

android:focusable

c)

android:nextFocusDown

d)

android:autoFocus

29.

Which input control typically has two states: ON and OFF?

a)

CheckBox

b)

ToggleButton

c)

EditText

d)

Spinner

30.

Which of the following gestures is recognized by Android touch system?

a)

Hover-click

b)

Long touch

c)

Eye tracking

d)

Voice swipe

31.

Which Android storage option is best for storing private primitive data in key-value pairs?

a)

SharedPreferences

b)

Internal storage files

c)

SQLite database

d)

External storage

32.

Which storage option stores data privately inside the internal filesystem of the app?

a)

Internal Storage

b)

External Storage

c)

Firebase

d)

Content Providers

33.

Which storage location is represented as removable media like an SD card?

a)

Internal Storage

b)

Local Cache Storage

c)

External Storage

d)

System Partition

34.

Which method of storage provides structured private database support to apps?

a)

Shared Preferences

b)

Indexed Storage

c)

SQLite Database

d)

Local Filesystem

35.

Which Android component allows storing data privately and sharing it publicly if needed?

a)

Firebase Database

b)

Content Providers

c)

Shared Preferences

d)

SQLite Database

36.

External storage is best used when storing files that:

a)

Must remain private to the app

b)

Should only be used by system processes

c)

Should be shared with other apps or users

d)

Need no permissions

37.

What permission was previously required to read files outside app-specific external storage directories?

a)

MANAGE_ALL_STORAGE

b)

READ_MEDIA

c)

READ_EXTERNAL_STORAGE

d)

ACCESS_FINE_STORAGE

38.

Which permission allowed apps to write to external storage files in older Android versions?

a)

WRITE_EXTERNAL_STORAGE

b)

READ_FILE_STORAGE

c)

ACCESS_WRITE_FILES

d)

MANAGE_USER_STORAGE

39.

Scoped Storage was introduced in Android version:

a)

Android 8 (API 26)

b)

Android 9 (API 28)

c)

Android 10 (API 29)

d)

Android 11 (API 30)

40.

What is the benefit of scoped storage?

a)

Unlimited access to device storage

b)

Better control over user data and less clutter

c)

Faster database transactions

d)

Removes need for permissions

41.

Which permission newly introduced in Android 11 (API 30) grants access to files outside MediaStore?

a)

FULL_STORAGE_ACCESS

b)

MANAGE_EXTERNAL_STORAGE

c)

STORAGE_WRITE_ALL

d)

ACCESS_ALL_FILES

42.

Which question should a developer ask when selecting a storage method?

a)

What is the user’s location?

b)

How much space is needed?

c)

How many users installed the app?

d)

What is displayed on screen?

43.

Storing user files that can be copied off the device easily should be placed in:

a)

Private App Folder

b)

Public External Directory

c)

Virtual Memory

d)

Local Cache Folder

44.

Network connection storage allows developers to store data:

a)

Only inside app sandbox

b)

On their own server via the internet

c)

Only using SQLite

d)

Only on external SD card

45.

Firebase Realtime Database provides:

a)

SQL-based structured tables

b)

Local-only access

c)

Real-time NoSQL cloud data sync

d)

No internet requirement

46.

What type of database does Android provide to handle local data storage efficiently?

a)

MySQL

b)

SQL Server

c)

SQLite

d)

Firebase

47.

SQLite is best suited for Android apps that:

a)

Always require internet connection

b)

Only store data on remote servers

c)

Need to store data locally on the device

d)

Do not store data at all

48.

CRUD in SQLite stands for:

a)

Copy, Restore, Update, Download

b)

Create, Read, Update, Delete

c)

Connect, Run, Upload, Deliver

d)

Compile, Read, Upload, Debug

49.

How is data arranged inside an SQLite database?

a)

In documents

b)

In folders

c)

In tables similar to a spreadsheet

d)

In photo-like tiles

50.

Which of the following describes SQLite?

a)

Cloud-hosted database

b)

Open-source and built into Android

c)

Requires external server setup

d)

Not suitable for CRUD operations

51.

Which method returns the number of rows in a Cursor?

a)

getCount()

b)

getPosition()

c)

isClosed()

d)

getColumnNames()

52.

Which method is used to get the index of a column by its name?

a)

getColumn()

b)

getColumnIndex()

c)

getColumnName()

d)

getColumnCount()

53.

The return type of the method isClosed() is:

a)

int

b)

String

c)

boolean

d)

void

54.

Which method returns the current position of the Cursor in the table?

a)

getPosition()

b)

getCount()

c)

getColumnCount()

d)

getColumnNames()

55.

Which of the following is NOT an example of CRUD operation?

a)

Insert new data into a table

b)

Display records from the table

c)

Remove records

d)

Change the Android theme

56.

Which SQL operation corresponds to retrieving data?

a)

CREATE

b)

SELECT

c)

DELETE

d)

UPDATE

57.

SQLite is most ideal for apps where:

a)

Data is only stored online

b)

Data storage is unnecessary

c)

Local and lightweight storage is required

d)

Maximum storage across network is required

58.

Sending and saving data in SQLite does not require:

a)

Internet connection

b)

Database table creation

c)

CRUD operations

d)

Data types

59.

Which method retrieves the names of all columns in the table?

a)

getColumnIndex()

b)

getCount()

c)

getColumnNames()

d)

getPosition()

60.

Before choosing database storage type, a developer should consider:

a)

Device wallpaper

b)

Available network bandwidth

c)

Whether data must be retrieved and stored locally

d)

Number of screens in the app