wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

[FAST TRACK] Android quiz 15

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.
Which of the following is NOT a valid usage for Intents?
a)
Activate and Activity
b)
Activate a Service
c)
Activate a Broadcast receiver
d)
Activate a SQLite DB Connection
2.

Which of the following choices is considered Android application storage?

(Multi answer)

a)
Android’s file system
b)
Cache
c)
SQLite database
d)
Microsoft Access
3.
Which one is not type of design pattern?
a)
Creational pattern
b)
Behavioral patterns
c)
Concurrency pattern
d)
None of above
4.
What are the types of participants of the prototype design pattern you will get?
a)
Prototype registry
b)
Clients
c)
Server
d)
End users
5.
The Logcat window in Android Studio displays system messages, such as when a garbage collection occurs, and messages that you added to your app with the Log class. It displays messages in real time and keeps a history so that you can view older messages.
a)
True
b)
False
6.
What is NOT used in monitoring an activity.
a)
Visible lifetime
b)
Background lifetime
c)
Entire lifetime
d)
Foreground lifetime
7.
You can create an emulator to simulate the configuration of a particular type of Android device using a tool like
a)
Theme Editor
b)
Android SDK Manager
c)
AVD Manager
d)
Virtual Editor
8.
Assume that you have two apps signed with the same certificate and you want them to share access to each other’s data. It has shartedUserId =”com.sharedID.example” .<br />Which of the following choices is the value of the shartedUserId in the second app?
a)
com.sharedID.example
b)
com.example.example1
c)
app2Name.com.sharedID.example
d)
app2.com.sharedID.example
9.
Broadcast receivers are Android's implementation of a system-wide publish/subscribe mechanism, or more precisely, what design pattern?
a)
Observer
b)
Façade
c)
Mediator
d)
Command
10.
Complete the following blank area with one of the following choices: You can register your app with “Android Backup Service” at: https://developer.android.com/google/backup/signup.html and get “Android Backup Service key” for your application. This key will be added to …………………. tag with its attributes to add them to the manifest file in the next step
a)
<permission>
b)
<meta-data>
c)
<string>
d)
<key>
11.
What is the purpose of adding the following permission tag to your app’s AndroidManifest.xml file?<br /><uses-permission android:name="android.permission.INTERNET" />
a)
Permission to connect the app to internet.
b)
Permission to enable cookies’ files on your app.
c)
Permission to configure Chrome as default web browser.
d)
Permission to open hidden internet connection.
12.
When compiling, I get an Exception in thread main java.lang.NoClassDefFoundError:myprogram. What does this error mean?
a)
The program path is wrong.
b)
There is no main function
c)
No class declaration
d)
There is no public keyword at the beginning of the class declaration
13.

Which of the following choices is considered Android application storage?

(Multi answer)

a)
SharedPreferences
b)
Android’s file system
c)
External Storage
d)
Text file
14.
How many testcase we need to write to get 100% C0, C1 of this code?
a)
3
b)
4
c)
5
d)
6
15.
From android Oreo and later, which type of service can independence run in background (Do not need to attach with notification)?
a)
Bound service
b)
Background service
c)
Foreground service
d)
System service