1. Which inputType opens the numeric phone keypad?
- date
- phone
- text
- textEmailAddress
Answer: B) phone
Explanation: inputType="phone" displays the dial pad keyboard.
MCQs / Computer Science / Lab: Implicit Intents – Browser and Dialer
12 multiple-choice questions on Lab: Implicit Intents – Browser and Dialer from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.
Answer: B) phone
Explanation: inputType="phone" displays the dial pad keyboard.
Answer: A) textUri
Explanation: textUri shows / and .com keys.
Answer: B) To avoid a crash (ActivityNotFoundException) if no app can handle the intent
Explanation: Catching the exception lets the app show a friendly message instead of crashing.
Answer: D) Because a URI without a scheme may not be recognised as a web link
Explanation: The http/https scheme tells Android to open a browser.
Answer: A) Intent.createChooser(send, "Share via")
Explanation: createChooser forces the app picker dialog.
Answer: A) geo:33.6844,73.0479?q=33.6844,73.0479(Our Campus)
Explanation: geo: with a q parameter and label in brackets drops a marker.
Answer: B) tel:03001234567
Explanation: The tel: scheme passes the phone number.
Answer: A) Intent(Intent.ACTIONVIEW, Uri.parse(url))
Explanation: ACTIONVIEW with an http(s) URI is handled by browsers.
Answer: A) Show a red error icon and message on the EditText
Explanation: setError displays an error indicator on the field.
Answer: A) POSTNOTIFICATIONS
Explanation: POSTNOTIFICATIONS is a runtime permission from API 33.
Answer: D) ACTIONCALL with the CALLPHONE runtime permission
Explanation: Direct calls need the dangerous CALLPHONE permission.
Answer: B) It opens the dialer with the number and the user decides to call
Explanation: ACTIONDIAL requires no permission because the user presses Call.
Practise Lab: Implicit Intents – Browser and Dialer MCQs