wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Android ATC_Practice 4

Total questions: 45

Worksheet time: 37mins

Name
Class
Date
1.

When you build Android app, you can use 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.

a)

True

b)

False

2.

Google allows websites, mobile apps, and other media to connect to its database and import it in JSON format.

a)

True

b)

False

3.

An Android Geo-location plug-in is used to get the current location of the device feature.

a)

True

b)

False

4.

What is Android Studio?

a)

It is a free software used to create PHP code

b)

It is a free software used to create a web page or more

c)

It is a free software used to create the SQL database for web development

d)

It is a Google’s official Integrated Development Environment (IDE) for Android app development

5.

The prerequisite to install android studio IDE is to install java JDK and Adobe Reader.

a)

True

b)

False

6.

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).

a)

True

b)

False

7.

Only the android applications which have Google maps have an AndroidManifest.xml file.

a)

True

b)

False

8.

When you are creating an android app using android studio, you will have activity_main.xml file can be opened in the design and code mode.

a)

True

b)

False

9.

When you create an android using android studio, your android app icon will be a white circle logo by default.

a)

True

b)

False

10.

The android app icon in the android studio consists of two layers and there are call foreground layer and background layer.

a)

True

b)

False

11.

Android AlertDialog is used in an android app to display a dialog which consists of a title, message and a number of buttons.

a)

True

b)

False

12.

Android notification is a message you display to the other user outside of your app’s user interface to provide the user with reminder, communication from other people or other timely information from you app.

a)

True

b)

False

13.

A SeekBar is an extension of the ProgressBar with a draggable thumb. The app user can touch the thumb and drag it left or right to set the current progress level.

a)

True

b)

False

14.

Android Spinner widget provides a quick way to select one value from a set of choices.

a)

True

b)

False

15.

To assess the quality of your app, you need to set up a suitable hardware or emulator environment for testing.

a)

True

b)

False

16.

Choose the best answer of the following options to complete the following sentence: in Firebase database, there are no tables or rows. Instead, you should store your data in documents, which are organized into ……………… . Each document contains a set of key-value pairs.

a)

Sub-forms

b)

Templates

c)

Collections

d)

Images

17.

Fill in the blank with the best answer to complete the following sentence: The Developer Registration Fee for Google Play store is ……………

a)

Free

b)

750 usd for a life time

c)

25 usd for a life time

d)

25 usd for each app

18.

The image of 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)?

a)

SDK manager

b)

AVD manager (android virtual device manager)

c)

Insert image

d)

SDK update

19.

What is the following image?

a)

The android emulator toolbar

b)

The Firebase toolbar

c)

The Android Firefox toolbar

d)

The Google maps plug-in toolbar

20.

The image in this question includes a part of android studio tools bar. Which of the following is correct about the name of the missing icon name (represented by question marks)?

a)

Apply changes and restart activity

b)

SDK manager

c)

Insert image

d)

SDK update

21.

The XML code of this question is for a button widget. Which of the following choices is correct about the id of this widget?

a)

The id must start with small letter and without numbers

b)

This id must be unique in your application

c)

You can’t change this id if you run your app on an android emulator

d)

All the buttons in this app must have the same id

22.

The image in this question displays the android app uses of check boxes and radio buttons. As you can in the component tree, why the android developer added the two radio buttons to a parent RadioGroup? Select the best answer of the choices below.

a)

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

b)

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

c)

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.

d)

because this helps android developers to set all these radio buttons vertically with the same format.

23.

The 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 are we talking about?

a)

Table layout

b)

Linear Layout

c)

Constraint Layout

d)

Relative Layout

24.

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.

a)

Hyperlink

b)

Browser

c)

Intent

d)

go2secondActivity

25.

When you pass data from an Android activity called Activity 1 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.

a)

getExtra()

b)

sendExtra()

c)

pushExtra()

d)

putExtra()

26.

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?

a)

the android developer used the Notification class to display the notification box, notification title and these three buttons

b)

the android developer used the AlertDialog subclass to display the dialog box, dialog title and these three buttons

c)

the android developer used the pushDialog subclass to display the dialog box, dialog title and these three buttons

d)

the android developer used the SnackBar dialog box to display the dialog box, dialog title and these three buttons

27.

The image in this question is from an Android app. Which of the choices below creates these stars in this Android app interface?

a)

RatingBar

b)

SeekBar

c)

ProgressBar

d)

ReviewBar

28.

If you want to show a video in your app as illustrated in the image of the question below, which one of the choices you will use?

a)

ShowView

b)

StreamView

c)

VideoView

d)

MovieView

29.

Complete the sentence below with one of the choices below: The android RecyclerView depends in its structure on the …………….. widget or container.

a)

ImportView

b)

CardView

c)

LiteItem

d)

DateView

30.

Select one choice of the answers below. What is the name of the part which is represented by the three question marks in this question image?

a)

Map

b)

Menu

c)

Drawer

d)

Spinner

31.

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?

a)

This configuration file includes the https connection settings between your android app and Firebase services

b)

This file includes your username and password for firebase web site

c)

The role of this file is to import the last security updates from firebase web site to the app users

d)

This file checks if the app user’s device has internet connection each time the app user starts it

32.

Firebase offers two cloud-base, client-accessible database solutions. Which of the following choice is a firebase database type?

a)

MapNowRealtime database and SQL

b)

SelectMapSQL and MySQL

c)

Realtime database and Cloud Firestore

d)

GoogleMapCloud Firestore and MySQL

33.

Which of the following android widgets you should use to configure your app interface to display Google Map?

a)

MapNow

b)

SelectMap

c)

MapAPI

d)

GoogleMap

34.

Fill in the blank with the best answer to complete the following sentence: To add a google map marker to a specific location on your app google map, you should have ……………..

a)

The google map marker color hexadecimal code

b)

A city name where this location exists

c)

An image for this location

d)

The latitude and longitude values for this location

35.

Which of two the following answers are correct about adding a button widget to an android activity? (select two answers)

a)

All these answers are correct

b)

You can drag-and-drop a button widget from the palette panel in android studio to your activity interface

c)

From the android studio, click insert menu, then select button

d)

You can open the activity file in the code mode, then add a button by typing the XML code

e)

Add image to your android activity, then change the attribute value to button

36.

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:

a)

format.xml

b)

colors.xml

c)

activity_main.xml

d)

css.xml

37.

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?

a)

send

b)

show

c)

get

d)

push

38.

An android developer has added a webview class to an android app to display an internet website inside an app activity. However, when he runs the 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?

a)

ask the developer to disable the wifi and use mobile data for the android device or emulator to access internet connection

b)

ask the developer to restart his app

c)

ask the developer to add the following tag to the AndroidManifest file in this app : <uses-permission android:name=”android.permission.INTERNET” />

d)

ask the developer to enable the GPS location

39.

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?

a)

rateText is a class used to display the five stars in the rating bar.

b)

rateText is the id value of the TextView widget which is used to display the rating bar value.

c)

rateText is a method used to display the SUBMIT button.

d)

rateText is the text value of the TextView widget which is used to display the

rating bar value.

40.

The Android project files structure in this question image is for an Android app uses a menu to navigate this app activities (interfaces). The menu.xml file includes the menu items. Which of the choices below you will use to display this menu items in your app interface?

a)

menu(R.menu.menu, menu).show

c)

menu.return(R.menu.menu, menu)

d)

menuInflater.inflate(R.menu.menu, menu)

41.

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?

a)

RecyclcerView and SearchView widgets

b)

CardView and SearchView widgets

c)

RecyclerView and FindView widgets

d)

Bottom AppBar and SearchView widgets

42.

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:

a)

activity_main.xml

b)

maps.xml

c)

MainActivity

d)

AndroidManifest.xml

43.

When you right click anywhere on Google map, you should get a shortcut menu similar to the image below. What do the numbers located at the top of this shortcut menu mean? Select the best answer of the choices below:

a)

They are Google map API key and your account number

b)

They are Google map API key and your session number

c)

They are Google map API key and your map fragment number

d)

They are the latitude and longitude coordinate values

44.

The Kotlin code below is added to an Android app to display Google map. Which the choices below is the best answer?

a)

This code will display a red Google map marker (pin) on the Google map and when the app user clicks or taps this marker, he will get a title for this marker which is: CN Tower

b)

This code will display a red Google map marker (pin) on the Google map and this marker has an android logo shape

c)

This code will display a red Google map marker (pin) on the Google map with a title for this marker named: CN Tower

d)

This code will display a red Google map marker (pin) on the Google map and when the app user clicks or taps this marker, he will not see any title

45.

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:

a)

maps.xml file

b)

activity_main.xml file

c)

AndroidManifest.xml file.

d)

APIkeys.xml file