Android Boot Camp Day 2

Android Boot Camp Day 2

University

5 Qs

quiz-placeholder

Similar activities

MAD assignment1

MAD assignment1

University

10 Qs

INTERNET CONNECTIONS

INTERNET CONNECTIONS

University

10 Qs

Mobile App. dev. - Sem6 Grp(C)

Mobile App. dev. - Sem6 Grp(C)

University

7 Qs

Revisão 2ª AV - Programação Mobile

Revisão 2ª AV - Programação Mobile

University

10 Qs

Mobile App. - Android studio 2023-2024 G(B)

Mobile App. - Android studio 2023-2024 G(B)

University

8 Qs

Programación Móvil I Parte 3

Programación Móvil I Parte 3

University

10 Qs

[WPL][D3PJJFG] Evaluasi Pertemuan 1

[WPL][D3PJJFG] Evaluasi Pertemuan 1

University

10 Qs

Android Boot Camp Day 2

Android Boot Camp Day 2

Assessment

Quiz

Computers

University

Hard

Created by

Ritesh Phadtare

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What XML attribute is used to specify the width of a view in Android?

layout_height

android_width

android:layout_width

width

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In Android, how do you display a simple toast message?

Toast.makeText(this, "Hello", Toast.LENGTH_SHORT).show();

showToast("Hello");

new Toast("Hello").display();

Toast.showMessage("Hello", Toast.LENGTH_SHORT);

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you start a new activity using an explicit Intent in Android?

startActivity(new Intent(this, NewActivity.class));

startActivity(NewActivity.class);

intent.startNewActivity(this, NewActivity.class);

startNewActivity(Intent(this, NewActivity.class));

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which layout manager is used to arrange elements in a grid in Android XML?

LinearLayout

RelativeLayout

GridLayout

FrameLayout

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How can you set the duration of a Toast message to be displayed for a longer time?

Toast.LENGTH_SHORT

Toast.LENGTH_LONG

Toast.DURATION_LONG

Toast.DURATION_SHORT