Search Header Logo

Quiz Android 1

Authored by ivi gam

Business

Professional Development

Used 2+ times

Quiz Android 1
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 SELECT QUESTION

1 min • 1 pt

How to share view model between fragment-fragment, activity-fragments?

Init view model using "by viewmodels()" function of fragment-ktx

Init view model using "by activityViewModels()"" function of fragment-ktx

Init view mode by using "ViewModelProvider(fragment context).get"

Init view model by using "ViewModelProvider(activity context).get"

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is different between DataBinding and FindViewById method?

DataBinding generate binding class at runtime and findViewById run at compile time.
DataBinding generate binding class at compile time and findViewById run at runtime.
DataBinding and findViewById run at compile time.
DataBinding and findViewById run at runtime

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What happens when you use the API 15 features but set compile Sdk Version to 14?

Get error when run application

Get error when compilation

All of above

No errors

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which sentences is wrong when say about lateinit and lazy keyword

lateinit if for non-null properties, it means no need to check null for it.
lateinit can only be used with var (mutable) properties whereas lazy can only be used for val (immutable) properties.
lateinit and lazy can work with primitive type.
While using Singleton Pattern (Object Declaration in Kotlin) we should use lazy, as it will be initialized upon first use.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many threads can be executed at a time?

Only one thread
Only main (main() method) thread
Multiple threads
Two threads

6.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Android uses “Intents” to communicate and send data between different components which make it vulnerable to malicious attacks. Which of the following choices are component level Permissions to protect this type of communication? (Multi select)

Activity

Service

Content Provider

Widgets

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Android SQLite database files are stored under the ………………………………… directory

/data/database/<application-path>/databases/
/data/data/<application-path>/databases/
/data/files/<application-path>/databases/
/data/mydata/<application-path>/databases/

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?