Important Points to Remember. No cell phones or other secondary devices in the room or test area Your desk/table must be clear or any materials except your test-taking device No one else can be in the room with you No talking No dual screens/monitors No use of additional applications or internet 1 / 40 Find the output of the following program. public class Solution{ public static void main (String [ ] args ) { short x = 10; x = x * 5; System.out.print ( x ) ; } } Compile error 50 10 Exception 2 / 40 Find the output of the following program. public class Solution { public static void main ( String [ ] args ) { int [ ] x = { 120, 200, 016 } ; for ( int i = 0; i < x.length ; i++ ) { System.out.print ( x [ i ] + “ “); } } } None 120 200 016 120 200 16 120 200 14 3 / 40 Which of the following android component displays the part of an activity on screen? Fragment View Manifest Intent 4 / 40 Which of the following is not a nickname of any android version? Honeycomb Cupcake Muffin Donut 5 / 40 Which of the following is not an activity lifecycle callback method? onStart ()method onCreate ()method onBackPressed ()method onClick ()method 6 / 40 Select the valid statement. char [ ] ch = new char ] char ch = new char[ 5 ] char [ ] ch = new char 0 char ] ch = new char ( 5 ) 7 / 40 ADB stands for - Android debug bridge Android delete bridge Android destroy bridge None of the above 8 / 40 As an android programmer, which version of Android should we use as a minimum development target? Version 2.3 or version 3.0 Version 1.2 or version 1.3 Version 1.6 or version 2.0 Version 1.0 or version 1.1 9 / 40 What is an activity in android? android package android class None of the above A single screen in an application with supporting java code 10 / 40 On which of the following, developers can test the application, during developing the android applications? Third-party emulators Emulator included in Android SDK All of the above Physical android phone 11 / 40 For which of the following Android is mainly developed? Laptops Mobile devices Servers Desktops 12 / 40 Which of the following is the name of the Android version 1.5? Donut Eclair Froyo Cupcake 13 / 40 Find the value of A [ 1 ] after execution of the following program. int [ ] A = { 0,2,4,1,3 } ; for ( int i = 0 ; i < a.length ; i++ ) { a [ i ] = a [ ( a [ i ] + 3 ) % a.length ] ; } 2 3 1 0 14 / 40 Under which of the following Android is licensed? Sourceforge None of the above Apache/MIT OSS 15 / 40 In which year OHA (Open Handset Alliance) is announced? 2006 None of the above 2005 2007 16 / 40 What is contained in manifest.xml? None of the above Permission that the application requires Source code List of strings used in the app 17 / 40 Which of the layer is the lowest layer of android architecture? System Libraries and Android Runtime Applications Applications Framework Linux Kernel 18 / 40 Which of the following is the first callback method that is invoked by the system during an activity life-cycle? onRestart ( )method onClick ( )method onCreate ( )method onStart ( )method 19 / 40 Identify what can directly access and change the value of the variable res. Package com.mypackage ; Public class Solution { Private int res = 100 ; } Any class Any class that extends Solution None Only Solution class 20 / 40 Which of the following converts Java byte code into Dalvik byte code? Dex compiler Mobile interpretive compiler (MIC) None of the above Dalvik converter 21 / 40 Which of the following is the topmost layer of android architecture? Applications Framework System Libraries and Android Runtime Linux Kernel Applications 22 / 40 AAPT stands for - Android Asset Packaging Tool Android Activity Packaging Tool Android Action Packaging Tool None of the above 23 / 40 Which of the following is the first mobile phone released that ran the Android OS? None of the above Google gPhone HTC Hero T - Mobile G1 24 / 40 What does API stand for? Application Page Interface Application Programming Interface Android Programming Interface Android Page Interface 25 / 40 Does android support other languages than java? No May be Yes Can't say 26 / 40 Which of the following is a dialog class in android? ProgressDialog AlertDialog All of the above DatePicker Dialog 27 / 40 Find the output of the following program. public class Solution { public static void main ( String [ ] args ) { byte x = 127 ; x++ ; x++ ; System.out.print ( x ) ; } } 127 129 2 -127 28 / 40 Which of the following virtual machine is used by the Android operating system? Dalvik virtual machine None of the above JVM Simple virtual machine 29 / 40 How can we kill an activity in android? Neither (a) nor (b) Both (a) and (b) Using finishActivity(int requestCode) Using finish() method 30 / 40 Android is - a web server None of the above an operating system a web browser 31 / 40 How can we stop the services in android? By using system.exit() method By using the stopSelf() and stopService() method By using the finish() method None of the above 32 / 40 Find the output of the following code. int Integer = 24 ; char String = ‘ I ’; System.out.print ( Integer ) ; System. out. print ( String ) ; Throws exception 24I 1 Compile error 33 / 40 What is the use of content provider in Android? For storing the data in the database For sharing the data between applications None of the above For sending the data from an application to another application 34 / 40 Which of the following is contained in the src folder? None of the above XML Manifest Java source code 35 / 40 Which of the following is not a state in the service lifecycle? Paused Start Destroyed Running 36 / 40 Which of the following method is used to handle what happens after clicking a button? onCreate None of the above onSelect onClick 37 / 40 Android is based on which of the following language? C C++ Java None of the above 38 / 40 APK stands for - Android Page Kit Android Package Kit None of the above Android Phone Kit 39 / 40 We require an AVD to create an emulator. What does AVD stand for? Active Virtual device Android Virtual device Android Virtual display Active Virtual display 40 / 40 Which of the following kernel is used in Android? Redhat Windows MAC Linux 0%