wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

[FAST TRACK] Android quiz 08 (03.06)

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.
What is contained within the manifest xml file?
a)
The permissions the app requires
b)
The list of strings used in the app
c)
The source code
d)
All above choices
2.
Which annotation below is NOT used to provide data for parameter of ParameteredTest annotation in Junit?
a)
@NetworkSource
b)
@MethodSource
c)
@CsvSource
d)
@CsvFileSource
3.
Which component/service android system use to send an alert to user?
a)
Content Provider
b)
NotificationManager
c)
BroadcastReceiver
d)
AlertDialog
4.
Operations are used in a...........
a)
Package diagram
b)
Class diagram
c)
Activity diagram
d)
Use Case diagram
5.
Which of this method of class StringBuffer is used to concatenate the string representation to the end of invoking string?
a)
concat()
b)
append()
c)
join()
d)
concatenate()
6.
Can we use permission "Dangerous" protect level of an app of another developer in our app?
a)
Yes
b)
No
7.

Complete the following statements about the relationship between Use Cases:

Use ………… when we want to reduce duplicate steps between use cases, take those common steps to create sub use cases.

a)
Include
b)
Generalization
c)
Extend
d)
Delegation
8.
In a selection sort structure, there is/are?
a)
Two separate for loops
b)
Three for loops, all separate
c)
Two for loops, one nested in the other
d)
A for loop nested inside a while loop
9.
If the operation of creating an object is complex and time-consuming we can use?
a)
Factory pattern
b)
Abstract Factory pattern
c)
Builder pattern
d)
Object Pool pattern
10.
What is an Activity?
a)
A single screen the user sees on the device at one time
b)
A message sent among the major building blocks
c)
A component that runs in the background without any interface
d)
Context referring to the application environment
11.

Complete the following sentence:

………… is a good representation to represent a sequence of actions for multiple objects and Use Cases

a)
State Diagrams
b)
Sequence Diagrams
c)
Collaboration Diagrams
d)
Activity Diagrams
12.
...makes it easy to create loosely coupled components, which typically means that components consume functionality defined by interfaces without having any first-hand knowledge of which implementation classes are being used
a)
Bridge
b)
Decorator
c)
Dependency injection
d)
None
13.
Hilt is integrated with Jetpack libraries, Android framework classes, and automatically generates and provides all of the following except ______?
a)
Components for Android framework classes
b)
Manual management of Android class lifecycles
c)
Scope annotations
d)
Predefined bindings and qualifiers
14.

Which of the following choices is the best answer to fill the empty space in the following sentence?

Adding a new color to the colors.xml file in Android Studio (/res/values/colors.xml) helps the app developers to use this new color as attribute value for the ……………. attribute in all these app layouts.

a)
android:textColor
b)
Kotlin:textcolor
c)
Java:textcolor
d)
color:textformat
15.
Which type of the connector between components below?
a)
Association
b)
Assembly
c)
Connector
d)
Deletegate