Android Telephony and SMS - questions and answers

Android Telephony and SMS - questions and answers


Q.1 Which permission you need to declare in your AndroidManifest.xml file for sending SMS.

A) <uses-permission android:name="android.permission.SEND_SMS"/>
B) <uses-permission android:name="android.SEND_SMS"/>
C) <uses-permission ="android.permission.SEND_SMS"/>
D) None of the above.
View Answer / Hide Answer

ANSWER: A




Q.2 Which class is used to send SMS programmatically?

A) SmsSender
B) SmsManager
C) SMS
D) None of the above.
View Answer / Hide Answer

ANSWER: B




Q.3 What code you will write to send the SMS to another AVD? Suppose that the AVD no is 5556

A) SmsManager sms=new SmsManager();
sms.sendTextMessage("5556", null, "Hello Android", null, null);

B) SmsManager sms=new SmsManager();
sendSMS("5556", null, "Hello Android", null, null);

C) SmsManager sms=SmsManager.getDefault();
sms.sendTextMessage("5556", null, "Hello Android", null, null);

D) None of the above.
View Answer / Hide Answer

ANSWER: C




Q.4 How to get feedback on message sent?

A) Use two Intent objects in the sendTextMessage() method.
B) Use two PendingIntent objects in the sendTextMessage() method.
C) Use two PendingIntent objects in the startActivity() method.
D) None of the above.
View Answer / Hide Answer

ANSWER: B




Q.5 What is the purpose of the ImageSwitcher?

A) The ImageSwitcher enables images to be displayed with animation.
B) The ImageSwitcher displayed images without animation.
C) An image switcher allows you to add some transitions on the images.
D) Option A and C are correct.
View Answer / Hide Answer

ANSWER: D




Q.6 What types of menus is/are supported by Android?

A) Option menu and Context menu
B) Only Option menu
C) Only Context menu
D) None of the above.
View Answer / Hide Answer

ANSWER: A




Q.7 Which is Parent class of Activity?

A) ActivityGroup
B) Context
C) BaseActivity
D) ContextThemeWrapper
View Answer / Hide Answer

ANSWER: D




Q.8 Which is/are related to fragment class?

A) dialogFragment
B) listFragment
C) preferenceFragment
D) All of the above.
View Answer / Hide Answer

ANSWER: D




Q.9 Which permission you need to declare in your AndroidManifest.xml file for initiating a call using the system in-call Activity?

A) CALL_NUMBER uses-permission
B) DIAL_PHONE uses-permission
C) CALL_PHONE uses-permission
D) None of the above.
View Answer / Hide Answer

ANSWER: C




Q.10 To initate a call using the Intent which code you will write?

A) Intent intent = new Intent (Intent.ACTION_CALL)”);
startActivity(intent);
B) Intent intent = new Intent (Intent.ACTION_CALL, Uri.parse(“tel:9923----”));
startActivity(intent);
C) Intent intent = new Intent (Uri.parse(“tel:9923----”));
startActivity(intent);
D) All of the above.
View Answer / Hide Answer

ANSWER: B




Q.11 For accessing the subscriber identity module (SIM) detail which class you will use?

A) SimManager
B) TelephonyManager
C) MobileManager
D) All of the above.
View Answer / Hide Answer

ANSWER: B




Q.12 For sending sms through Intent which code is correct?

A) Intent intent = new Intent();
intent.putExtra("sms_body", "Welcome at CareerRide.com");
startActivity(intent);

B) Intent intent = new Intent();
startActivity(intent);

C) Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("sms:9923-----"));
intent.putExtra("sms_body", "Welcome at CareerRide.com");
startActivity(intent);

D) None of the above.
View Answer / Hide Answer

ANSWER: C


Post your comment