wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

[FAST TRACK] Android quiz 11

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.
Which of this method is used to find out that a thread is still running or not?
a)
run()
b)
isAlive()
c)
Alive()
d)
checkRun()
2.

What are different between Object Pool and Flyweight?

(multi answer)

a)
Flyweights are commonly immutable instances, while Object Pool usually are mutable.
b)
Flyweight always re-uses object with the same state but Object Pool maybe re-uses object with different state.
c)
Flyweight is a container for a set of domain objects while Object Pool usually is a domain object.
d)
Flyweight saves memory by not creating new objects and reusing existing ones when possible. Object Pool just re-uses provided objects without creating new ones.
3.
An actor in a use case is always a person?
a)
True
b)
False
4.
Which diagram describes the different types of objects and the static relationships between them?
a)
Class diagram
b)
Interactive diagram
c)
State diagram
d)
Activity diagram
5.
What are the three algorithm constructs?
a)
Sequence, selection, repetition
b)
Input, output, process
c)
Input/output, decision, terminator
d)
Loop, input/output, process
6.
In which state the activity is, if it is not in focus, but still visible on the screen?
a)
Stopped state
b)
Destroyed state
c)
Paused state
d)
Running state
7.
Which permission level need user approve to use?
a)
Normal
b)
Dangerous
c)
Signature
d)
SignatureOrSystem
8.
In Android, the first callback is called when activity is visible is
a)
onCreate
b)
onResume
c)
onStart
d)
onStop
9.
Which of these class is used to create an object whose character sequence is mutable?
a)
String()
b)
StringBuffer()
c)
String() & StringBuffer()
d)
None of the mentioned
10.
Which of these class is related to all the exceptions that can be caught by using catch?
a)
Error
b)
Exception
c)
RuntimeExecption
d)
All of the mentioned
11.
What is the time limit of broadcast receiver in android?
a)
10 sec
b)
15 sec
c)
5 sec
d)
1 hour
12.
What is D stands for in SOLID principles?
a)
Dependency Invertion
b)
Database Inversion
c)
Dependency Invertion
d)
Database Inversion
13.
..................... is used to group classes together for ease of use, maintenance, and reuse.
a)
Status
b)
Use Cases
c)
Model Context
d)
Packages
14.
Sometimes, object creation is heavyweight and requires a lot of resources; creating a new instance will impact the performance. Which design pattern should be used?
a)
Object Pool
b)
Prototype
c)
Template
d)
Flyweight
15.
Any Android application can protect itself by declaring permissions that can be accessed by other applications. This can be achieved using the <permission> tag in the activity_main.xml file of the Android applications providing the permission.
a)
True
b)
False