Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Android - Quiz 13

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.
Which design pattern is used to get a way to access the elements of a collection object in sequential manner?
a)
Chain of Responsibility
b)
strategy
c)
Iterator
d)
Command
2.
The invoker object then looks for the appropriate and corresponding object, which then executes the request. What design pattern is mentioned here?
a)
Visitor
b)
Chain of Responsibility
c)
Command
d)
Observer
3.
How many threads can be executed at a time?
a)
Only one thread
b)
Only main (main() method) thread
c)
Multiple threads
d)
Two threads
4.
Which of these keywords are used to implement synchronization?
a)
synchronize
b)
syn
c)
synch
d)
synchronized
5.
How to copy contents of array?
a)
System.arrayCopy()
b)
Array.copy()
c)
Arrays.copy()
d)
Collection.copy()
6.
Which of these keywords is not a part of exception handling?
a)
try
b)
finally
c)
thrown
d)
catch
7.
AIDL stands for ….
a)
Android Interface Definition Language
b)
Android Intermediate Definition Language
c)
Android Interface Description Language
d)
Android Internal Definition Language
8.
<EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@={user.firstName}"/> What is "@=" in text attribute?
a)
It's fixed text
b)
It's two way data binding
c)
It's is dependency Injection syntax
d)
It's is one way data binding
9.
What is Hilt?
a)
A library for database
b)
A library for dependency injection
c)
A library for composable
d)
A library for navigation
10.
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
11.
Which type of the connector between components below?
a)

Association

b)

Assembly

c)

Connector

d)

Deletegate

12.
Identify the wrong pair of symbol-visibility scope
a)
+public
b)
#protected
c)
!package
d)
-private
13.
The relationship between class A and class B is
a)
Dependency
b)
Realization
c)
Composition
d)
Aggregation
14.
Complete the following statements about the relationship between Use Cases Use ………… when we want to create a new use case by adding some steps to an existing use case.
a)
Include
b)
Generalization
c)
Extend
d)
Delegation
15.
With which relationship a component belongs only to a whole. These components always exist and disappear with the whole?
a)
aggregation
b)
Composition
c)
Classification
d)
Generalization