Android Programming (2180715) MCQs

MCQs of The Basics

Showing 101 to 110 out of 114 Questions
101.
In android studio, a service that is started and cannot be stopped even the calling activity is destroyed is _____
(a) startService()
(b) onStop()
(c) onDestroy()
(d) bindService()
Answer:

Option (d)

102.
The android understandable form of code is called _____
(a) JDK
(b) DEX
(c) DVM
(d) API
Answer:

Option (b)

103.
Which of the following is not an Activity lifecycle call-back method?
(a) onStart
(b) onCreate
(c) onPause
(d) onBackPressed
Answer:

Option (d)

104.
During an Activity life-cycle, what is the first callback method invoked by the system?
(a) onStop()
(b) onStart()
(c) onCreate()
(d) onRestore()
Answer:

Option (c)

105.
Which configuration file holds the permission to use the internet?
(a) Layout file
(b) Property file
(c) Java source file
(d) Manifest file
Answer:

Option (d)

106.
"What does the following line of code achieve? Intent intent = new Intent(FirstActivity.this, SecondActivity.class );"
(a) Creates a hidden Intent
(b) Creates an implicit Intent
(c) Create an explicit Intent
(d) Starts an activity
Answer:

Option (d)

107.
Which of the following is NOT a valid usage for Intents?
(a) Activate and Activity
(b) Activate a Service
(c) Activate a Broadcast receiver
(d) Activate a SQLite DB Connection.
Answer:

Option (d)

108.
Which of the following is not a valid Android resource file name?
(a) mylayout.xml
(b) myLayout.xml
(c) my_layout.xml
(d) mylayout1.xml
Answer:

Option (b)

109.
Which of these is not defined as a process state?
(a) Non-visible
(b) Visible
(c) Foreground
(d) Background
Answer:

Option (a)

110.
What is the name of the folder that contains the R.java file?
(a) src
(b) res
(c) bin
(d) gen
Answer:

Option (d)

Showing 101 to 110 out of 114 Questions