Explore topic-wise MCQs in Technical Programming.

This section includes 108 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

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

A. starting over
B. switching api levels
C. refactoring code
D. multithreading
Answer» E.
2.

If the UI begins to behave sluggishly or crash while making network calls, this is likely due to…

A. network latency
B. hardware malfunctions
C. virus on the server
D. activity manager contains too much.
Answer» B. hardware malfunctions
3.

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

A. intents
B. a content provider
C. network receivers
D. altering permissions
Answer» C. network receivers
4.

The timeline receiver will receive messages from the Android system.

A. true
B. false
Answer» C.
5.

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

A. preferences activity
B. update activity
C. timeline activity
D. status activity
Answer» C. timeline activity
6.

An Android application is a loose collection of content providers, activities, broadcast receivers, and services.

A. true
B. false
Answer» B. false
7.

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

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.
B. he means that the program must always be able to compile.
C. he means that we will work on the program by adding self contained chunks to it so that at every stopping point the application runs as though it were a whole and complete application. each additional chunk simply adds a new functionality to the application.
D. none of the above
Answer» D. none of the above
8.

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

A. all of these and more.
B. location
C. sensor readings
D. wifi? hot spots
Answer» B. location
9.

App Widgets are can be place on the home screen by the user to check for updates are available?

A. true
B. false
Answer» B. false
10.

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

A. always whole and complete
B. small increments
C. lagre increments
D. refactoring code
Answer» D. refactoring code
11.

What will services be used for in the Yamba project?

A. recompile the source code
B. it will update tweets periodically in the background
C. the services will pause the app
D. configures the user interface
Answer» C. the services will pause the app
12.

A good example app should demonstrate most of the aspects of the application framework that are unique to Android.

A. true
B. false
Answer» B. false
13.

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

A. java and sql
B. xml and java
C. xml and c++
D. dreamweaver
Answer» C. xml and c++
14.

What built-in database is Android shipped with?

A. sqlite
B. apache
C. mysql
D. oracle
Answer» B. apache
15.

Lists and adapters are more organizational aids than user interface elements in Android.

A. true
B. false
Answer» B. false
16.

YAMBA stands for Yet Another Mobile Banking App.

A. true
B. false
Answer» C.
17.

There can be only one running activity at a given time.

A. true
B. false
Answer» B. false
18.

Broadcast receivers are Android’s implementation of a system-wide publish/subscribe mechanism, or more precisely, what design pattern?

A. observer
B. facade
C. mediator
D. command
Answer» B. facade
19.

Services have any user interface components

A. true
B. false
Answer» C.
20.

Application contexts are independent of the activity life cycle.

A. true
B. false
Answer» B. false
21.

An activity in a stopped state is doing nothing.

A. true
B. false
Answer» C.
22.

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

A. running state
B. paused state
C. stopped state
D. destroyed state
Answer» C. stopped state
23.

an implicit intent is the sender specifies the type of receiver?

A. true
B. false
Answer» B. false
24.

In an explicit intent, the sender specifies the type of receiver.

A. true
B. false
Answer» C.
25.

Intents

A. are messages that are sent among major building blocks
B. trigger activities to being, services to start or stop, or broadcast
C. are asynchronous
D. all of these
Answer» E.
26.

There is no guarantee that an activity will be stopped prior to being destroyed.

A. true
B. false
Answer» B. false
27.

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

A. starting
B. running
C. destroyed
D. paused
Answer» E.
28.

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

A. starting state
B. running state
C. loading state
D. inexistent state.
Answer» B. running state
29.

What is an Activity?

A. a single screen the user sees on the device at one time
B. a message sent among the major building blocks
C. a component that runs in the background without any interface.
D. context referring to the application environment.
Answer» B. a message sent among the major building blocks
30.

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

A. intents
B. content providers
C. services
D. applications
Answer» D. applications
31.

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

A. closing an app
B. suspending an app
C. opening a new app
D. restoring the most recent app
Answer» D. restoring the most recent app
32.

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

A. stack.xml
B. text.xml
C. strings.xml
D. string.java
Answer» D. string.java
33.

What file is responsible for glueing everthing together , explaining what the applicatin consists of, what its main building blocks are, ext…?

A. layout file
B. strings xml
C. r file
D. manifest file
Answer» E.
34.

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

A. emulator included in android sdk
B. physical android phone
C. third-party emulators (youwave, etc.)
D. all three options will work.
Answer» E.
35.

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

A. java source code.
B. r-file.
C. the emulator.
D. the sdk
Answer» B. r-file.
36.

The Android Software Development Kit (SDK) is all you need to develop applications for Android.

A. true
B. false
Answer» B. false
37.

The manifest explains what the application consists of and glues everything together.

A. true
B. false
Answer» B. false
38.

The ___________ file specifies the layout of your screen.

A. layout file
B. manifest file
C. strings xml
D. r file
Answer» B. manifest file
39.

The Android SDK ships with an emulator.

A. true
B. false
Answer» B. false
40.

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

A. android virtual display
B. android virtual device
C. active virtual device
D. application virtual display
Answer» C. active virtual device
41.

An activity can be thought of as corresponding to what?

A. a java project
B. a java class
C. a method call
D. an object field
Answer» C. a method call
42.

The R file is a(an) generated file

A. automatically
B. manually
C. emulated
D. none of the above
Answer» B. manually
43.

How is a simulator different from an emulator?

A. emulators are only used to play old snes games, simulators are used for software development
B. the emulator is shipped with the android sdk and third party simulators are not
C. the emulator can virtualize sensors and other hardware features, while the simulator cannot
D. the emulator imitates the machine executing the binary code, rather than simulating the behavior of the code at a higher level.
Answer» E.
44.

The Emulator is identical to running a real phone EXCEPT when emulating/simulating what?

A. telephony
B. applications
C. sensors
D. the emulator can emulate/simulate all aspects of a smart phone.
Answer» D. the emulator can emulate/simulate all aspects of a smart phone.
45.

Your Java source code is what is directly run on the Android device.

A. true
B. false
Answer» C.
46.

The emulated device for android.

A. runs the same code base as the actual device, all the way down to the machine layer.
B. is more of a simulator, and acts as a virtual machine for the android device.
C. runs the same code base as the actual device, however at a higher level.
D. an imaginary machine built on the hopes and dreams of baby elephants.
Answer» B. is more of a simulator, and acts as a virtual machine for the android device.
47.

What is contained within the Layout xml file?

A. orientations and layouts that specify what the display looks like.
B. the permissions required by the app.
C. the strings used in the app.
D. the code which is compiled to run the app.
Answer» B. the permissions required by the app.
48.

What is contained within the manifest xml file?

A. the permissions the app requires
B. the list of strings used in the app
C. the source code
D. all other choices
Answer» B. the list of strings used in the app
49.

The R.java file is where you edit the resources for your project.

A. true
B. false
Answer» C.
50.

The AWT and Swing libraries have been removed from the Android library set.

A. true
B. false
Answer» B. false