Android Boot Camp Day 2

Android Boot Camp Day 2

University

5 Qs

quiz-placeholder

Similar activities

Overview of Android

Overview of Android

University

8 Qs

Mobile Application UNESA - 2

Mobile Application UNESA - 2

University

10 Qs

Android Introduction

Android Introduction

University

10 Qs

Programación Movil II - Parte 3

Programación Movil II - Parte 3

University

10 Qs

DAY3_Quiz

DAY3_Quiz

University

10 Qs

MBL_Flutter_03

MBL_Flutter_03

University

10 Qs

Pertemuan 2 Android - 12:00

Pertemuan 2 Android - 12:00

University

10 Qs

Compose Camp - Session 1 Quiz

Compose Camp - Session 1 Quiz

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