No student devices needed. Know more
30 questions
Android is an open source, Linux-based software stack.
True
False
Which of the following choices is the main role of the button which is illustrated in the red rectangle over the Android Studio tool bar?
Run button
Debug button
Apply changes button
ADV manager button
Each Android application runs in its own process and with its own instance of ART on devices running Android version 8.0 (API Level 26) or higher.
True
False
Each Android application runs in its own process and with its own instance of ART on devices running Android version 8.0 (API Level 26) or higher.
True
False
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.view : This library contains the basic classes used for developing graphical user interface and for handling the user’s interaction with the user interface
True
False
Fill in the blank space in the following sentence with the correct choice: The …………………… arranges widgets in positions relative to each other.
RelativeLayout
Linear Layout
ConstraintLayout
Table Layout
Fill in the blank space in the following sentence with the correct choice: The ………………………… is a layout that arranges other views either horizontally in a single column or vertically in a single row.
LinearLayout
RelativeLayout
ConstraintLayout
Frame Layout
Android content providers are used to manage and share application data between applications.
True
False
Which of the following choices is the best answer to fill the empty space in the following sentence? Adding a new color to the colors.xml file in Android Studio (/res/values/colors.xml ) helps the app developers to use this new color as attribute value for the ……………. attribute in all these app layouts.
android:textColor
Kotlin:textcolor
Java:textcolor
color:textformat
Views are objects that are drawn on the screen. View is the parent class of all activity user interface components. Each activity is made up of a set of views grouped together within a layout.
True
False
As an Android developer, to change the font size of a text in Android layout, you should use attribute “android:textSize”. Which of the following choices is the recommended syntax to change the font size to 18?
android:textSize="18sp"
android:textSize="18dp"
android:textSize="18point"
android:textSize="18sd"
Which of the below choices is the best answer to fill the empty space in the following
sentence?
If you want to give all text widgets in an app the same format such as font color, font size,
and font family, you should add the style attribute to the TextView XML tags in layout file
and set the attribute value to the same style name.
You should define that style by adding a new style tag <style name=”style_name”> inside
………………………….
styles.xml file
AndroidManifest.xml file
MainActivity.java or MainActivity.kt file
activity_main.xml file
Fill in the blank space in the following sentence with the correct choice: To configure your style as the theme for all your app activities (entire app), open AndroidManifest.xml, and set the theme by adding android:theme=”@style/your_style_name” attribute to the ………………………..
<application> tag
<activity> tag
<intent-filter> tag
<manifest> tag
Fill in the blank space in the following sentence with the correct choice: The following image shows the content of an AndroidManifest.xml file of an Android app. The role of adding the attributes “android:icon” and “android:roundIcon” is ………………………………….
Set an app icon image on a phone, on any smart device, or in Google play store
Show the app icon in Android Studio title bar only
Show the app icon in Android Studio emulator only
Show this icon if this app is installed on IPhone devices only
Android SDK platform is a set of libraries and APIs that provide necessary classes, methods and interfaces to develop Android applications and allow you to compile your code
True
False
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( )
Toast.LENGTH_LONG
Toast.shortTime
Toast.sec.4
Toast.Time.4s
This image displays part of Android Studio tool bar. What does the button illustrated with a red rectangle represent?
AVD Manager
Gradle Console
Gradle Console
Gradle Console
Which of the following files has the correct name for a layout design file of an activity in an Android app?
MainActivity.java or MainActivity.kt
activity_main.xml
Sample.class
Gradle.sql
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
Which of the following Android Studio folders includes drawable files for different launcher icon densities?
Mipmap
Layout
Drawable
Values
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
The following Android code will show the small popup message “Message saved as draft” for 3.5 seconds, and then automatically disappears: Toast.makeText(this, ”Message saved as draft”, Toast.LENGTH_LONG).show( )
True
False
The following image displays an AndroidManifest.xml file for an Android app. Which of the following choices is correct about this file?
This app consists of three activities and MainActivity is the launcher activity
This app consists of two activities and Second is the launcher activity
This app consists of one activity and MainActivity is the launcher activity
This app consists of two activities and MainActivity is the launcher activity
A standard Android toast notification appears near the bottom of the screen, centered horizontally. To change this position you can use ………………….…
toast.setGravity
toast.coordinates
toast.position
toast.location
If you have an Android application having 10 activities, and you want to specify one of them as launcher (startup) activity, which of the following files you can configure an activity as launcher (startup) activity?
MainActivity.java or MainActivity.kt
AndroidManifest.xml
activity_main.xml
strings.xml
If you want to configure a link between two Android activities in the same Android application, you need to use:
Intent
Gradle
Toast
Progressbar
There are three different action buttons you can add to Android AlertDialog class. Which of the following choices is NOT correct about Android AlertDialog class?
You can add more than one positive button to the same AlertDialog class
Positive action button is used to accept and continue with the “OK” action
Negative action button is used to cancel the action
Neutral action button is used when the user does not want to proceed with the action. It appears between the positive and negative buttons. For example, the action might be “Remind me later.”
Explore all questions with a free account