WorksheetsCS380-Mobile Application Developments-1
Total questions: 30
Worksheet time: 16mins
Dalvik Virtual Machine is _____________________.
Ahead of Time compiler
Just in Time compiler
Run In Time compiler
Just of Time compiler
ART increases battery performance to a large extent, While the Dalvik results
in more battery utilization.
True
False
Which facility is not provided by Linux kernel for android application?
Keypad drivers
Bluetooth interface
Security features
Threading
In which state the activity is, if it is not in focus, but still visible on the screen?
Stopped state
Destroyed state
Paused state
Running state
Which of the following is not a dialog class in android?
Alert
Date Picker
Progress
Toast
Which of the following is not a state in the service lifecycle?
Destroyed
Start
Paused
Running
Which of the following is the built-in database of Android?
SQLite
MySQL
Oracle
MongoDb
Which of the following layout in android aligns all children either vertically or horizontally?
RelativeLayout
TableLayout
FrameLayout
LinearLayout
What is the default value of the orientation attribute in LinearLayout?
Horizontal
Vertical
There is no default value of orientation attribute in LinearLayout
None of the above
Which of the following class in android displays information for a short period of time and disappears after some time?
Toast class
Log class
Maketest class
None of the above
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?
It shows the activity layout in text (XML) and design mode at the same time.
It shows the activity layout in print review.
It shows the Java or Kotlin code of an activity.
It shows the activity blue print preview mode.
The Android library code is organized in such a way that it can be used by multiple Android applications.
True
False
The following image shows part of the content inside file activity_main.xml in an Android application:
Which of the following options is correct?
The app user can select one radio button only at a time.
The app user can select the two radio buttons at the same time.
The only purpose of RadioGroup tag is adding a group of colors to the inside of the radio buttons.
This is not an XML code; it is a Kotlin code.
android.widget : This library contains (mostly visual) user interface components such as Button, Spinner, ListView to be used in your applications.
True
False
This image displays part of Android Studio tool bar. What does the button illustrated with a red rectangle represent?
AVD Manager
Gradle Console
Save App.
Save As App.
If you want to configure a link between two Android activities in the same Android application, you need to use:
Intent
Gradle
Toast
Progressbar
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.
Progressbar
TimePickerDialog
TunnerYbar
SeekBar
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?
Constraint Layout
Linear Layout
Relative Layout
Table Layout
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?
This permission tag allows this app to connect to the Internet.
This permission tag allows other apps to make remote connection to this app.
This permission tag allows this app to connect to its SQLite database.
This permission tag has been written in the wrong location, it must be written inside <application> tag.
Which of the following is true about the following line of code: button.setOnClickListener({ })
It only saves changes in a text field.
It sets the number of clicks the user presses to run the application.
The system executes the code you write in setOnClickListener({ }) after the user presses the button.
It sets the time and date of run process.
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)?
Opens SecondActivity layout.
Closes the app, then opens the phone’s applications list.
Moves “Hello” message to SecondActivity layout.
Re-opens the same MainActivity layout.
If your Android application creates a SQLite database, which of the following is the default directory to save this database file?
/data/data/APP_NAME/databases/DATABASE_FILE.
/dataSQL/data/APP_NAME/databases/DATABASE_FILE.
/database/data/APP_NAME/databases/DATABASE_FILE_SQLApp.
/database/SQLite_Data/APP_NAME/databases/DATABASE_FILE.
Which of the following is the topmost layer of android architecture?
System Libraries and Android Runtime
Linux Kernel
Applications
Applications Framework
Which of the following android component displays the part of an activity on screen?
View
Manifest
Intent
Fragment
We require an AVD to create an emulator. What does AVD stand for?
Android Virtual device
Android Virtual display
Active Virtual display
Active Virtual device
Which of the following kernel is used in Android?
MAC
Windows
Linux
Redhat
What does API stand for?
Application Programming Interface
Android Programming Interface
Android Page Interface
Application Page Interface
Which type of intent is useful when Clicking Share button opens a chooser
with a list of apps?
Explicit intent
Implicit intent
