Android Quiz 5 : Android Test : Test Your Android Knowledge Part 5

Android Quiz 5 : Android Test : Test Your Android Knowledge Part 5

Android Quiz 5

Android Quiz 5 is about testing your android basic, Topics covered in the quiz is as follow. Android activity life cycle, android service and android activity, android activity stack and its utilization, android intent, how to access android resource programmatically and in layout, application context, many more..

Best Luck..

Android Test 5 : Test Your Android Knowledge

1.
When an Activity first starts, the _____________ method is called
  /src/package
  onCreate()
  True
  /res/layout
 
2.
__________ is used in case task is very lengthy or need to be done regularly.
  Service
  versionName
  Ctrl + Shift + O
  Import
 
3.
public class extends Activity is first line of each source file ?
  False
  Open Handset Alliance
  Activity
  onCreate()
 
4.
The Android operating system keeps track of all Activity objects running by placing them on an ___________
  Activity Stack
  onPause()
  Project
  Import
 
5.
An Android application is a collection of tasks, each of which is called a _________
  R.drawable.image1
  Project
  Activity
  /res/values
 
6.
When the Activity reaches the top of the activity stack and becomes the foreground process, the ___________ method is called
  versionName
  Activity
  Activity
  onResume()
 
7.
Passing Additional Information Using Intents which method is used ?
  /res/drawable
  putExtra
  /res/layout
  Window
 
8.
getResources().getString(R.string.hello) is correct way to access string resource in source file.
  Activity
  True
  Ctrl + Shift + O
  /res/drawable
 
9.
When anotherActivitymoves to the top of the activity stack, the currentActivityis informed that it is being pushed down the activity stack by way of the ___________ method
  R.string.mystr1
  Window
  onPause()
  Android Virtual Device
 
10.
__________ is used to Retrieve application context.
  Refactor -> Rename
  getApplicationContext()
  Service
  /res/drawable
 
 
Prepared by Adarsh Patel

 

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative