wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

IT 413 -Online Final Exam

Total questions: 40

Worksheet time: 1hrs 20mins

Name
Class
Date
1.

What is Android activity?

a)

It is basically a page or a form on the apps.

b)

It is the device use to install apps

c)

This manages the content of your device

d)

None of the above

2.

How many Callback method Activity life cycle have?

a)

5

b)

6

c)

7

d)

8

3.

Which of the following is NOT included in activity life cycle?

a)

onPause()

b)

onSave()

c)

onStart()

d)

onRestart()

4.

Which of the following is NOT an Android component?

a)

Activity

b)

Broadcast Receiver

c)

Views

d)

Service

5.

Which method is used to start another activity?

a)

startSubActivity()

b)

startActivityForResult()

c)

startIntent()

d)

startActivity()

6.

This method in activity lifecycle will be called once the activity is no longer visible.

a)

onStop()

b)

onHide()

c)

onPause()

d)

onDestroy()

7.

Which of the following is the correct code to start ActivityB from ActivityA?

a)

Intent intent = new intent(ActivityA.this,ActivityB.class);

startActivity(intent);

b)

Intent intent = new Intent(new ActivityB());

startActivity(intent);

c)

intent intent = new Intent (ActivityA.class, ActivityB.class);

startActivity(intent);

d)

Intent intent = new intent(this, new ActivityB());

startActivity(intent);

8.

What does the following code do?

Intent intent = new Intent(Intent.ACTION_DIAL,

Uri.parse("tel: 0917-6199164"));

startActivity(intent);

a)

The code will do nothing

b)

This will let the phone dialer be called explicitly

c)

This will let the android system find an activity that can handle the intent

d)

It will not execute, there is a syntax error

9.

Which method is used to close an activity after getting a result?

a)

destroy()

b)

close()

c)

exit()

d)

finish()

10.

Which callback method will be called after the activity has been stopped, and it is about to again.

a)

onDestroy()

b)

onResume()

c)

onRestart()

d)

onStop()

11.

What does the following code do?

Intent intent = new Intent(ActivityA.this,ActivityB.class);

a)

Creates an explicit intent

b)

Starts an activity

c)

Creates an implicit intent

d)

None of the above

12.

It is the mechanism used to allow an activity to invoke another activity.

a)

Activity

b)

Services

c)

Intent

d)

Fragment

13.

This method will tell the system which would be the frontend of the backend.

a)

MainActivity.class

b)

setContentView()

c)

activity_main.xml

d)

Constraint

14.

This file serves as the backend of the activity.

a)

MainActivity.class

b)

Constraint

c)

activity_main.xml

d)

setContentView()

15.

It is a Linux-based mobile OS that rapidly became Apple's largest mobile device market competitor.

a)

Windows Phone OS

b)

BlackBerry OS

c)

Android Google OS

d)

IOS

16.

A linearLayout means:

a)

It aligns all children in a relative position.

b)

It aligns all children in a flexible position.

c)

It aligns all children in a vertical or horizontal within a single direction.

d)

It designed to block out an area on the screen to display a single item.

17.

A RelativeLayout means:

a)

It aligns all children in a relative position.

b)

It aligns all children in a flexible position.

c)

It aligns all children in a vertical or horizontal within a single direction.

d)

It designed to block out an area on the screen to display a single item.

18.

A FrameLayout means:

a)

It aligns all children in a relative position.

b)

It aligns all children in a flexible position.

c)

It aligns all children in a vertical or horizontal within a single direction.

d)

It designed to block out an area on the screen to display a single item.

19.

In Android Studio, dependencies allows us to:

a)

Insert small images in our android project.

b)

defines the structure and metadata of our application, its components, and its requirements.

c)

Include an external library or local jar files in our Android project, or other library modules.

d)

All of the Above

20.

When adding comment to a XML file, you must;

a)

Place a comment tag like this:

// This is a comment. //

b)

Place a comment tag like this:

<!--This is a comment. -->

c)

Place a comment tag like this:

!-- This is a comment. --!

d)

Place a comment tag like this:

* This is a comment. *

21.

When adding comment to a JAVA file, you must;

a)

Place a comment tag like this:

// This is a comment. //

b)

Place a comment tag like this:

<!--This is a comment. -->

c)

Place a comment tag like this:

!-- This is a comment. --!

d)

Place a comment tag like this:

* This is a comment. *

22.

Android Event listener means:

a)

It is a general-purpose build tool

b)

It is a component that is used to perform operations on the background.

c)

It is procedure in a program that waits for an event to occur.

d)

All of the Above

23.

Which is the correct syntax of Android Toast?

a)

Toast.makeText( "message", duration).show();

b)

Toast.makeText(context, "message").show();

c)

Toast.makeText("message",context , duration).show();

d)

Toast.makeText(context, "message", duration).show();

24.

This component provides simple feedback messages in a small popup about an operation.

a)

Android Callback Method

b)

Android Fragment

c)

Android Toast

d)

Android Comment

25.

Each stage of the activity lifecycle has a corresponding method associated with it called?

a)

Android Callback Method

b)

Android Fragment

c)

Android Toast

d)

Android Comment

26.

True or False: Activity is basically a page or a form and It has its own life.

a)

True

b)

False

27.

Another activity can start an activity. By doing this, the system temporarily stops the previous activity and places it in a stack called?

a)

Singe Stack

b)

Previous Stack

c)

Back Stack

d)

Forward Stack

28.

What does onCreate() do?

a)

This method is called after the activity has been stopped, and it is about to again.

b)

This method is called before the activity becomes visible to the user.

c)

This method is called after the activity has been stopped, and it is about to again.

d)

In this state, the activity is created.

29.

What does onStart() do?

a)

This method is called after the activity has been stopped, and it is about to again.

b)

This method is called before the activity becomes visible to the user.

c)

This method is called after the activity has been stopped, and it is about to again.

d)

In this state, the activity is created.

30.

This is the final callback method.

a)

onStop()

b)

onStart()

c)

onDestroy()

d)

onPause()

31.

The Intent can perform the following scenarios:

a)

Starting a new activity

b)

Passing the data to another activity

c)

Start a background process (Service

d)

All of the Above

32.

This Intent used to ask the Android system which activity can handle the user request.

a)

Implicit Intent

b)

Explicit Intent

c)

Onplicit Intent

d)

Export Intent

33.

This Intent used to call a specific component using a valid class name.

a)

Implicit Intent

b)

Explicit Intent

c)

Onplicit Intent

d)

Export Intent

34.

This object acts as the bridge between the AdapterView and this view's underlying data.

a)

ViewGroup

b)

Intent

c)

Adapter

d)

View

35.

if you have a list of single items that are backed up by an array, you must;

a)

use Android BaseAdapter

b)

use Android ArrayAdapter

c)

use Android SimpleAdapter

d)

use Android Custom SimpleAdapter

36.

When you click an item in the AdapterView, it means you're using;

a)

AdapterView.OnItemSelectedListener

b)

AdapterView.OnItemClickListener

c)

AdapterView.OnItemLongClickListener

37.

When an item in the AdapterView has been selected, it means you're using;

a)

AdapterView.OnItemSelectedListener

b)

AdapterView.OnItemClickListener

c)

AdapterView.OnItemLongClickListener

38.

True or False: Google selects Java programming because it runs on a VM, o it doesn't have to be recompiled for every phone out there.

a)

True

b)

False

39.

True or False: Google selects Java programming because Java has huge open source support and tools that are available to make developers life easier.

a)

True

b)

False

40.

True or False: Google selects Java programming because Java allows developers to create application with minimal security that can take down your entire OS.

a)

True

b)

False