wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CS380-Mobile Application Developments-1

Total questions: 30

Worksheet time: 16mins

Name
Class
Date
1.

Dalvik Virtual Machine is _____________________.

a)

Ahead of Time compiler

b)

Just in Time compiler

c)

Run In Time compiler

d)

Just of Time compiler

2.

ART increases battery performance to a large extent, While the Dalvik results

in more battery utilization.

a)

True

b)

False

3.

Which facility is not provided by Linux kernel for android application?

a)

Keypad drivers

b)

Bluetooth interface

c)

Security features

d)

Threading

4.

In which state the activity is, if it is not in focus, but still visible on the screen?

a)

Stopped state

b)

Destroyed state

c)

Paused state

d)

Running state

5.

Which of the following is not a dialog class in android?

a)

Alert

b)

Date Picker

c)

Progress

d)

Toast

6.

Which of the following is not a state in the service lifecycle?

a)

Destroyed

b)

Start

c)

Paused

d)

Running

7.

Which of the following is the built-in database of Android?

a)

SQLite

b)

MySQL

c)

Oracle

d)

MongoDb

8.

Which of the following layout in android aligns all children either vertically or horizontally?

a)

RelativeLayout

b)

TableLayout

c)

FrameLayout

d)

LinearLayout

9.

What is the default value of the orientation attribute in LinearLayout?

a)

Horizontal

b)

Vertical

c)

There is no default value of orientation attribute in LinearLayout

d)

None of the above

10.

Which of the following class in android displays information for a short period of time and disappears after some time?

a)

Toast class

b)

Log class

c)

Maketest class

d)

None of the above

11.

Which of the following choices is the main role of the Preview button which is illustrated in the red circle of the vertical Android Studio tool bar?

a)

It shows the activity layout in text (XML) and design mode at the same time.

b)

It shows the activity layout in print review.

c)

It shows the Java or Kotlin code of an activity.

d)

It shows the activity blue print preview mode.

12.

The Android library code is organized in such a way that it can be used by multiple Android applications.

a)

True

b)

False

13.

The following image shows part of the content inside file activity_main.xml in an Android application:

Which of the following options is correct?

a)

The app user can select one radio button only at a time.

b)

The app user can select the two radio buttons at the same time.

c)

The only purpose of RadioGroup tag is adding a group of colors to the inside of the radio buttons.

d)

This is not an XML code; it is a Kotlin code.

14.

android.widget : This library contains (mostly visual) user interface components such as Button, Spinner, ListView to be used in your applications.

a)

True

b)

False

15.

The following Android code displays a Toast message. Which of the following is the correct parameter to replace Toast.xyz in this line of code?

Toast.makeText(this,”Message saved as draft”,Toast.xyz).show( )

a)

Toast.LENGTH_LONG

b)

Toast.shortTime

c)

Toast.sec.4

d)

Toast.Time.4s

16.

This image displays part of Android Studio tool bar. What does the button illustrated with a red rectangle represent?

a)

AVD Manager

b)

Gradle Console

c)

Save App.

d)

Save As App.

17.

The following Android code displays a Toast message. Which of the following is the correct parameter to replace Toast.xyz in this line of code?

Toast.makeText(this,”Message saved as draft”,Toast.xyz).show( )

a)

Toast.LENGTH_LONG

b)

Toast.shortTime

c)

Toast.sec.4

d)

Toast.Time.4s

18.

If you want to configure a link between two Android activities in the same Android application, you need to use:

a)

Intent

b)

Gradle

c)

Toast

d)

Progressbar

19.

Which of the following Android classes can be defined by this statement?

The user can touch by thumb and drag it left or right to set the current progress level.

a)

Progressbar

b)

TimePickerDialog

c)

TunnerYbar

d)

SeekBar

20.

Which of the following layouts is fully integrated with Android Studio’s layout editor so you can build the full layout without the need to edit the XML manually?

a)

Constraint Layout

b)

Linear Layout

c)

Relative Layout

d)

Table Layout

21.

Check the following image which is a part of AndroidManifest.xml file, then select which of the following choices is the correct description of the gray highlighted color of this code?

a)

This permission tag allows this app to connect to the Internet.

b)

This permission tag allows other apps to make remote connection to this app.

c)

This permission tag allows this app to connect to its SQLite database.

d)

This permission tag has been written in the wrong location, it must be written inside <application> tag.

22.

Which of the following is true about the following line of code: button.setOnClickListener({ })

a)

It only saves changes in a text field.

b)

It sets the number of clicks the user presses to run the application.

c)

The system executes the code you write in setOnClickListener({ }) after the user presses the button.

d)

It sets the time and date of run process.

23.

Assume you are developing an Android app which consists of two activities, MainActivity and SecondActivity. The following image includes part of MainActivity code. This file includes a button that has id “Mybutton”.

What does the following code snippet do if it is executed after the user taps on the button (id: Mybutton)?

a)

Opens SecondActivity layout.

b)

Closes the app, then opens the phone’s applications list.

c)

Moves “Hello” message to SecondActivity layout.

d)

Re-opens the same MainActivity layout.

24.

If your Android application creates a SQLite database, which of the following is the default directory to save this database file?

a)

/data/data/APP_NAME/databases/DATABASE_FILE.

b)

/dataSQL/data/APP_NAME/databases/DATABASE_FILE.

c)

/database/data/APP_NAME/databases/DATABASE_FILE_SQLApp.

d)

/database/SQLite_Data/APP_NAME/databases/DATABASE_FILE.

25.

Which of the following is the topmost layer of android architecture?

a)

System Libraries and Android Runtime

b)

Linux Kernel

c)

Applications

d)

Applications Framework

26.

Which of the following android component displays the part of an activity on screen?

a)

View

b)

Manifest

c)

Intent

d)

Fragment

27.

We require an AVD to create an emulator. What does AVD stand for?

a)

Android Virtual device

b)

Android Virtual display

c)

Active Virtual display

d)

Active Virtual device

28.

Which of the following kernel is used in Android?

a)

MAC

b)

Windows

c)

Linux

d)

Redhat

29.

What does API stand for?

a)

Application Programming Interface

b)

Android Programming Interface

c)

Android Page Interface

d)

Application Page Interface

30.

Which type of intent is useful when Clicking Share button opens a chooser

with a list of apps?

a)

Explicit intent

b)

Implicit intent