wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Android Final Exam Review

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which Android Lifecycle method is recommended to set state in?

a)

onStop()

b)

onStart()

c)

onResume()

d)

onPause()

2.

Which action does not require a permission set in the AndroidManifest.xml file?

a)

SMS

b)

Alarm

c)

Email

d)

Phone

3.

Which of these statements is NOT true about Shared Preferences?

a)

Works using Key - Value pairs

b)

The data will not persist across user sessions

c)

Works on primitive data types

d)

Preferences must be modified using an Editor object

4.

This method is where you do all of your set up: creating views, etc.

a)

onPause()

b)

onStart()

c)

onCreate()

d)

onResume()

5.

The layer of the Android System Architecture is responsible for management of memory, power, devices, etc.

a)

Linux Kernel

b)

Native Libraries

c)

Android Runtime

d)

Application Framework

6.

You should always input your strings in your strings table because (pick most correct answer)

a)

It's easier and I'm lazy

b)

To reduce spelling errors throughout app

c)

Easier to translate your app to another language

d)

Easier initialization of string variables

7.

A _______ is the user interface screen of your application. An application can have zero or more of these.

a)

Intent

b)

Bundle

c)

Activity

d)

Fragment

8.

What folder do you create to place your database in?

a)

drawable

b)

res

c)

assets

d)

values

9.

Where can your shared preferences be located in your Device File Explorer?

a)

data\data\packagename\shared_prefs

b)

data\data\shared_prefs

c)

data\username\data\shared_prefs

d)

data\shared_prefs

10.

This type of intent does not specify what app component should perform the action

a)

PendingIntent

b)

ImplicitIntent

c)

ExplicitIntent

d)

ActionIntent

11.

These classes allow you to write to a file

a)

FileOutputStream and OutputStreamWriter

b)

FileOutput and OutputStream

c)

FileInputStream and InputStreamReader

d)

InputStream and OutputStream

12.

This layer in the Android System Architecture is responsible for the Webkit library

a)

Native Libraries

b)

Android Runtime

c)

Linux Kernel

d)

Application Framework

13.

This object defines each individual element in a RecyclerView, but does not have data associated with it

a)

View

b)

ViewHolder

c)

ViewItem

d)

ItemView

14.

The RecyclerView binds the data in this adapter method

a)

onCreateViewHolder()

b)

onBindViewHolder()

c)

getItemCount()

d)

onCreateRecyclerView()

15.

the loadAd() method belongs to the ______ class

a)

AdRequest

b)

BannerAd

c)

AdView

d)

BannerRequest