Worksheets[FAST TRACK] Android class quiz 10
Total questions: 15
Worksheet time: 11mins
Name
Class
Date
1.
Does Activity need UI?
a)
Yes
b)
No
2.
Is list data type supported by AIDL?
a)
No
b)
Yes
3.
Which of the following is not true about fragments?
a)
A fragment has its own lifecycle and receives its own input events.
b)
It is not possible to remove a fragment while the activity is running.
c)
A fragment is defined in a Kotlin class.
d)
A fragment's UI is defined in an XML layout file.
4.
Mocking is creating objects that simulate the behavior of real objects. Is it right?
a)
True
b)
False
5.
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
6.
The purpose of the activity diagram is to:
a)
Represent behavior with control structures. Activity diagrams can represent multiple objects in a use case.
b)
Static representation of concepts, types and classes
c)
Helps to understand the basic purpose of the class, good for discovering how to implement the use case.
d)
Representation of the layout of components on hardware nodes
7.
Complete this sentences : ... defines grammar for ... , which can add operations for ...
a)
Flyweight, Iterator, Memento
b)
Interpreter, Composite, Visitor
c)
Flyweight, Memento, Iterator
d)
Interpreter, Memento, Visitor
8.
What is JNI in Android?
a)
Java Interface
b)
Java Native Interface
c)
Java Network Interface
9.
Complete the following statements about the relationship between Use Cases<br />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
10.
....provides a surrogate or placeholder for another object to control access to it.
a)
Decorator
b)
Facade
c)
Proxy
d)
Memento
11.
The purpose of use cases is:
a)
Indicate meaningful requests from users.
b)
Provides a few useful techniques for analysis, design, and coding.
c)
As the foundation for system testing
d)
Answers a and c are correct
12.
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
13.
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
14.
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
15.
What is the purpose of adding the following permission tag to your app’s AndroidManifest.xml file?
<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.
100 %
