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.
Questions
What does ‘assets’ item hold in the root directory of android application?
- GUI layout resources
- Required JAR files for the application
- Java source code for the application
- Packaged application files for deployment
- Basic application components
__________ is used to include graphics features in the android application.
- SSL Webkit
- OpenGL
- Media
- SQLite
- libc
_________ is used for XML parsing in application.
- android.util
- android.os
- android.text
- android.database
- android.graphics
What information does .apk file has after the debugging of the android application?
- Collection of executable and external resources
- Android executable file
- Android byte code file
- Java byte code file
- Java executable file
Which of the following is a technique to get the user’s attention from within a broadcast receiver?
- Intents
- Broadcast receiver
- Notifications
- Services
- Activities
Which of the following android techniques is/are used to save data by an own database for the application?
- Shared preferences
- Files
- SQLite databases
- Content Providers
- Both (1) and (4)
Which of the following is/are the correct syntax to delete records using the Content Resolver?
- getContentResolver().delete(myRowUri, null);
- getContentResolver().delete(myRowUri);
- getContentResolver().delete(myRowUri, null, null);
- getContentResolver().delete(MyProvider.CONTENT_URI, where, null);
- Both (3) and (4)
Which state(s) of an activity is/are called in visible state without user input?
- Inactive
- Paused
- Stopped
- Active
- Both (1) and (2)
Which of the following android development tools is used to construct the android package files (.apk)?
- Android Emulator
- Dalvik Debug Monitoring Service (DDMS)
- Android Asset Packaging Tool (AAPT)
- Android Debug Bridge (ADB)
- Android Development Tool (ADT)
______ is used for event-driven applications.
- Intents
- Broadcast receiver
- Notifications
- Services
- Activities
Which of the following tools can be used to compile android applications without the ADT plug-in?
- Traceview
- SQLite3
- MkSDCard
- dx
- activityCreator
Which of the following is not a native Content Provider?
- Browser
- CallLog
- MediaStore
- Settings
- Activity
Which of the following is the correct syntax to start an explicit activity?
- Intent intent = new Intent(MyActivity.this, MyOtherActivity); startActivity(intent);
- Intent intent = new Intent(MyActivity.this, MyOtherActivity.class); startActivity(intent);
- Intent intent = new Intent(MyActivity.class, MyOtherActivity.class); startActivity(intent);
- Intent intent = new Intent(this, MyOtherActivity.this); startActivity(intent);
- Intent intent = new Intent(MyOtherActivity.class); startActivity(intent);
Which of the following is an incorrect statement about accessing the files in Content Providers?
- Content Providers represent files as fully qualified URIs.
- openOutputStream method is used to insert a file into a Content Provider.
- openInputStream method is used to access a saved file.
- The file compresses the bitmap and saves it into the provider.
- There will be no exception possible while saving the file.
Which of the following parameters is not available in managedQuery() method?
- An array of properties of instances from the content provider
- A constraint statement
- An optional set of parameters to bind into the constraint clause
- An optional sort statement
- The identifier for a layout
Which of the following is the correct syntax of onUpgrade method in SQLite database?
- public void onUpgrade(SQLiteDatabase db) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); }
- public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); }
- public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); db.insert(); }
- public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); db.close(); }
- public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP TABLE IF EXISTS + TABLE_CONTACTS); onCreate(db); db.delete(); }