Basics of Android Application Development

This test contains the questions related to basics of application development in Android platform. This test is useful for CS and GATE aspirants.

16 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What does ‘assets’ item hold in the root directory of android application?

  1. GUI layout resources
  2. Required JAR files for the application
  3. Java source code for the application
  4. Packaged application files for deployment
  5. Basic application components
Question 2 Multiple Choice (Single Answer)

__________ is used to include graphics features in the android application.

  1. SSL Webkit
  2. OpenGL
  3. Media
  4. SQLite
  5. libc
Question 3 Multiple Choice (Single Answer)

_________ is used for XML parsing in application.

  1. android.util
  2. android.os
  3. android.text
  4. android.database
  5. android.graphics
Question 4 Multiple Choice (Single Answer)

What information does .apk file has after the debugging of the android application?

  1. Collection of executable and external resources
  2. Android executable file
  3. Android byte code file
  4. Java byte code file
  5. Java executable file
Question 5 Multiple Choice (Single Answer)

Which of the following is a technique to get the user’s attention from within a broadcast receiver?

  1. Intents
  2. Broadcast receiver
  3. Notifications
  4. Services
  5. Activities
Question 6 Multiple Choice (Single Answer)

Which of the following android techniques is/are used to save data by an own database for the application?

  1. Shared preferences
  2. Files
  3. SQLite databases
  4. Content Providers
  5. Both (1) and (4)
Question 7 Multiple Choice (Single Answer)

Which of the following is/are the correct syntax to delete records using the Content Resolver?

  1. getContentResolver().delete(myRowUri, null);
  2. getContentResolver().delete(myRowUri);
  3. getContentResolver().delete(myRowUri, null, null);
  4. getContentResolver().delete(MyProvider.CONTENT_URI, where, null);
  5. Both (3) and (4)
Question 8 Multiple Choice (Single Answer)

Which state(s) of an activity is/are called in visible state without user input?

  1. Inactive
  2. Paused
  3. Stopped
  4. Active
  5. Both (1) and (2)
Question 9 Multiple Choice (Single Answer)

Which of the following android development tools is used to construct the android package files (.apk)?

  1. Android Emulator
  2. Dalvik Debug Monitoring Service (DDMS)
  3. Android Asset Packaging Tool (AAPT)
  4. Android Debug Bridge (ADB)
  5. Android Development Tool (ADT)
Question 10 Multiple Choice (Single Answer)

______ is used for event-driven applications.

  1. Intents
  2. Broadcast receiver
  3. Notifications
  4. Services
  5. Activities
Question 11 Multiple Choice (Single Answer)

Which of the following tools can be used to compile android applications without the ADT plug-in?

  1. Traceview
  2. SQLite3
  3. MkSDCard
  4. dx
  5. activityCreator
Question 12 Multiple Choice (Single Answer)

Which of the following is not a native Content Provider?

  1. Browser
  2. CallLog
  3. MediaStore
  4. Settings
  5. Activity
Question 13 Multiple Choice (Single Answer)

Which of the following is the correct syntax to start an explicit activity?

  1. Intent intent = new Intent(MyActivity.this, MyOtherActivity); startActivity(intent);
  2. Intent intent = new Intent(MyActivity.this, MyOtherActivity.class); startActivity(intent);
  3. Intent intent = new Intent(MyActivity.class, MyOtherActivity.class); startActivity(intent);
  4. Intent intent = new Intent(this, MyOtherActivity.this); startActivity(intent);
  5. Intent intent = new Intent(MyOtherActivity.class); startActivity(intent);
Question 14 Multiple Choice (Single Answer)

Which of the following is an incorrect statement about accessing the files in Content Providers?

  1. Content Providers represent files as fully qualified URIs.
  2. openOutputStream method is used to insert a file into a Content Provider.
  3. openInputStream method is used to access a saved file.
  4. The file compresses the bitmap and saves it into the provider.
  5. There will be no exception possible while saving the file.
Question 15 Multiple Choice (Single Answer)

Which of the following parameters is not available in managedQuery() method?

  1. An array of properties of instances from the content provider
  2. A constraint statement
  3. An optional set of parameters to bind into the constraint clause
  4. An optional sort statement
  5. The identifier for a layout
Question 16 Multiple Choice (Single Answer)

Which of the following is the correct syntax of onUpgrade method in SQLite database?

  1. public void onUpgrade(SQLiteDatabase db) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); }
  2. public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); }
  3. public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); db.insert(); }
  4. public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); db.close(); }
  5. public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); db.delete(); }