NEW
Font size
WorksheetsAndroid ATC_Practice 3
Total questions: 45
Worksheet time: 39mins
The prerequisite to install Android Studio IDE is to install the Java JDK and Adobe Reader.
True
False
Google allows web sites, mobile apps, and other media to connect to its database and import it in JSON format.
True
False
An Android Geo-location plug-in is used to get the current location of the device feature.
True
False
What is Android Studio?
It is Google’s official Integrated Development Environment (IDE) for Android
app development.
It is a free software used to create the SQL database for web development.
It is a free software used to create PHP code.
It is a free software used to create a web page or more.
The Android virtual device AVD Manager is an interface that you can launch from Android Studio which helps you create and manage Android virtual devices (Android Emulators).
True
False
Only the Android applications which have Google maps have an AndroidManifest.xml file.
True
False
When you are creating an Android app using Android Studio, you will have an activity_main.xml file which can be opened in the design and code mode.
True
False
You can add an image to your Android app by simply copying the image from the folder where it is stored in your computer, and then pasting it in the images location on your Android Studio.
True
False
When you create an Android app using Android Studio, your Android app icon will be a white circle logo by default.
True
False
Bottom AppBar is a material widget that is displayed at the bottom of an app for selecting among a small number of views, typically between three and five. This bar consists of multiple items in the form of text labels, icons, or both, laid out on the top of a piece of material.
True
False
You use the RecyclerView widget when you have data collections whose elements do Not change at runtime and without any user action or network events.
True
False
Your Android app needs only a Gmail account to access or connect to the Google Maps servers and display and use the Google maps in your app activity.
True
False
Android Spinner widget provides a quick way to select one value from a set of choices.
True
False
Fill in the blank with the best answer to complete the following sentence:
The Developer Registration Fee for Google Play store is ................................
25 USD for a life time.
25 USD for each app.
Free.
750 USD for a life time.
The image in this question includes a part of Android Studio tools bar. Which of the following choices is correct about the name of the missing icon name (represented by question marks)?
AVD Manager (Android Virtual Device Manager).
SDK Update.
SDK Manager.
Insert Image.
While configuring your Android app on Firebase web site, you should download the google-services.json file from Firebase web site and add it to your Android app files as illustrated in the image below. What is the main role of this file for your app?
This configuration file includes the https connection settings between your
Android app and Firebase services.
This file includes your user name and password for Firebase web site.
The role of this file is to import the last security updates from Firebase web
site to app users.
This file checks if the app user’s device has Internet connection each time the
app user starts it.
Which tools Android Studio uses to generate the apps’ icons from material icons, custom images, and text strings ?
Image Asset Studio.
Android illustrator.
Android Studio Bitmap Editor.
Android Studio Icon illustrator.
What is in the following image?
The Firebase toolbar.
The Google Maps plug-in toolbar.
The Android emulator toolbar.
The Android Firefox toolbar.
The image in this question includes a part of Android Studio tools bar. Which of the following choices is correct about the name of the missing icon name (represented by question marks)?
SDK Update
SDK Manager
Insert Image
Apply changes and restart activity.
The XML code of this question is for a button widget. Which of the following choices is correct about the id of this widget?
This id must be unique in your application.
You can’t change this id if you run your app on an Android emulator.
All the buttons in this app must have the same id.
The id must start with small letter and without numbers.
This Android layout allows Android developers to specify constraints (Margins) that would decide the position of each sub element such as text, button, radio box, check box or other widgets within the Android activity layout. Which Android layout type of choices below we are talking about?
Linear Layout.
Relative Layout.
Table Layout.
Constraint Layout.
When you pass data form an Android activity called Activity1 to another Android activity called Activity2 using Intent class configuration, which Intent’s method do you use in Activity1 configuration? select the best answer of the following choices:
sendExtra( )
pushExtra( )
getExtra( )
putExtra( )
As illustrated in the image below, when the app user taps the SAVE button in this Android app, this user gets a message with three buttons. Which of the choices below is correct about the Kotlin code of this app?
The Android developer used the AlertDialog subclass to display the dialog box, dialog title, and these three buttons.
The Android developer used the Snackbar class to display the Snackbar dialog box dialog title, and these three buttons.
The Android developer used the pushDialog subclass to display the dialog box, dialog title, and these three buttons.
The Android developer used the Notification class to display the notification
box, notification title, and these three buttons.
Complete the following sentence using one of the choices below:
To navigate from Android activity to another in an Android app, you need to configure a/an ................... class.
go2secondActivity
Browser
Hyperlink
Intent
The image in this question displays the Android app uses of check boxes and radio buttons. As you see in the component Tree, why the Android developer added the two radio buttons to a parent Radio group? Select the best answer of the choices below.
Because this helps Android developers to set all these radio buttons vertically with the same format.
Because using a radio group as a parent for these radio buttons, the app user can only check one radio button from a group of radio buttons.
Because this is easier so that when Android developer moves a radio button, all the other radio buttons belonging to the same radio group will move together.
Because we can’t publish any Android app to Google Play store if it includes radio buttons that do not belong to any radio button group.
The image in this question about an Android notification components. Which of the choices below is correct about the small icon in this notification?
It is required in the Android notification configuration.
it is optional in the Android notification configuration.
It is required only for Android 10 devices.
It is optional only for Android 12 devices.
Which Android class can produce the activity illustrated in the image below?
Rating Bar.
Progress Bar with Indeterminate mode.
Progress Bar with determinate mode.
Seek Bar.
Which Android class can produce the activity illustrated in the image below?
Rating Bar.
Progress Bar with Indeterminate mode.
Progress Bar with determinate mode.
Seek Bar.
Select one choice of the answers below. What is the name of the part which is represented by three question marks in this question image?
Drawer
Menu
Spinner
Map
If you created an Android app using the Firebase services, the app users login to this App using Firebase user accounts (email and password). Which of the following Firebase products store these app users’ accounts?
Database
Authentication
Storage
Hosting
The code in the image blow is for the AndroidManifest.xml file and for a style code called: ATCTheme2030. This Android app uses the formats which are in the ATCTheme2030 style and inherits the other theme from: Theme.AppCompat.DayNight theme.
Which Android file includes this ATCTheme2030 style code? Select the best choice of the following answers:
AndroidManifest.xml
themes.xml
strings.xml
styles.xml
Firebase offers two cloud-based, client-accessible database solutions. Which of the following choices is a Firebase database type?
SQL and MySQL
Realtime Database and Cloud Firestore
Cloud Firestore and MySQL
Realtime Database and SQL
Fill in the blank with the best answer to complete the following sentence: To use or add Google Maps to your Android app, your application needs ......................... to access or connect to Google Maps servers.
an API key.
a user name and password.
To disable Wi-Fi connection on app user’s device.
An HTML widget to your app code.
Which of the following Android widgets you should use to configure your app interface to display Google map?
SelectMap
MapNow
MapAPI
GoogleMap
If you want to use a font color many times in your app design, it is a good idea to configure this color as a color tag as illustrated in this question image. Where you should add this tag to use this font color name: ATCtext in the app activities? Select the best answer of the following choices:
activity_main.xml
format.xml
colors.xml
css.xml
In the code illustrated in the following image for Android Snackbar, what is the meaning of : LENGTH_LONG part of this code?
This message will not show on Android tablets.
This code is for phone devices which have long screens only.
This code is related to how long the Snackbar message will appear.
This Snackbar message will not disappear automatically after a timeout.
The image in this question includes the AndroidManifest.xml file for an
Android app. How many activities does this Android app have?
One.
Two.
Three.
Four.
The image in this question includes the AndroidManifest.xml file for an Android app. What is the name of the launcher (startup) activity of this Android app?
MainActivity
Second
Root
Launcher
If a company asked you to create an Android app for a restaurant menu. This restaurant customers will use the menu to select their order. This menu consists of a list of items and each item includes an image, item name, and some
details about it. Also, the customer can search about the item which he/she would like to order. The customer can scroll this restaurant menu vertically. Which of the following Android widgets you will use in designing this restaurant
menu?
Bottom AppBar and SearchView widgets.
RecyclerView and SearchView widgets.
CardView and SearchView widgets.
RecyclerView and FindView widgets.
The image in this question includes a code for an Android app which consists of one activity called MainActivity. This activity includes a DatePickerDialog class (Date Picker). Which of the choices below represents the red question marks in the MainActivity code file?
push
get
show
send
The XML code in the image below must be added to your Android app to allow permissions to display the user’s app location on Google map. Where this code must be added? Select the best answer of the choices below:
maps.xml file
activity_main.xml file
AndroidManifest.xml file.
APIkeys.xml file
An Android developer has added a webview class to an Android app to display an Internet web site inside an app activity. However, when he runs this Android app, he gets the run result illustrated in this question image. If this developer asked your help, which of the choice below you will select to troubleshoot this problem?
Ask the developer to add the following tag to the AndroidManifest file in this
app: <uses-permission android:name="android.permission.INTERNET" />
Ask the developer to restart his app.
Ask the developer to disable the WiFi and use mobile data for the Android
device or emulator to access internet connection.
Ask the developer to enable the GPS location
When you build an Android app, you can use an Android emulator to test your app UI (user interface ) and its work flow. However, you can NOT test this app on a real Android device before publishing your app on Google Play store.
True
False
The MainActivity Kotlin file in this question is for an Android app. The run result of this app displays a rating bar. When the app user selects the number of stars then clicks the SUBMIT button, he will get the rating as value below the
SUBMIT button as illustrated in the image of this question. Which of the choices below describes the rateText in this MainActivity file?
rateText is a class used to display the five stars in the rating bar.
rateText is the id value of the TextView widget which is used to display the rating bar value.
rateText is a method used to display the SUBMIT button.
rateText is the text value of the TextView widget which is used to display the rating bar value.
Assume that you have generated a Google API key and enabled the Maps SDK for Android at the Google cloud platform web server as illustrated in the image below.
Where will you add your Google API key in your Android app ? Select the best answer of the choices below:
maps.xml
activity_main.xml
MainActivity
AndroidManifest.xml
