mobprog Flashcards

1
Q

The first release of Android with a dessert codename is ___________.

Android 1.2

Android 1.8

Android 1.5

Android 1.0

A

Android 1.5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Google purchased Android in what year?

2012

1999

2005

2001

A

2005

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Each log entry in the LogCat Window has a priority of FATAL, ERROR, WARNING, INFO, DEBUG, or VERBOSE.

True

False

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The Android Emulator simulates Android devices on your computer so that you can test your application on a variety of devices and Android API levels without needing to have each physical device.

True

False

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Manifest is a file that stores the configuration of your application.

True

False

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Consider the given resources below:

<resources>
        <color name = “blue”>#2196f3</color>
        <string name = “myapp”>MyApp</string>
</resources> How will you access the color resource in your Java file?

R.id.blue

@+id/blue

@color/blue

R.color.blue

A

R.color.blue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In Android architecture, Activity Manager falls under ________________.

Android Runtime

Applications

Application Framework

Linux Kernel

A

Application Framework

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

If you want to access an image from your res folder to your Java code, what command you should use?

res/drawable/image

R.res.image

R.id.image

R.drawable.image

A

R.drawable.image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

_______________ are additional files and static content that your code uses, such as bitmaps, layout definitions, etc.

Activities

Resources

Receivers

Services

A

Resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

One of the major update on Android Pie is ______________.

Fingerprint Authentication

Adaptive Brightness

PIP Mode

Material Design

A

Adaptive Brightness

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

To enable USB Debugging mode on our Android device, we need to choose what menu?

Google Account Settings

Connection/Connectivity Settings

Privacy Settings

Developer Options

A

Developer Options

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

This application component dictates the UI and handle the user interaction to the smart
phone screen.

Content Providers

Activities

Broadcast Receivers

Services

A

Activities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The top layer of the android architecture is _______________. The native and third-party
applications like contacts, email, music, gallery, clock, games, etc. whatever we will build
those will be installed on this layer only.

Platform Libraries

Applications

Android Runtime

Application Framework

A

Applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Android 4.4 is also know as _______________.

Pie

Nougat

Marshmallow

Kitkat

A

Kitkat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The Dalvik VM enables every Android application to run in its own process, with its own
instance of the Dalvik virtual
machine.

True

False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

We can create an array of values using XML and use it depending on our application needs.

True

False

A

true

17
Q

When you open an application, onResume() method is called after.

onStart()

onPause()

onStop()

onCreate()

A

OnStart()

18
Q

The onClickListener is an event handler.

True

False

A

FALSE

19
Q

An Android activity represents one screen of the Android application’s user interface.

True

False

A

true

20
Q

You can create your layout in Android using HTML.

True

False

A

FALSE

21
Q

We can create an array of values using XML and use it depending on our application needs.

True

False

A

TRUE

22
Q

When you switch from one activity to another, the first activity will no longer be visible on your screen, in this case, the callback method ___________ is called.

onStop()

onDestroy()

onPause()

onResume()

A

OnStop()

23
Q

View is something that the user can see and interact with.

True

False

A

true

24
Q

An activity class loads all the UI component using the XML file during the _____________ method.

onStart()

onCreate()

onStop()

onResume()

A

onCreate()

25
Q

The onCreate() and onDestroy() methods are called only once throughout the activity lifecycle.

True

False

A

true

26
Q

It is a ViewGroup which is used to specify the position of child View instances relative to each other or relative to the parent.

Relative Layout

Web View

Frame Layout

Linear Layout

A

Relative Layout

27
Q

You can create your layout in Android using HTML.

True

False

A

False

28
Q

We can not instantiate UI elements during runtime.

True

False

A

FALSE

29
Q

When another activity is called within the application, the current activity will call the ___________ method.

onPause()

onStop()

onCreate()

onStart()

A

onPause()

30
Q

TextView is an example of ________.

ViewGroup

Resource ID

Event

View

A

View

31
Q

You implement an activity as a subclass of the Content Provider class.

True

False

A

false

32
Q

It is a ViewGroup which is used to specify the position of child View instances relative to each other or
relative to the parent.

Frame Layout

Web View

Linear Layout

Relative Layout

A

Relative Layout

33
Q

In Android’s activity life cycle, this is the first method that is called when the activity is created.

onStop()

onStart()

onCreate()

onResume()

A

onCreate()

34
Q

The onResume() callback method is called whenever the activity becomes visible to the user.

True

False

A

False

35
Q

Activity is one of the most important component for any android app. Activities are the User Interface (UI) screens which user see.

True

False

A

True