PRM392 Final Exam with complete
solutions latest version
Which of the following are true statements about the Android apps? (Choose 2
answers)
A. The bulk of these apps are written in C/C++
B. The bulk of these apps are written in Java
C. It's possible to write portions of the apps in C/C++
D. These apps cannot be written in C/C++ - CORRECT ANSWER-BD
Android: How do we execute Queries?
Select one:
a. rawQuery()/query()
b. doQuery()
c. query()
d. rawQuery() - CORRECT ANSWER-A
Which of the following are layout managers provided by Android? (Choose 3 answers)
A. LinearLayoutManager
B. GridLayoutManager
C. CircularLayoutManager
D. StaggeredGridLayoutManager - CORRECT ANSWER-ABD
To share data for other application, the other application must be using ________ to
access data from content provider.
Select one:
a. Content Uri
b. Content provider name
c. Data model
d. Path to data file - CORRECT ANSWER-A
Which file contain Android permissions for and application?
Select one:
a. Manifest.xml
b. ApplicationManifest.xml
c. AndroidManifest.xml
BRAINSCAPE1
, BRAINSCAPE1
d. Permission.xml - CORRECT ANSWER-C
How many type of Android service do we have?
Select one:
a. 3
b. 2
c. 4
d. 1 - CORRECT ANSWER-C
Use of the video capture intent involves to implementation of code to call the intent
activity and a method to handle the return from the activity. The Android built-in video
recording intent is represented by
Select one:
a. MediaStore.ACTION_VIDEO_RECORD
b. MediaStore.ACTION_VIDEO_CAPTURE
c. MediaStore.ACTION_IMAGE_CAPTURE
d. MediaStore.ACTION_MEDIA_CAPTURE - CORRECT ANSWER-B
In class SQLiteOpenHelper class, there are 2 methods we should usually override.
What are they?
Select one:
a. onCreate() and onDestroy()
b. onStart() and onStop()
c. onStart() and onResume()
d. onCreate() and onUpgrade() - CORRECT ANSWER-D
To access through the result of database query, we can use class:
Select one:
a. Iterator
b. Cursor
c. Dataset
d. DataTable - CORRECT ANSWER-B
Which element use to define a permission in Android?
Select one:
a. user-permission
b. uses-permission
c. using-permission
d. define-permission - CORRECT ANSWER-B
Which of following statement is true?
Select one:
a. When an activity start sub-activity, the sub-activity can send data back by finish()
method and activity can get data by onActivityResult() method
b. When an activity start sub-activity, the sub-activity can send data back by onFinish()
method and activity can get data by onActivityFinish() method
BRAINSCAPE1
, BRAINSCAPE1
c. When an activity start sub-activity, the sub-activity can send data back by finish()
method and activity can get data by onFinish() method
d. When an activity start sub-activity, the sub-activity can send data back by onFinish()
method and activity can get data by ActivityResult() method - CORRECT ANSWER-A
Do we need API key for displaying Google Maps in Android?
Select one:
a. Optional
b. Yes
c. No - CORRECT ANSWER-B
Which method perform a single SQL statement that does NOT return result data.
Select one:
a. doQuery()
b. query()
c. execSQL()
d. rawQuery() - CORRECT ANSWER-C
Android: Which attribute will be used in XML if the Java code needs a reference to
View?
Select one:
a. android: id
b. android: index
c. android: gravity
d. android: background - CORRECT ANSWER-A
A call to the _________ method of the ActivityCompat class will return a true result if the
user has previously denied a request for the specified permission, and a false result if
the request has not previously been made.
Select one:
a. shouldShowRequestPermissionRationale()
b. isPermissionGranted()
c. isPermissionDenied()
d. isPermissionGrantedByUser() - CORRECT ANSWER-A
Which method use to check permission is granted by user or not?
Select one:
a. checkPermission()
b. checkSelfPermission()
c. checkGrantedPermission()
d. checkUserPermission() - CORRECT ANSWER-B
Which one is NOT a multi-windows mode?
Select one:
a. Freeform mode
b. Split-screen mode
BRAINSCAPE1