Вы находитесь на странице: 1из 81

https://www.enggwave.

com/android-online-test-2

Time limit: 00:21:05

1. 1 points

1.

Which are the screen sizes in Android?

o A) small

o B) normal

o C) large

o D) all of the above

2. 1 points

2.

Once installed on a device, each Android application lives in_______?

o A) device memory

o B) external memory

o C) security sandbox
o D) none of the above

3. 1 points

3.

Parent class of Service?

o A) Object

o B) Context

o C) ContextWrapper

o D) ContextThemeWrapper

4. 1 points

4.

What are the Direct subclasses of Activity?

o A) ListActivity

o B) ActivityGroup

o C) FragmentActivity
o D) all the aove

5. 1 points

5.

What are the indirect Direct subclasses of Activity?

o A) launcherActivity

o B) preferenceActivity

o C) tabActivity

o D) all the above

6. 1 points

6.

When contentProvider would be activated?

o A) using Intent

o B) using SQLite

o C) using ContentResolver
o D) none of the above

7. 1 points

7.

How many ways to start services?

o A) started

o B) bound

o C) a&b

o D) messenger

8. 1 points

8.

If your service is private to your own application and runs in the same
process as the client (which is common), you should create your interface
by extending the ________class?

o A) messenger

o B) binder

o C) AIDL
o D) none of the above

9. 1 points

9.

Which one is NOT related to fragment class?

o A) dialogFragment

o B) listFragment

o C) preferenceFragment

o D) cursorFragment

10. 1 points

10.

Which are the screen densities in Android?

o A) low density

o B) medium density

o C) extra high density


o D) all of the above

11. 1 points

11.

Which component is not activated by an Intent?

o A) activity

o B) services

o C) contentProvider

o D) broadcastReceiver

12. 1 points

12.

Definition of Loader?

o A) loaders make it easy to synchronously load data in an


activity or fragment.

o B) loaders make it easy to asynchronously load data in an


activity or fragment.
o C) loaders does not make it easy to asynchronously load data
in an activity or fragment.

o D) none of the above.

13. 1 points

13.

Parent class of Activity?

o A) object

o B) context

o C) activityGroup

o D) contextThemeWrapper

14. 1 points

14.

You can shut down an activity by calling its _______ method

o A) onDestory()

o B) finishActivity()
o C) finish()

o D) none of the above

15. 1 points

15.

What is the difference between Activity context and Application Context?

o A) The Activity instance is tied to the lifecycle of an Activity.


while the application instance is tied to the lifecycle of the
application,

o B) The Activity instance is tied to the lifecycle of the


application, while the application instance is tied to the lifecycle of
an Activity.

o C) The Activity instance is tied to the lifecycle of the Activity,


while the application instance is tied to the lifecycle of an
application.

o D) none of the above

16. 1 points

16.

What are the indirect Direct subclasses of Services?


o A) recognitionService

o B) remoteViewsService

o C) spellCheckerService

o D) inputMethodService

17. 1 points

17.

Characteristics of the Loaders?

o A) they are available to every Activity and Fragment.

o B) they provide asynchronous loading of data.

o C) they monitor the source of their data and deliver new


results when the content changes.

o D) all of the above.

18. 1 points

18.

Which of the important device characteristics that you should consider as


you design and develop your application?
o A) screen size and density

o B) input configurations

o C) device features

o D) all the above

19. 1 points

19.

If you need your interface to work across different processes, you can
create an interface for the service with a ________?

o A) Binder

o B) Messenger

o C) AIDL

o D) b or c

20.1 points

20.

Layouts in android?
o A) Frame Layout

o B) Linear Layout

o C) Relative Layout

o D) All of the above

Results
Marks : 13 of 20 questions answered correctly

Total number of questions : 20

Number of currect answered : 13

Your time :
00:04:12

You have reached 13 of 20 points, (65%)

 Thank you for submitting online test!

1. 1 points

1.

Which are the screen sizes in Android?


o A) small

o B) normal

o C) large

o D) all of the above

Correct

Answer : D

No answer description.

2. 1 points

2.

Once installed on a device, each Android application lives in_______?

o A) device memory

o B) external memory

o C) security sandbox

o D) none of the above

Correct
Answer : C

No answer description

3. 1 points

3.

Parent class of Service?

o A) Object

o B) Context

o C) ContextWrapper

o D) ContextThemeWrapper

Incorrect

Answer : C

No answer description.

4. 1 points

4.

What are the Direct subclasses of Activity?

o A) ListActivity
o B) ActivityGroup

o C) FragmentActivity

o D) all the aove

Correct

Answer : D

No answer description.

5. 1 points

5.

What are the indirect Direct subclasses of Activity?

o A) launcherActivity

o B) preferenceActivity

o C) tabActivity

o D) all the above

Correct

Answer : D
No answer description.

6. 1 points

6.

When contentProvider would be activated?

o A) using Intent

o B) using SQLite

o C) using ContentResolver

o D) none of the above

Correct

Answer : C

No answer description.

7. 1 points

7.

How many ways to start services?

o A) started
o B) bound

o C) a&b

o D) messenger

Correct

Answer : C

No answer description.

8. 1 points

8.

If your service is private to your own application and runs in the same
process as the client (which is common), you should create your interface
by extending the ________class?

o A) messenger

o B) binder

o C) AIDL

o D) none of the above

Correct
Answer : B

No answer description.

9. 1 points

9.

Which one is NOT related to fragment class?

o A) dialogFragment

o B) listFragment

o C) preferenceFragment

o D) cursorFragment

Incorrect

Answer : D

No answer description.

10. 1 points

10.

Which are the screen densities in Android?

o A) low density
o B) medium density

o C) extra high density

o D) all of the above

Correct

Answer : D

No answer description.

11. 1 points

11.

Which component is not activated by an Intent?

o A) activity

o B) services

o C) contentProvider

o D) broadcastReceiver

Correct

Answer : C
No answer description.

12. 1 points

12.

Definition of Loader?

o A) loaders make it easy to synchronously load data in an


activity or fragment.

o B) loaders make it easy to asynchronously load data in an


activity or fragment.

o C) loaders does not make it easy to asynchronously load data


in an activity or fragment.

o D) none of the above.

Incorrect

Answer : B

No answer description.

13. 1 points

13.

Parent class of Activity?


o A) object

o B) context

o C) activityGroup

o D) contextThemeWrapper

Incorrect

Answer : D

No answer description.

14. 1 points

14.

You can shut down an activity by calling its _______ method

o A) onDestory()

o B) finishActivity()

o C) finish()

o D) none of the above

Incorrect
Answer : C

No answer description.

15. 1 points

15.

What is the difference between Activity context and Application Context?

o A) The Activity instance is tied to the lifecycle of an Activity.


while the application instance is tied to the lifecycle of the
application,

o B) The Activity instance is tied to the lifecycle of the


application, while the application instance is tied to the lifecycle of
an Activity.

o C) The Activity instance is tied to the lifecycle of the Activity,


while the application instance is tied to the lifecycle of an
application.

o D) none of the above

Incorrect

Answer : A

No answer description.

16. 1 points
16.

What are the indirect Direct subclasses of Services?

o A) recognitionService

o B) remoteViewsService

o C) spellCheckerService

o D) inputMethodService

Correct

Answer : D

No answer description.

17. 1 points

17.

Characteristics of the Loaders?

o A) they are available to every Activity and Fragment.

o B) they provide asynchronous loading of data.

o C) they monitor the source of their data and deliver new


results when the content changes.
o D) all of the above.

Correct

Answer : D

No answer description.

18. 1 points

18.

Which of the important device characteristics that you should consider as


you design and develop your application?

o A) screen size and density

o B) input configurations

o C) device features

o D) all the above

Correct

Answer : D

No answer description.

19. 1 points
19.

If you need your interface to work across different processes, you can
create an interface for the service with a ________?

o A) Binder

o B) Messenger

o C) AIDL

o D) b or c

Incorrect

Answer : D

No answer description.

20.1 points

20.

Layouts in android?

o A) Frame Layout

o B) Linear Layout

o C) Relative Layout
o D) All of the above

Correct

Answer : D

No answer description.

Results
Marks : 10 of 20 questions answered correctly

Total number of questions : 20

Number of currect answered : 10

Your time :
00:06:15

You have reached 10 of 20 points, (50%)

 Thank you for submitting online test!

1. 1 points

1.

Dialog classes in android?

o A) AlertDialog
o B) ProgressDialog

o C) DatePickerDialog

o D) All of the above

Correct

Answer : D

No answer description.

2. 1 points

2.

Difference between android api and google api?

o A) The google API includes Google Maps and other Google-


specific libraries. The Android one only includes core android
libraries.

o B) The google API one only includes core android libraries.


The Android includes Google Maps and other Google-specific
libraries.

o C) Both a&b

o D) None of the above


Correct

Answer : A

No answer description.

3. 1 points

3.

Which piece of code used in Android is not open source?

o A) Keypad driver

o B) WiFi? driver

o C) Audio driver

o D) Power management

Correct

Answer : B

No answer description.

4. 1 points

4.

Creating a UI (User Interface) in Android requires careful use of…


o A) Java and SQL

o B) XML and Java

o C) XML and C++

o D) Dream weaver

Correct

Answer : B

No answer description.

5. 1 points

5.

What will services be used for in the Yamba project?

o A) Recompile the source code

o B) It will update tweets periodically in the background

o C) The services will pause the app

o D) Configures the user interface

Incorrect
Answer : B

No answer description.

6. 1 points

6.

While developing Android applications, developers can test their apps on…

o A) Emulator included in Android SDK

o B) Physical Android phone

o C) Third-party Emulators (Youwave, etc.)

o D) All three options will work

Correct

Answer : D

No answer description.

7. 1 points

7.

The Emulator is identical to running a real phone EXCEPT when


emulating/simulating what?
o A) Telephony

o B) Applications

o C) Sensors

o D) The emulator can emulate/simulate all aspects of a smart


phone.

Incorrect

Answer : C

No answer description.

8. 1 points

8.

Which among these are NOT a part of Android’s native libraries?

o A) Webkit

o B) Dalvik

o C) OpenGL

o D) SQLite
Correct

Answer : B

No answer description.

9. 1 points

9.

What file is responsible for glueing everything together, explaining what


the application consists of, what its main building blocks are, ext.…?

o A) Layout file

o B) Strings XML

o C) R file

o D) Manifest file

Correct

Answer : D

No answer description.

10. 1 points

10.

Which of these are not one of the three main components of the APK?
o A) Dalvik Executable

o B) Resources

o C) Native Libraries

o D) Webkit

Incorrect

Answer : D

No answer description.

11. 1 points

11.

How does Gargenta approach the problem of the app acting sluggishly due
to network latency?

o A) Starting over

o B) Switching API levels

o C) Refactoring code

o D) Multithreading
Correct

Answer : D

No answer description.

12. 1 points

12.

If you want share the data across the all applications ,you should go for?

o A) Shared Preferences

o B) Content provider

o C) Internal Storage

o D) SQLite Databases

Incorrect

Answer : B

No answer description.

13. 1 points

13.

What is the name of the program that converts Java byte code into Dalvik
byte code?
o A) Android Interpretive Compiler (AIC)

o B) Dalvik Converter

o C) Dex compiler

o D) Mobile Interpretive Compiler (MIC)

Incorrect

Answer : C

No answer description.

14. 1 points

14.

When the activity is not in focus, but still visible on the screen it is in?

o A) running state

o B) stopped state

o C) paused state

o D) destroyed state

Correct
Answer : C

No answer description.

15. 1 points

15.

Android tries hard to _____low-level components, such as the software


stack, with interfaces so that vendor-specific code can be managed easily.

o A) confound

o B) absract

o C) modularize

o D) compound

Incorrect

Answer : B

No answer description.

16. 1 points

16.

If the UI begins to behave sluggishly or crash while making network calls,


this is likely due to…
o A) Network latency

o B) Hardware malfunctions

o C) Virus on the Server

o D) Activity manager contains too much.

Incorrect

Answer : A

No answer description.

17. 1 points

17.

What was the main reason for replacing the Java VM with the Dalvik VM
when the project began?

o A) There was not enough memory capability

o B) Java virtual machine was not free

o C) Java VM was too complicated to configure

o D) Java VM ran too slow


Incorrect

Answer : B

No answer description.

18. 1 points

18.

How is a simulator different from an emulator?

o A) Emulators are only used to play old SNES games,


simulators are used for software development

o B) The emulator is shipped with the Android SDK and third


party simulators are not

o C) The emulator can virtualize sensors and other hardware


features, while the simulator cannot

o D) The emulator imitates the machine executing the binary


code, rather than simulating the behaviour of the code at a higher
level

Incorrect

Answer : D

No answer description.
19. 1 points

19.

The XML file that contains all the text that your application uses.

o A) stack.xml

o B) text.xml

o C) strings.xml

o D) string.java

Correct

Answer : C

No answer description.

20.1 points

20.

What year was the Open Handset Alliance announced?

o A) 2005

o B) 2006
o C) 2007

o D) 2008

Incorrect

Answer : C

No answer description.

Results
Marks : 13 of 20 questions answered correctly

Total number of questions : 20

Number of currect answered : 13

Your time :
00:07:54

You have reached 13 of 20 points, (65%)

 Thank you for submitting online test!

1. 1 points

1.

When an activity doesn’t exist in memory it is in


o A) Starting state

o B) Running state

o C) Loading state

o D) Inexistent state

Correct

Answer : A

No answer description.

2. 1 points

2.

What was the first phone released that ran the Android OS?

o A) Google gPhone

o B) T-Mobile G1

o C) Motorola Droid

o D) HTC Hero

Incorrect
Answer : B

No answer description.

3. 1 points

3.

Which one is not a nickname of a version of Andriod?

o A) cupcake

o B) Gingerbread

o C) Honeycomb

o D) Muffin

Correct

Answer : D

No answer description.

4. 1 points

4.

The emulated device for android


o A) Runs the same code base as the actual device, all the way
down to the machine layer

o B) Is more of a simulator, and acts as a virtual machine for


the Android device

o C) Runs the same code base as the actual device, however at


a higher level

o D) An imaginary machine built on the hopes and dreams of


baby elephants

Correct

Answer : A

No answer description.

5. 1 points

5.

Which of the following is NOT a state in the lifecycle of a service?

o A) Starting

o B) Running

o C) Destroyed
o D) Paused

Correct

Answer : D

No answer description.

6. 1 points

6.

Which of the following is NOT an activity we will be creating for the YAMBA
project?

o A) Preferences Activity

o B) Update Activity

o C) Timeline Activity

o D) Status Activity

Incorrect

Answer : B

No answer description.

7. 1 points
7.

What is contained within the manifest xml file?

o A) The permissions the app requires

o B) The list of strings used in the app

o C) The source code

o D) All other choices

Correct

Answer : A

No answer description.

8. 1 points

8.

The ___________ file specifies the layout of your screen?

o A) Layout file

o B) Manifest file

o C) Strings XML
o D) R file

Correct

Answer : A

No answer description.

9. 1 points

9.

Why the so few users are left with versions 1.0 and 1.1?

o A) The first phones were released with version 1.5

o B) 1.0 and 1.1 had security holes that forced carriers to recall
phones using them

o C) 1.0 and 1.1 are just number designations for the version
Apple’s iPhone is running

o D) Everyone with 1.0 and 1.1 were upgraded to 1.5 over the air
automatically

Correct

Answer : D

No answer description.
10. 1 points

10.

What does the .apk extension stand for?

o A) Application Package

o B) Application Program Kit

o C) Android Proprietary Kit

o D) Android Package

Incorrect

Answer : A

No answer description.

11. 1 points

11.

Which Android version had the greatest share of the market as of January
2011?

o A) 1.1

o B) 1.5
o C) 2.3

o D) 3.4

Incorrect

Answer : B

No answer description.

12. 1 points

12.

How does Google check for malicious software in the Android Market?

o A) Every new app is scanned by a virus scanner

o B) Users report malicious software to Google

o C) Google employees verify each new app

o D) A separate company monitors the Android Market for


Google

Correct

Answer : B

No answer description.
13. 1 points

13.

What is the driving force behind an Android application and that ultimately
gets converted into a Dalvik executable?

o A) Java source code.

o B) R-file.

o C) The emulator

o D) The SDK

Incorrect

Answer : A

No answer description.

14. 1 points

14.

What is contained within the Layout xml file?

o A) Orientations and layouts that specify what the display


looks like
o B) The permissions required by the app

o C) The strings used in the app

o D) The code which is compiled to run the app

Correct

Answer : A

No answer description.

15. 1 points

15.

Intents

o A) are messages that are sent among major building blocks

o B) trigger activities to being, services to start or stop, or


broadcast

o C) are asynchronous

o D) all of those

Correct

Answer : D
No answer description.

16. 1 points

16.

What built-in database is Android shipped with?

o A) SQLite

o B) Apache

o C) MySQL

o D) Oracle

Correct

Answer : A

No answer description.

17. 1 points

17.

When developing for the Android OS, Java byte code is compiled into what?

o A) Java source code


o B) Dalvik application code

o C) Dalvik byte code

o D) C source code

Correct

Answer : C

No answer description.

18. 1 points

18.

What was Google’s main business motivation for supporting Android?

o A) To level the playing field for mobile devices

o B) To directly compete with the iPhone

o C) To corner the mobile device application market for


licensing purposes

o D) To allow them to advertise more

Incorrect

Answer : D
No answer description.

19. 1 points

19.

Status data will be exposed to the rest of the Android system via:

o A) Intents

o B) A content provider

o C) Network receivers

o D) Altering permissions

Incorrect

Answer : B

No answer description.

20.1 points

20.

What is a funny fact about the start of Android?

o A) It was orginaly going to be called UFO


o B) The first version of Android was released without an actual
phone on the market

o C) Androids main purpose was to unlock your car door when


you left the keys inside of it

o D) Was going to be a closed source application to make more


money for its company

Correct

Answer : B

No answer description.

Results

Marks : 14 of 20 questions answered correctly


Total number of questions : 20

Number of currect answered : 14

Your time : 00:05:13

You have reached 14 of 20 points, (70%)

 Thank you for submitting online test!

1. 1 points

1.
Although most people’s first thought when they think of Android is Google,
Android is not actually owned by Google. Who owns the Android platform?

o A) Oracle Technology

o B) Dalvik

o C) Open Handset Alliance

o D) The above statement is and Android is owned by Google

Correct

Answer : C

No answer description.

2. 1 points

2.

Broadcast receivers are Android’s implementation of a system-wide


publish/subscribe mechanism, or more precisely, what design pattern?

o A) Observer

o B) Mediator

o C) Command
o D) Facade

Correct

Answer : A

No answer description.

3. 1 points

3.

Android releases since 1.5 have been given nicknames derived how?

o A) Adjective and strange animal

o B) Food

o C) Something that starts w/ ‘A’ -> Something that starts w/


‘B’…

o D) American states

Correct

Answer : B

No answer description.

4. 1 points
4.

Which of the following is the most “resource hungry” part of dealing with
Activities on Android?

o A) Closing an app

o B) Suspending an app

o C) Opening a new app

o D) Restoring the most recent app

Incorrect

Answer : C

No answer description.

5. 1 points

5.

An activity can be thought of as corresponding to what?

o A) A Java project

o B) A Java class

o C) A method call
o D) An object field

Correct

Answer : B

No answer description.

6. 1 points

6.

What year was development on the Dalvik virtual machine started?

o A) 2003

o B) 2005

o C) 2007

o D) 2006

Incorrect

Answer : B

No answer description.

7. 1 points

7.
As an Android programmer, what version of Android should you use as your
minimum development target?

o A) Versions 1.6 or 2.0

o B) Versions 1.0 or 1.1

o C) Versions 1.2 or 1.3

o D) Versions 2.3 or 3.0

Incorrect

Answer : A

No answer description.

8. 1 points

8.

The android OS comes with many useful system services, which include
processes you can easily ask for things such as your..

o A) All of these and more

o B) Location

o C) Sensor Readings
o D) WiFi? Hot Spots

Correct

Answer : A

No answer description.

9. 1 points

9.

What runs in the background and doesn’t have any UI components?

o A) Intents

o B) Content Providers

o C) Services

o D) Applications

Correct

Answer : C

No answer description.

10. 1 points

10.
Which of the following are not a component of an APK file?

o A) Resources

o B) All of these are components of the APK

o C) Native Libraries

o D) Dalvik executable

Correct

Answer : B

No answer description.

11. 1 points

11.

What is a key difference with the distribution of apps for Android based
devices than other mobile device platform applications?

o A) Applications are distributed by Apple App Store only

o B) Applications are distributed by multiple vendors with


different policies on applications
o C) Applications are distributed by multiple vendors with the
exact same policies on applications

o D) Applications are distributed by the Android Market only

Incorrect

Answer : B

No answer description.

12. 1 points

12.

Android Applications must be signed

o A) After they are installed

o B) Before they are installed

o C) Never

o D) Within two weeks of installation

Correct

Answer : B

No answer description.
13. 1 points

13.

What does the Gargenta mean in his Design Philosophy when he says that
the project will, “Always be whole and complete”?

o A) He means that when we finish the entire project we will


have a working application, even though there will be points along
the way when we will stop and the application will not run

o B) He means that the program must always be able to compile

o C) He means that we will work on the program by adding self-


contained chunks to it so ,Each additional chunk simply adds a new
functionality to the application

o D) None of the above

Correct

Answer : C

No answer description.

14. 1 points

14.

When did Google purchase Android?


o A) 2007

o B) 2005

o C) 2008

o D) 2010

Incorrect

Answer : B

No answer description.

15. 1 points

15.

What operating system is used as the base of the Android stack?

o A) Linux

o B) Windows

o C) Java

o D) XML

Correct
Answer : A

No answer description.

16. 1 points

16.

What part of the Android platform is open source?

o A) low-level Linux modules

o B) all of these answers #The entire stack is an open source


platform

o C) native libraries

o D) application frame work

Correct

Answer : B

No answer description.

17. 1 points

17.

To create an emulator, you need an AVD. What does it stand for?


o A) Android Virtual Display

o B) Android Virtual Device

o C) Active Virtual Device

o D) Application Virtual Display

Correct

Answer : B

No answer description.

18. 1 points

18.

Android is licensed under which open source licensing license?

o A) Gnu’s GPL

o B) OSS

o C) Apache/MIT

o D) Sourceforge

Incorrect
Answer : C

No answer description.

19. 1 points

19.

What is an Activity?

o A) A single screen the user sees on the device at one time

o B) A message sent among the major building blocks

o C) A component that runs in the background without any


interface

o D) Context referring to the application environment

Correct

Answer : A

No answer description.

20.1 points

20.

Android is based on Linux for the following reason


o A) Security

o B) Portability

o C) Networking

o D) All of these

Correct

Answer : D

No answer description.

Results
Marks : 12 of 20 questions answered correctly

Total number of questions : 20

Number of currect answered : 12

Your time :
00:09:56

You have reached 12 of 20 points, (60%)

 Thank you for submitting online test!

1. 1 points
1.

Which of the following function calls can be used to start a Service from
your Android application?

o A) bindService

o B) startService

o C) runService

o D) Both a&b

Correct

Answer : D

No answer description.

2. 1 points

2.

What is the purpose of the ContentProvider class?

o A) To play rich media content files

o B) To create and publish rich media files

o C) To share data between Android applications


o D) To access the global information about an application
environment

Correct

Answer : C

No answer description.

3. 1 points

3.

Which of the following are UI elements that you can use in a window in an
Android application?

o A) TextBox

o B) TextView

o C) EditText

o D) Both b&c

Correct

Answer : D

No answer description.

4. 1 points
4.

Which of the following is/are appropriate for saving the state of an Android
application?

o A) Activity.onFreeze()

o B) Activity.onPause()

o C) Activity.onStop()

o D) Activity.onDestroy()

Correct

Answer : B

No answer description.

5. 1 points

5.

Which of the following would you have to include in your project to use the
APIs and classes required to access the camera on the mobile device?

o A) Import android drivers

o B) Import android hardware camera


o C) Import android camera

o D) Import android util

Incorrect

Answer : B

No answer description.

6. 1 points

6.

Which of the following fields of the Message class should be used to store
custom message codes about the Message?

o A) tag

o B) what

o C) arg1

o D) userData

Incorrect

Answer : B

No answer description.
7. 1 points

7.

What is “Android-dx”?

o A) A command line tool to create Android project files

o B) A framework to create unit tests for Android projects

o C) A tool to generate Android byte code from .class files

o D) A resource editor to create user interface for Android


applications

Incorrect

Answer : C

No answer description.

8. 1 points

8.

Which of the following can be accomplished by using the


TelephoneNumberUtil class?

o A) Save a phone number to the contacts in the phone device


o B) Retrieve a phone number from the contacts in the phone
device

o C) Delete a phone number from the contacts in the phone


device

o D) Format an international telephone number

Correct

Answer : D

No answer description.

9. 1 points

9.

Which of the following can you use to add items to the screen menu?

o A) Activity.onCreateOptionsMenu

o B) Activity.onCreate

o C) Activity.onPrepareOptionsMenu

o D) Both a&b

Correct
Answer : D

No answer description.

10. 1 points

10.

Which of the following would you have to include in your project to use the
SimpleAdapter class?

o A) import android.content

o B) import android.widget

o C) import android.database

o D) import android.database.sqlite

Correct

Answer : B

No answer description.

11. 1 points

11.

What is “Android-Positron”?
o A) A command line tool to create Android project files

o B) A framework to create unit tests for Android projects

o C) A resource editor to create user interface for Android


applications

o D) A tool to generate Android byte code from .class files

Incorrect

Answer : B

No answer description.

12. 1 points

12.

Which of the following can you use to display a progress bar in an Android
application?

o A) ProgressBar

o B) ProgressDialog

o C) ProgressView

o D) Both a&b
Incorrect

Answer : D

No answer description.

13. 1 points

13.

The R file is a(an) generated file

o A) Automatically

o B) Manually

o C) Emulated

o D) none of the above

Correct

Answer : A

No answer description.

14. 1 points

14.

Which of the following is the parent class for the main application class in
an Android application that has a user interface?
o A) MIDLet

o B) AndroidApp

o C) Activity

o D) AppLet

Correct

Answer : C

No answer description.

15. 1 points

15.

Which of the following are classes that can be used to handle the
Bluetooth functionality on a device?

o A) Adapter

o B) Manager

o C) Matcher

o D) BluetoothAdapter
Correct

Answer : D

No answer description.

16. 1 points

16.

Which of the following can be used to bind data from an SQL database to a
ListView in an Android application?

o A) SimpleCursor

o B) SimpleCursorAdapter

o C) SimpleAdapter

o D) SQLiteCursor

Incorrect

Answer : B

No answer description.

17. 1 points

17.

Immediate base class for activity and services


o A) CONTEXT

o B) APPLICATIONCONTEXT

o C) CONTEXTAPP

o D) ONCREATE

Correct

Answer : A

No answer description.

18. 1 points

18.

Which of the following are valid features that you can request using
requestWindowFeature?

o A) FEATURE_NO_TITLE

o B) FEATURE_NO_ICON

o C) FEATURE_RIGHT_ICON

o D) Both a& c
Incorrect

Answer : D

No answer description.

19. 1 points

19.

Which answer is not part of the design philosophy talked about in chapter
five?

o A) Always whole and complete

o B) Small increments

o C) large increments

o D) Refactoring code

Incorrect

Answer : C

No answer description.

20.1 points

20.
Which of the following should be used to save the unsaved data and
release resources being used by an Android application?

o A) Activity.onStop()

o B) Activity.onPause()

o C) Activity.onDestroy()

o D) Activity.onShutdown()

Correct

Answer : C

No answer description.

Вам также может понравиться