ANDROID QUIZ DESCRIPTION

Which of the following method is used by services to clean up any services? 

  • onStop() method 
     

  •  stopService() method 
     

  •  onDestroy() method 
     

  •  stopSelf() method 

Which of the following method in android is used to log debug messages? 

  •  Log.r() 
     

  • Log.R() 
     

  •  Log.d() 
     

  •  Log.D() 

Which of the following class in android displays information for a short 
period of time and disappears after some time? 

  • toast class 

  • log class 

  • maketest class 

  • None of the above

How many orientations do android support? 


  •  

  •  10 
     

  •  2 
     

  • None of the above 

What is contained in manifest.xml? 

  • Source code 

  • List of strings used in the app 

  • Permission that the application requires 

  • None of the above 

Which of the following is the parent class of Activity? 

  • context 

  • object 

  •  contextThemeWrapper 

  • None of the above 

What are commands needed to create APK in android? 

  • No need to write any commands 
     

  •  Create apk_android in the command line 
     

  •  Javac,dxtool, aapt tool, jarsigner tool, and zipalign 
     

  • None of the above 

Which of the following is not an activity lifecycle callback method? 

  • onClick() method 

  • onCreate() method 

  • onStart() method 

  • onBackPressed() method 

In which state the activity is, if it is not in focus, but still visible on the 
screen? 

  • Stopped state 

  • Destroyed state 

  • Paused state 

  • Running state 

Which of the following is contained in the src folder? 

  • XML 

  • Java source code 

  • Manifest 

  • None of the above 

Does android support other languages than java? 

  • Yes 

  • No

  • May be 

  • Can't say 

 On which of the following, developers can test the application, during 
developing the android applications? 

  • Third-party emulators 

  • Emulator included in Android SDK 

  • Physical android phone 

  • All of the above 

Which of the following is not a nickname of any android version? 

  • Donut 

  • Muffin 

  • Honeycomb 

  • Cupcake 

How to store heavily structured data in android? 

  • Shared Preferences 
     

  • Cursor 
     

  • SQLite database 
     

  •  Not possible 

What is LastKnownLocation in android? 

  • To find the last location of a phone 
     

  • To find the known location of a phone 
     

  • To find the last known location of a phone. 
     

  •  None of the above 

For which of the following Android is mainly developed? 

  • Servers 

  • Desktops 

  • Laptops 

  • Mobile devices 

What does API stand for? 

  • Application Programming Interface 

  • Android Programming Interface 

  • Android Page Interface 

  • Application Page Interface 

What is a GCM in android? 

  • Google Cloud Messaging for chrome 
     

  • Goggle Count Messaging 
     

  •  Google Message pack 
     

  •  None of the above 

How many sizes are supported by Android? 

  • Android supported all sizes 
     

  •  Android does not support all sizes 
     

  • Android supports small, normal, large, and extra-large sizes 
     

  • Size is undefined in android 

How can we kill an activity in android? 

  • Using finish() method 

  • Using finishActivity(int requestCode) 

  • Both (a) and (b) 

  • Neither (a) nor (b) 

Which of the following virtual machine is used by the Android operating 
system? 

  • JVM 

  • Dalvik virtual machine 

  • Simple virtual machine 

  • None of the above 

Can a class be immutable in android? 

  • No, it can't 
     

  • Yes, Class can be immutable 
     

  • Can't make the class as final class 
     

  •  None of the above 

Which of the following is the name of the Android version 1.5? 

  • Eclair 

  • Froyo 

  • Cupcake 

  • Donut 

 In Android studio, which of the following callback is called when an 
activity starts interacting with the user? 

  • onDestroy 

  • onCreate 

  • onResume 

  • onStop 

Android web browser is based on 

  • Firefox 
     

  • Safari 
     

  • Open source Webkit 
     

  •  Chrome 

Which of the following is the API level of Android version 5.0? 

  • 21

  • 20

  • 11

  • 41

What is an APK in android? 

  • Android packages 
     

  • Android pack 
     

  • Android packaging kit 
     

  • None of the above. 

Is it true that "There can be only one running activity at a given time"? 

  • True 

  • False 

  • May be 

  • Can't say 

What is the difference between content values and cursor in android SQLite? 

  • Content values are key pair values, which are updated or inserted into the 
    database. 
     

  •  Cursor is used to store the temporary result. 
     

  •  A & B 
     

  • Cursor is used to store data permanently. 
     

Which media format is not supported by Android? 

  • MIDI 
     

  •  AVI
     

  • MPEG 
     

  • AVI