100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PRM392 Verified Questions And Answers With Latest Study Solutions $16.99   Add to cart

Exam (elaborations)

PRM392 Verified Questions And Answers With Latest Study Solutions

 1 view  0 purchase
  • Course
  • PRM392
  • Institution
  • PRM392

PRM392 Verified Questions And Answers With Latest Study Solutions Which of the following is CORRECT about the Toast class? (Choose 3 answers) A. You cannot a custom layout for a Toast B. A Toast can only create by an Activity class C. There no need to close or hide a Toast, since it closes auto...

[Show more]

Preview 4 out of 57  pages

  • November 15, 2024
  • 57
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • prm392
  • PRM392
  • PRM392
avatar-seller
Labtech
PRM392 Verified Questions And Answers With Latest
Study Solutions
Which of the following is CORRECT about the Toast class? (Choose 3 answers)
A. You cannot a custom layout for a Toast
B. A Toast can only create by an Activity class
C. There no need to close or hide a Toast, since it closes automatically.
D. A Toast is displayed for only one of the following periods: Toast.LENGHT_SHORT or
Toast.LENGHT_LONG
ACD
Which of the following is INCORRECT about the Log Cat tool? (Choose 3 answers)
A. Log Cat UI tool is available inside Android Studio.
B. You can create a log in your application using Log.v(String, String)
C. Each log message hag a tag
D. Only one of your applications can create log entries, and it should be component class(Activity,
Service,..ect)
ABC
Which of the following information CANNOT be included in the Manifest file?
A. The activities contains 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. ViewGroup
C. Context
D. Activity
A
Which of the following is a correct constructer for ArrayAdapter? (Choose 3 answers)
A. ArayAdapter(Context context)
B. ArayAdapter(Context context, int recourse)
C.ArayAdapter(Context context, int resourse, int textViewResourceId)
D.ArayAdapter(Context context, int ressourse, List<T>items)
BCD
Which of the following Activity life-cycle methods is called once the activity is no longer visible?
A. onStop
B. onPause

,C. onDestroy
D. onHide
A
Which of the following is NOT a correct Android Manifest statement? (Choose 3 answers)
A. <uses-permission android:name="android.Internet"/>
B. <uses-permission android:name="android.Internet"></uses-permission>
C. <uses-permission android:name="android.permission.Internet">
D. <uses-permission android:name="android.permission.Internet"/>
ABC
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
Which of the following is NOT correct about XML layout files? (Choose 3 answers)
A. In order to display a UI in the XML layout file"main.xml", call the setContentView method of the
activity with the parameter string "main.xml"
B. The is no distinction between implementation of the layout definition by code, or by XML layout
file
C. In a project using the ADT plugin, the XML layout file is found in the/res/layoutdirectory
D. Layout information written in thje XML layout file will be converted into code by the Android
platform when the screen is displayed
ABD
The DalvikVM core libraries are a subset of which the following?
A. Java ME
B. Java SE
C. Java EE
D. JAX-WS
B
Choose Android basic components (Choose 2 answers)
A. Activity
B. Content provider
C. RecyclerView
D. Fregment
AB
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 $16.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75632 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$16.99
  • (0)
  Add to cart