PRM392 Final Questions And Answers With Complete Updates
1 view 0 purchase
Course
PRM392
Institution
PRM392
PRM392 Final Questions And Answers With Complete Updates
Which of the following information CANNOT be included in the Manifest file?
A. The activities contain in the application
B. The permissions required by the application
C. The application's minimum SDK version required
D. The handset mode...
PRM392 Final Questions And Answers With Complete
Updates
Which of the following information CANNOT be included in the Manifest file?
A. The activities contain in the application
B. The permissions required by the application
C. The application's minimum SDK version required
D. The handset model compatible with your application
D
Which of the following classes should be extended to create a custom view?
A. View
B. View Group
C. Context
D. Activity
A
Which of the following Activity life-cycle methods is called once the activity is no longer visible?
A. on Stop
B. onPause
C. onDestroy
D. onHide
A
What two methods you have to override when implementing Androif context menus?
A. onCreateOptionsMenu, onCreateContectMenu
B. onCreateContextMenu, onContextItemSelected
C. onCreateOptionsMenu, onOptionsItemSelected
D. onCreateOptionsMenu, onContextItemSelected
B
Which of the following Activity methods is invoked when the user clicks on an options menu item?
A. onItemClicked
B. onItemSelected
C. onOptionsItemClicked
D. onOptionsItemSelected
D
Which of the following is the base class of all UI components?
A. ListView
B. Layout
C. View
D. ViewGroup
,C
What are the main two types of threads in Android?
A. Main thread and worker threads
B. Main thread and UI thread
C. Activities and services
D. Main thread and background process
A
Which of the following is true about method startActivity?
A. It start a new activity and destroys the previous one
B. It start a new activity and sends it to the foreground
C. It start a new activity and resumes the previous one
D. It starts a new activity in a paused madel
B
Which of the following best explains the Android option menus?
A. Its is a popus menu that displays a list of item in a vertical list anchored to the view that invoked
the menu
B. Its is a floating menu that appears when the user performs a long-click on an element. It provides
actions that affect the selected content or contect frame
C. It is the primary collection of menu items for an activity where you should place actions that have
a global on the app, such as "Search," "Compose email," and"Settings"
D. It is a type of List Activity with predefined headers and footers for specialcommands
C
Which of the following perission is necessary for capturing geo-coordinates?
A. android.permission.ACCESS_LOCATION
B. android.permission.ACCESS_LOCATION_FINE
C. android.permission.ACCESS_FINE_LOCATION
D. All answers are incorrect
C
CardView extends from which of the following:
A. RelativeLayout
B. LinearLayout.
C. TableLayout
D. FrameLayout
D
Which of the following adds a click listenes to items in a ListView?
A. setonClickListener
B. setOnItemClickListener
C. setonItemClicked
D. setonLisItemClickListener
,B
Which of the foloowing is true about object arrayAdapter declared in the code below?
String[]items =
{"Item 1","Item 2", "Item 3"};
ArrayAdapter<String>arrayAdapter = new
ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,items);
listView.setAdapter(arrayAdapter);
A. It creates a textView for each String in array items.
B. It creates Buttons for each String in array items.
C. It creates four views for listView
A
Which folder contains XML files?
A. AndroidMainfest
B. resources
C. res
D. java
E. src
C
The DalvikVM core libraries are a subset of which the following?
A. Java ME
B. Java SE
C. Java EE
D. JAX-WS
B
In order to open screenB from screenA and receive data from screenB which sentence should we
use?
A. startActivityForResult
B. startActivity
C. startActivities
D. Both of A and B
A
To reuse rows in ListView, we use
A. Adapter
B. ItemView
C. ViewHolder
D. All of the above
C
From Android 6.0, there is a difference in:
A. Stogage
, B. Permission
C. Database
D. All of the above
B
The command to clear all data in a sharedPreference?
A. remove()
B. delete()
C. clear()
D. destroy()
C
Which layout has alignParent attribute?
A. LinearLayout
B. RelativeLayout
C. CoordinatorLayout
D. All of the above
B
Which component respond to messages from Android system or application?
A. Activity
B. Service
C. BroadcastReceiver
D. Intent
C
Where to declare libraries in Android application?
A. Libs directory
B. Setting.gradle
C. Build.gradle
D. AndroidManifest
C
Which constructor method so you use to create a new explicit Intent?
A. new Intent()
B. new Intent(Context context, Class<?> class)
C. new Intent(String action, Uri uri)
D. new Intent(String action)
B
Which subclass of Fragment displays a vertical list of items that are managed by an adapter?
A. RowsFragment()
B. PreferenceFragment()
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Labtech. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $17.99. You're not tied to anything after your purchase.