Search Header Logo

Android - Quiz 11

Authored by Nguyễn Hương

English

University

Used 2+ times

Android - Quiz 11
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Any Android application can protect itself by declaring permissions that can be accessed by other applications. This can be achieved using the <permission> tag in the activity_main.xml file of the Android applications providing the permission.

True
False

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How is a simulator different from an emulator?

Emulators are only used to play old SNES games, simulators are used for software development
The emulator is shipped with the Android SDK and third party simulators are not
The emulator can virtualize sensors and other hardware features, while the simulator cannot
The emulator imitates the machine executing the binary code, rather than simulating the behavior of the code at a higher level

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Does Activity need UI?

Yes
No

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following statements are correct?

ArrayList increments 50% of its current size when it growing size in default
ArrayList increments 100% of its current size when it growing size in default
Vector increments 50% of its current size when it growing size in default
Vector increments 100% of its current size when it growing size in default

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Broadcast receivers are Android's implementation of a system-wide publish/subscribe mechanism, or more precisely, what design pattern?

Observer
Façade
Mediator
Command

6.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Why use a factory class to instantiate a class when we can use a new operator?

Factory design pattern results in more decoupled code as it allows us to hide creational logic from dependant code
It allows us to introduce an Inversion of the Control container.
It gives you a lot more flexibility when changing the application as our creational logic is hidden from dependant code.
None of above

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not true about fragments?

A fragment has its own lifecycle and receives its own input events.
It is not possible to remove a fragment while the activity is running.
A fragment is defined in a Kotlin class.
A fragment's UI is defined in an XML layout file.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?