Search Header Logo

[FAST TRACK] Android Class Quiz week 05 12/05

Authored by Trang Thu

Other, World Languages, Professional Development

Professional Development

Used 7+ times

[FAST TRACK] Android Class Quiz week 05 12/05
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

45 sec • 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

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the difference between const and val?

The keywords const and val are used to declare an immutable property (read-only properties).
const is also known as Compile-time constant. So, no runtime assignment of values is allowed in const variables. So, you can't assign a const variable to a function or to some class. And the val properties can be initialised at the runtime. So, you can assign a val variable to a function or to some class
const only can be used for number like Integer, Long, float. Val can use for all type.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Can we create a clone of a singleton object?

true
false

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

With x = 0, which of the following are legal lines of Java code for changing the value of x to 1?

1, 2 & 3
1 & 4
1, 2, 3 & 4
3 & 2

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What are the configuration changes?

Language changes
Sensor changes
Screen rotations
Keyboard changes

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A series of actions for a particular Use Case without class behaviours can be modelled using......

A Class Diagram
A Package Diagram
A Sequence Diagram
An Activity Diagram

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the difference between a factory and an abstract factory design pattern?

Factory pattern is in Creational groups but Abstract factory pattern does not.
Factory pattern creates an object through inheritance and produces only one Product. And abstract factory pattern creates the object through composition and produce families of products.
Abstract factory pattern creates an object through inheritance and produces only one Product. And factory pattern creates the object through composition and produce families of products.
There is no different between them.

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?