WorksheetsAndroid Quiz 3 24.2.2023
Total questions: 15
Worksheet time: 15mins
Name
Class
Date
1.
When the activity is not in focus, but still visible on the screen it is in?
a)
A. running state
B. paused state
C. stopped state
D. destroyed state
b)
A. running state
B. paused state
C. stopped state
D. destroyed state
c)
A. running state
B. paused state
C. stopped state
D. destroyed state
d)
A. running state
B. paused state
C. stopped state
D. destroyed state
2.
Which of the following choices is considered Android application storage?
a)
SharedPreferences
b)
Android’s file system
c)
External Storage
d)
Text file
3.
What does API stand for?
a)
Application Programming Interface
b)
Android Programming Interface
c)
Android Page Interface
d)
Application Page Interface
4.
"What is the difference between Activity context and Application Context?
"
a)
The Activity instance is tied to the lifecycle of an Activity. while the application instance is tied to the lifecycle of the application,
b)
The Activity instance is tied to the lifecycle of the application, while the application instance is tied to the lifecycle of an Activity.
c)
All of the above
d)
none of the above
5.
……………. controls life cycle of activities and manages activity stack level requirements
a)
Windows Manager
b)
Content Provider
c)
Activity Manager
6.
Android tries hard to ……………. low-level components, such as the software stack, with interfaces so that vender-specific code can be managed easily.
a)
confound
b)
abstract
c)
modularize
d)
compound
7.
"Which of the following statements are correct?
a)
HashMap doesn't allow any null key or value
b)
HashMap allows one null key and multiple null values
c)
HashTable doesn't allow any null key or value
d)
HashTable allows one null key and multiple null values
8.
What are different between Object Pool and Flyweight?
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.
9.
What is the design pattern which is implemented by using Factory pattern and configures object dynamically for Prototype pattern?
a)
Singleton
b)
Template Method
c)
Strategy
d)
Abstract Factory
10.
Which is not type of Proxy pattern?
a)
Virtual
b)
Protection
c)
Remote
d)
Public
11.
Which of these is not abstract?
a)
Thread
b)
AbstractList
c)
List
d)
None of the Mentioned
12.
What will be the output of the following Java program?
a)
A
b)
B
c)
Compilation Error
d)
Runtime Error
13.
What type of relationship is represented by Shape class and Square?
a)
Realization
b)
Generalization
c)
Aggregation
d)
Dependency
14.
Can we use permission "Dangerous" protect level of an app of another developer in our app?
a)
Yes
b)
No
15.
Which following is a command line tool in Android
a)
Android emulator
b)
Android debug bridge
c)
none of these
d)
Dalvik Debug Monitor Server (DDMS)
100 %
