wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

[FAST TRACK] Android Quiz 6 (20.5)

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.
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
2.
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)
3.
"A collection of unit tests(that can be run together) is called:<br />"
a)
A Collection
b)
A Suite
c)
An Assertion Set
d)
An Evaluation
4.
What is the design pattern which allows to add properties of object without altering the original?
a)
Prototype
b)
Flyweight
c)
Decorator
d)
Object Pool
5.
The purpose of a class diagram is
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
6.
... is used when we need to decouple an abstraction from its implementation so that the two can vary independently. This type of design pattern comes under structural pattern as this pattern decouples implementation class and abstract class by providing a ... structure between them.
a)
Bridge
b)
Adapter
c)
Proxy
d)
Facade
7.
How to sort an array?
a)
Array.sort()
b)
Arrays.sort()
c)
Collection.sort()
d)
System.sort()
8.
Class diagrams are used to model.......
a)
Domains
b)
Sequences of activity
c)
Functional requirements
d)
Algorithms
9.
Can we use permission "Signature" protect level of an app of another developer in our app (With same certificate) ?
a)
Yes
b)
No
10.
"Divide-and-conquer" refers to:
a)
The list being divided into sublists with equal numbers of elements in each, then those sorted sublists are merged back together.
b)
The list being divided into only two sublists, never more or less, which are sorted and merged back together.
c)
The list being divided into smaller sublists, then those sorted sublists are merged back together.
11.
Matching java components to corresponding pattern. ( ex : Singleton, Proxy, Prototype)
a)
Factory, Builder, Singleton
b)
Singleton, Builder, Factory
c)
Builder, Factory, Singleton
d)
Singleton, Factory, Builder
12.
The following image includes a code of permission group. Where this code will be written in the Android app?
a)
MainActivity.java or MainActivity.kt
b)
AndroidManifest.xml
c)
activity_main.xml
d)
string.xml
13.
……………. controls life cycle of activities and manages activity stack level requirements
a)
Windows Manager
b)
Content Provider
c)
Activity Manager
14.
Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.
a)
Interpreter
b)
Visitor
c)
Iterator
d)
Composite
15.
Which of the following classes has methods to create, delete, execute SQLite commands and perform other common SQLite database management tasks?
a)
SQLiteOpenHelper
b)
SQLiteDatabase
c)
Cursor
d)
Progressbar