Deck 1: Android Application Development
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/224
Play
Full screen (f)
Deck 1: Android Application Development
1
Which of these is not defined as a process state?
A) Non-visible
B) Visible
C) Foreground
D) Background
A) Non-visible
B) Visible
C) Foreground
D) Background
A
2
Which of the following is not an Android component (i.e. a point from which the system can enter your application)?
A) Service
B) Activity
C) Layout
D) Content Provider
A) Service
B) Activity
C) Layout
D) Content Provider
C
3
During an Activity life-cycle, what is the first callback method invoked by the system?
A) onStop()
B) onStart()
C) onCreate()
D) onRestore()
A) onStop()
B) onStart()
C) onCreate()
D) onRestore()
C
4
Which of these files contains text values that you can use in your application?
A) AndroidManifest.xml
B) res/Text.xml
C) res/layout/Main.xml
D) res/values/strings.xml
A) AndroidManifest.xml
B) res/Text.xml
C) res/layout/Main.xml
D) res/values/strings.xml
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
5
What is the name of the class used by Intent to store additional information?
A) Extra
B) Parcelable
C) Bundle
D) DataStore
A) Extra
B) Parcelable
C) Bundle
D) DataStore
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
6
Which configuration file holds the permission to use the internet?
A) Layout file
B) Property file
C) Java source file
D) Manifest file
A) Layout file
B) Property file
C) Java source file
D) Manifest file
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
7
Which is not included in the Android application framework?
A) WindowManager
B) NotificationManager
C) DialerManager
D) PackageManager
A) WindowManager
B) NotificationManager
C) DialerManager
D) PackageManager
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
8
What is the parent class of all Activity widgets?
A) ViewGroup
B) Layout
C) View
D) Widget
A) ViewGroup
B) Layout
C) View
D) Widget
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
9
Which file specifies the minimum required Android SDK version your application supports?
A) main.xml
B)
C) java
D) strings.xml
E) AndroidManifest.xml
A) main.xml
B)
C) java
D) strings.xml
E) AndroidManifest.xml
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
10
What is a correct statement about an XML layout file?
A) A layout PNG image file
B) A file used to draw the content of an Activity
C) A file that contains all application permission information
D) A file that contains a single activity widget.
A) A layout PNG image file
B) A file used to draw the content of an Activity
C) A file that contains all application permission information
D) A file that contains a single activity widget.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
11
What does the Android project folder "res/" contain?
A) Java Activity classes
B) Resource files
C) Java source code
D) Libraries
A) Java Activity classes
B) Resource files
C) Java source code
D) Libraries
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is NOT a valid usage for Intents?
A) Activate and Activity
B) Activate a Service
C) Activate a Broadcast receiver
D) Activate a SQLite DB Connection.
A) Activate and Activity
B) Activate a Service
C) Activate a Broadcast receiver
D) Activate a SQLite DB Connection.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
13
What does this code do? Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent);
A) Starts a sub-activity
B) Starts a service
C) Sends results to another activity.
D) Starts an activity using an implicit intent.
A) Starts a sub-activity
B) Starts a service
C) Sends results to another activity.
D) Starts an activity using an implicit intent.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
14
What Eclipse plugin is required to develop Android application?
A) J2EE
B) Android Software Development Kit
C) Android Development Tools
D) Web Development Tools
A) J2EE
B) Android Software Development Kit
C) Android Development Tools
D) Web Development Tools
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
15
What does the src folder contain?
A) Image and icon files
B) XML resource files
C) The application manifest file
D) Java source code files
A) Image and icon files
B) XML resource files
C) The application manifest file
D) Java source code files
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
16
What is the name of the folder that contains the R.java file?
A) src
B) res
C) bin
D) gen
A) src
B) res
C) bin
D) gen
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
17
What method you should override to use Android menu system?
A) onCreateOptionsMenu()
B) onCreateMenu()
C) onMenuCreated()
D) onCreateContextMenu()
A) onCreateOptionsMenu()
B) onCreateMenu()
C) onMenuCreated()
D) onCreateContextMenu()
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
18
What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?
A) findViewByReference(int id);
B) findViewById(int id)
C) retrieveResourceById(int id)
D) findViewById(String id)
A) findViewByReference(int id);
B) findViewById(int id)
C) retrieveResourceById(int id)
D) findViewById(String id)
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
19
A developer can create a custom view by extending class Activity.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following is not a valid Android resource file name?
A) mylayout.xml
B) myLayout.xml
C) my_layout.xml
D) mylayout1.xml
A) mylayout.xml
B) myLayout.xml
C) my_layout.xml
D) mylayout1.xml
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
21
What two methods you have to override when implementing Android option menus?
A) onCreateOptionsMenu, onCreateContextMenu
B) onCreateContextMenu, onContextItemSelected
C) onCreateOptionsMenu, onOptionsItemSelected
D) onCreateOptionsMenu, onContextItemSelected
A) onCreateOptionsMenu, onCreateContextMenu
B) onCreateContextMenu, onContextItemSelected
C) onCreateOptionsMenu, onOptionsItemSelected
D) onCreateOptionsMenu, onContextItemSelected
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following is true about object arrayAdapter declared in the code below?
String[] items = {"Item 1","Item 2","Item 3"}; ArrayAdapter arrayAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, items); listView.setAdapter(arrayAdapter);
A) It creates a TextView for each String in array items.
B) It creates Buttons for each String in array items.
C) It creates four views for listView.
D) It replaces the layout of the activity with three consecutive TextView items.
String[] items = {"Item 1","Item 2","Item 3"}; ArrayAdapter
A) It creates a TextView for each String in array items.
B) It creates Buttons for each String in array items.
C) It creates four views for listView.
D) It replaces the layout of the activity with three consecutive TextView items.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
23
Which of the following WebView methods allows you to manually load custom HTML markup?
A) loadData
B) loadHTML
C) loadCustomData
D) loadCustomHTML
A) loadData
B) loadHTML
C) loadCustomData
D) loadCustomHTML
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following is a correct Android Manifest statement?
A)
B)
C)
D)
A)
B)
C)
D)
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following Activity methods is invoked when the user clicks on an options menu item?
A) onItemClicked
B) onItemSelected
C) onOptionsItemClicked
D) onOptionsItemSelected
A) onItemClicked
B) onItemSelected
C) onOptionsItemClicked
D) onOptionsItemSelected
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
26
Which of the following add a click listener to items in a listView?
A) onClickListener.
B) onItemClickListener.
C) onItemClicked.
D) onListItemClickListener.
A) onClickListener.
B) onItemClickListener.
C) onItemClicked.
D) onListItemClickListener.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
27
Which of the following is NOT a correct constructer for ArrayAdapter?
A) ArrayAdapter(Context context)
B) ArrayAdapter (Context context, int recourse)
C) ArayAdpater (Context context , int resource, int textViewResourceId)
D) ArrayAdapter (Context context , int resource, List items)
A) ArrayAdapter(Context context)
B) ArrayAdapter (Context context, int recourse)
C) ArayAdpater (Context context , int resource, int textViewResourceId)
D) ArrayAdapter (Context context , int resource, List
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
28
Which of the following classes is used by Intent to transfer data between different android components?
A) Extras
B) Bundle
C) Parcelables
D) PendingIntent
A) Extras
B) Bundle
C) Parcelables
D) PendingIntent
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
29
Javascript is enabled by default in a WebView
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
30
Which of the following tools dumps system log messages including stack traces when the device or emulator throws an error?
A) DDMS
B) Logcat
C) Console
D) ADB
A) DDMS
B) Logcat
C) Console
D) ADB
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
31
How to enable JavaScript in WebView?
A) myWebView. setJavaScriptEnabled(true);
B) myWebView.getJavaScriptSettings.setEnabled(true)
C) myWebView.getSettings().setJavaScriptEnabled(true);
D) Java script is always enabled in WebView
A) myWebView. setJavaScriptEnabled(true);
B) myWebView.getJavaScriptSettings.setEnabled(true)
C) myWebView.getSettings().setJavaScriptEnabled(true);
D) Java script is always enabled in WebView
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
32
Which of the following is the base class of all UI components?
A) ListView
B) Layout
C) View
D) ViewGroup
A) ListView
B) Layout
C) View
D) ViewGroup
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
33
Which of the following is not an Activity lifecycle call-back method?
A) onStart
B) onCreate
C) onPause
D) onBackPressed
A) onStart
B) onCreate
C) onPause
D) onBackPressed
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
34
Which of the following is a Java call-back method invoked when a view is clicked?
A) Detector
B) OnTapListener
C) OnClickDetector
D) OnClickListener
A) Detector
B) OnTapListener
C) OnClickDetector
D) OnClickListener
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
35
Which of the following is a call-back method that inflates an options menu from file res/menu/menu.xml?
A) onOptionsItemSelected
B) onCreate
C) onCreateMenu
D) onCreateOptionsMenu
A) onOptionsItemSelected
B) onCreate
C) onCreateMenu
D) onCreateOptionsMenu
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following makes a ListView Clickable?
A) setClickable(true)
B) setVisibility(View.Visible)
C) setEnabled(true)
D) setItemsEnabled(true)
A) setClickable(true)
B) setVisibility(View.Visible)
C) setEnabled(true)
D) setItemsEnabled(true)
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
37
What two methods you have to override when implementing Android context menus?
A) onCreateOptionsMenu, onCreateContextMenu
B) onCreateContextMenu, onContextItemSelected
C) onCreateOptionsMenu, onOptionsItemSelected
D) onCreateOptionsMenu, onContextItemSelected
A) onCreateOptionsMenu, onCreateContextMenu
B) onCreateContextMenu, onContextItemSelected
C) onCreateOptionsMenu, onOptionsItemSelected
D) onCreateOptionsMenu, onContextItemSelected
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following is true about attribute android:windowSoftInputMode of the tag in file AndroidManifest.xml?
A) It specifies whether the window is in full screen or not
B) It adjusts how the main window of the activity interacts with keyboard
C) It adjusts how the window should be launched
D) It adjusts the window orientation
A) It specifies whether the window is in full screen or not
B) It adjusts how the main window of the activity interacts with keyboard
C) It adjusts how the window should be launched
D) It adjusts the window orientation
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
39
Which method is used to close an activity?
A) Destroy()
B) Finish()
C) Stop()
D) Close()
A) Destroy()
B) Finish()
C) Stop()
D) Close()
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following Activity life-cycle methods is called once the activity is no longer visible?
A) onStop
B) onPause
C) onDestroy
D) onHide
A) onStop
B) onPause
C) onDestroy
D) onHide
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
41
The DalvikVM core libraries are a subset of which of the following?
A) Java ME
B) Java SE
C) Java EE
D) JAX-WS
A) Java ME
B) Java SE
C) Java EE
D) JAX-WS
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
42
An AsyncTask can be cancelled anytime from any thread.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
43
When creating a file using android.content.Context.openFileOutput("test.txt", 0), where is the file created?
A) /data/app//files
B) /data/data//files
C) /system/app//files
D) /system/data//files
A) /data/app/
B) /data/data/
C) /system/app/
D) /system/data/
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
44
Which of the following is correct about file access in the Android system?
A) Generally, files are handled as dedicated resources per each application.
B) Files created by an application can be directly accessed by any application.
C) The content of file created by application cannot be accessed by any other application.
D) You can only access a file from within an Activity.
A) Generally, files are handled as dedicated resources per each application.
B) Files created by an application can be directly accessed by any application.
C) The content of file created by application cannot be accessed by any other application.
D) You can only access a file from within an Activity.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
45
Which of the following Activity life-cycle methods is invoked when a dialog is shown?
A) onPause()
B) onCreate()
C) onStop()
D) onDestroy()
A) onPause()
B) onCreate()
C) onStop()
D) onDestroy()
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
46
Which of the following is NOT true about class DefaultHttpClient?
A) It supports HTTPS.
B) It supports streaming uploads and downloads.
C) It is only supported on Android versions 2.2 and older.
D) It is Andriod's default implementation of an HTTP client.
A) It supports HTTPS.
B) It supports streaming uploads and downloads.
C) It is only supported on Android versions 2.2 and older.
D) It is Andriod's default implementation of an HTTP client.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
47
Which of the following information cannot not be included in the Manifest file?
A) The activities contained in the application
B) The permissions required by the application
C) The application's minimum SDK version required.
D) The handset model compatible with your application.
A) The activities contained in the application
B) The permissions required by the application
C) The application's minimum SDK version required.
D) The handset model compatible with your application.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
48
Which is the correct explanation of ListView?
A) It is necessary to use ListView as a set with ListActivity.
B) You cannot use a ListView when there is no information to be displayed.
C) When displaying a list of Strings using an ArrayAdapter class in ListView, you must save the value in an ArrayList.
D) ListView has a function to display a list of uniquely defined Views other than TextView.
A) It is necessary to use ListView as a set with ListActivity.
B) You cannot use a ListView when there is no information to be displayed.
C) When displaying a list of Strings using an ArrayAdapter class in ListView, you must save the value in an ArrayList.
D) ListView has a function to display a list of uniquely defined Views other than TextView.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
49
What does the following code achieve? Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent);
A) Starts a browser activity
B) Starts a sub-activity
C) Starts an activity service
D) Sends results to another activity.
A) Starts a browser activity
B) Starts a sub-activity
C) Starts an activity service
D) Sends results to another activity.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
50
What does the following code do? dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND, LayoutParams.FLAG_BLUR_BEHIND);
A) When dialog is displayed the activity behind it will be blurred.
B) When dialog is displayed the activity behind it will be dimmed.
C) Any EditText behind the dialog will be disabled.
D) When the dialog is displayed, the edges of the dialog will be blurred.
A) When dialog is displayed the activity behind it will be blurred.
B) When dialog is displayed the activity behind it will be dimmed.
C) Any EditText behind the dialog will be disabled.
D) When the dialog is displayed, the edges of the dialog will be blurred.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
51
Which of the following is correct about XML layout files?
A) In order to display a UI defined in the XML layout file "main.xml", call the setContentView method of the Activity with the parameter string "main.xml".
B) There is no distinction between implementation of the layout definition by code, or by XML layout file.
C) In an Eclipse project using the ADT plugin, the XML layout file is found in the /res/layout directory.
D) Layout information written in the XML layout file will be converted into code by the Android platform when the screen is displayed.
A) In order to display a UI defined in the XML layout file "main.xml", call the setContentView method of the Activity with the parameter string "main.xml".
B) There is no distinction between implementation of the layout definition by code, or by XML layout file.
C) In an Eclipse project using the ADT plugin, the XML layout file is found in the /res/layout directory.
D) Layout information written in the XML layout file will be converted into code by the Android platform when the screen is displayed.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
52
Which of the following is NOT true about onMeasure() method of class View?
A) It measures the view and its contents to determine the measured width and height.
B) It is invoked by measure().
C) When overriding this method, a developer must call setMeasuredDimension().
D) It takes three parameters: the height, width, and the depth of the view.
A) It measures the view and its contents to determine the measured width and height.
B) It is invoked by measure().
C) When overriding this method, a developer must call setMeasuredDimension().
D) It takes three parameters: the height, width, and the depth of the view.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
53
Which of the following is not a ContentProvider provided natively by Android?
A) The contacts list
B) The telephone log
C) The bookmarks
D) The application list
A) The contacts list
B) The telephone log
C) The bookmarks
D) The application list
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
54
Which of the following is NOT true about the MenuItem interface?
A) The MenuItem instance will be returned by the Menu class add(...) method.
B) MenuItem can decide the Intent issued when clicking menu components.
C) MenuItem can display either an icon or text.
D) MenuItem can set a checkbox.
A) The MenuItem instance will be returned by the Menu class add(...) method.
B) MenuItem can decide the Intent issued when clicking menu components.
C) MenuItem can display either an icon or text.
D) MenuItem can set a checkbox.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
55
Which of the following is NOT true about the SharedPreferences interface?
A) The data it saves is persistent even if application is killed.
B) It only saves primitive data in key-value pairs.
C) Modifications to preferences saved should go through class SharedPreferences.Editor
D) It can save any data type in key-value pairs.
A) The data it saves is persistent even if application is killed.
B) It only saves primitive data in key-value pairs.
C) Modifications to preferences saved should go through class SharedPreferences.Editor
D) It can save any data type in key-value pairs.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
56
When using an implicit intent, what process does the system use to know what to do with it?
A) Intent resolution
B) Intent declaration
C) Intent overloading
D) Intent transition
A) Intent resolution
B) Intent declaration
C) Intent overloading
D) Intent transition
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
57
Which of the following is incorrect about the LogCat tool?
A) LogCat UI tool is available inside Android Studio.
B) You can create a log in your application using Log.v(String, String)
C) Each log message has a tag
D) Only one of your applications can create log entries, and it should be component class (Activity,Service,...etc)
A) LogCat UI tool is available inside Android Studio.
B) You can create a log in your application using Log.v(String, String)
C) Each log message has a tag
D) Only one of your applications can create log entries, and it should be component class (Activity,Service,...etc)
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
58
Which of the following classes should be extended to create a custom view?
A) View
B) ViewGroup
C) Context
D) Activity
A) View
B) ViewGroup
C) Context
D) Activity
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
59
Which of following is incorrect about the Toast class?
A) You cannot set a custom layout for a Toast.
B) A Toast can only be created by an Activity class
C) There is no need to close or hide a Toast, since it closes automatically.
D) A Toast is displayed for only one of the following periods: Toast.LENGHT_SHORT or Toast.LENGTH_LONG
A) You cannot set a custom layout for a Toast.
B) A Toast can only be created by an Activity class
C) There is no need to close or hide a Toast, since it closes automatically.
D) A Toast is displayed for only one of the following periods: Toast.LENGHT_SHORT or Toast.LENGTH_LONG
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
60
Which of the following is true about implicit intents? (Choose two)
A) They do not have a component specified
B) They have components specified to run an exact class.
C) They must include information that allows Android system to choose the best component to run.
D) They must contain extra information saved in a Bundle object.
A) They do not have a component specified
B) They have components specified to run an exact class.
C) They must include information that allows Android system to choose the best component to run.
D) They must contain extra information saved in a Bundle object.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
61
Which of the following attributes of the activity tag in the manifest file is used to set an activity screen to landscape orientation?
A) screenorientation = landscape
B) screenOrientation="landscape"
C) android:ScreenOrientation="landscape"
D) android:screenOrientation="landscape"
A) screenorientation = landscape
B) screenOrientation="landscape"
C) android:ScreenOrientation="landscape"
D) android:screenOrientation="landscape"
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
62
Which of the following methods is called first in an Activity when another activity gets into the foreground?
A) onStop()
B) onPause()
C) onDestroy()
D) onExit()
A) onStop()
B) onPause()
C) onDestroy()
D) onExit()
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
63
Which of these is the incorrect explanation of the Android SDK and AVD Manager?
A) They are provided from version 1.6 of the SDK. Up to Version 1.5, there was an AVD Manager but it lacked SDK management functions.
B) You can create and startup AVD, and on startup you can delete user data up to that point.
C) The "android" command can be used if "/tools" is added to the command path.
D) The development tools that can be downloaded from Android SDK and AVD Manager are SDK Android platform, NDK-platform, emulator images, and USB drivers for handsets.
A) They are provided from version 1.6 of the SDK. Up to Version 1.5, there was an AVD Manager but it lacked SDK management functions.
B) You can create and startup AVD, and on startup you can delete user data up to that point.
C) The "android" command can be used if "
D) The development tools that can be downloaded from Android SDK and AVD Manager are SDK Android platform, NDK-platform, emulator images, and USB drivers for handsets.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following is incorrect about ProgressDialog?
A) ProgressDialog inherits from the AlertDialog class.
B) ProgressDialog can be set as 2 types of style: STYLE_HORIZONTAL and STYLE_SPINNER.
C) ProgressDialog is able to apply a custom XML-defined layout by using the setContentView(...) method.
D) ProgressDialog can be freely configured to use a Drawable class to display as its progress bar.
A) ProgressDialog inherits from the AlertDialog class.
B) ProgressDialog can be set as 2 types of style: STYLE_HORIZONTAL and STYLE_SPINNER.
C) ProgressDialog is able to apply a custom XML-defined layout by using the setContentView(...) method.
D) ProgressDialog can be freely configured to use a Drawable class to display as its progress bar.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
65
Which of the following lines of code starts activity Activity2 from a current activity Activity1?
A) Intent intent = new Intent(this,new Activity2()); startActivity(intent);
B) Intent intent = new Intent(new Activity2());
C) Intent intent = new Intent (Activity1.class,Activity2.class);
D) Intent intent = new Intent(this,Activity2.class);
A) Intent intent = new Intent(this,new Activity2()); startActivity(intent);
B) Intent intent = new Intent(new Activity2());
C) Intent intent = new Intent (Activity1.class,Activity2.class);
D) Intent intent = new Intent(this,Activity2.class);
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
66
Which of the following is not true about tag in AndroidManifest file?
A) Declares an activity that implements part of the application's visual user interface
B) Contained in tag.
C) Declares a single hardware or software feature that is used by the application.
D) Has an attribute that specifies the name of the Activity sub-class that implements the activity.
A) Declares an activity that implements part of the application's visual user interface
B) Contained in
C) Declares a single hardware or software feature that is used by the application.
D) Has an attribute that specifies the name of the Activity sub-class that implements the activity.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
67
Which of these is NOT recommended in the Android Developer's Guide as a method of creating an individual View?
A) Create by extending the android.view.View class.
B) Create by extending already existing View classes such as Button or TextView.
C) Create by copying the source of an already existing View class such as Button or TextView
D) Create by combining multiple Views.
A) Create by extending the android.view.View class.
B) Create by extending already existing View classes such as Button or TextView.
C) Create by copying the source of an already existing View class such as Button or TextView
D) Create by combining multiple Views.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
68
If your application is throwing exception android.content.ActivityNotFoundException, which of the following could resolve the problem?
A) Create a new sub-class of the View class.
B) Create a new broadcast receiver
C) Create the activity layout
D) Add the activity to the AndroidManifest.xml
A) Create a new sub-class of the View class.
B) Create a new broadcast receiver
C) Create the activity layout
D) Add the activity to the AndroidManifest.xml
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
69
Which package of the following does not have classes needed for Android network connections?
A) java.net
B) org.apache.http
C) android.location
D) android.net
A) java.net
B) org.apache.http
C) android.location
D) android.net
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
70
You can create a custom view by extending class:
A) android.widget.View
B) android.widget.LinearLayout
C) android.view.View
D) android.content.Context
A) android.widget.View
B) android.widget.LinearLayout
C) android.view.View
D) android.content.Context
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
71
Which of these is the correct explanation regarding the following methods? (1)android.content.Context.sendBroadcast (2)android.content.Context.startActivity
A) Both methods are defined by overloading.
B) Both methods throw an exception.
C) Both methods are asynchronous.
D) Both methods are able to broadcast an Intent.
A) Both methods are defined by overloading.
B) Both methods throw an exception.
C) Both methods are asynchronous.
D) Both methods are able to broadcast an Intent.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
72
What is not true about the AndroidManifest.xml file?
A) It declares the views used within the application
B) It declares user permissions the application requires
C) It declares application components
D) It declares hardware and software features used within the application
A) It declares the views used within the application
B) It declares user permissions the application requires
C) It declares application components
D) It declares hardware and software features used within the application
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
73
Which Android permission you should add to allow your application to read the device's address book?
A) READ_ADDRESS_DATA
B) READ_PHONE_STATE
C) READ_PHONE_CONTACTS
D) READ_CONTACTS
A) READ_ADDRESS_DATA
B) READ_PHONE_STATE
C) READ_PHONE_CONTACTS
D) READ_CONTACTS
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
74
Which of these is the correct function of Traceview?
A) Displays a graphical task execution log.
B) Displays graphically a memory acquisition and release log
C) Displays graphically the call stack.
D) Displays graphically the Ul state hierarchy.
A) Displays a graphical task execution log.
B) Displays graphically a memory acquisition and release log
C) Displays graphically the call stack.
D) Displays graphically the Ul state hierarchy.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
75
Which of the following is the correct way to add access permission to your application?
A) Add a tag as a child tag of the tag in AndroidManifest.xml
B) Add a tag as a child tag of the tag in AndroidManifest.xml.
C) Add a tag as a child tag of the tag in AndroidManifest.xml.
D) add a tag as a child tag of the tag in AndroidManifest.xml
A) Add a
B) Add a
C) Add a
D) add a
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
76
Consider the following code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent); Which of the following is correct about the code above?
A) It sends a result to a new Activity in a Bundle.
B) It will not compile without adding the INTERNET permission the Manifest file.
C) It starts any activity in the application that has a WebView in its layout.
D) When it is executed, the system starts an intent resolution process to start the right Activity.
A) It sends a result to a new Activity in a Bundle.
B) It will not compile without adding the INTERNET permission the Manifest file.
C) It starts any activity in the application that has a WebView in its layout.
D) When it is executed, the system starts an intent resolution process to start the right Activity.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
77
Which of the following statements is correct about SQLite?
A) It is an object database.
B) It is client-server format.
C) It is possible to create and access a database by using SQLOpenHelper.
D) It can be accessed by other applications through ContentProvider.
A) It is an object database.
B) It is client-server format.
C) It is possible to create and access a database by using SQLOpenHelper.
D) It can be accessed by other applications through ContentProvider.
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
78
Which of the following tools creates certificates for signing Android applications?
A) adb
B) logcat
C) keytool
D) certgen
A) adb
B) logcat
C) keytool
D) certgen
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
79
Which method should you use to start a sub-activity?
A) startActivity(Intent intent)
B) startActivityForResult(Intent intent , int requestCode)
C) startService(Intent intent)
D) startSubActivity(Intent intent)
A) startActivity(Intent intent)
B) startActivityForResult(Intent intent , int requestCode)
C) startService(Intent intent)
D) startSubActivity(Intent intent)
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck
80
In which Activity life-cycle method you should do all of your normal static set up such as: creating views and bind data to lists?
A) onResume()
B) onStart()
C) onCreate()
D) onPause()
A) onResume()
B) onStart()
C) onCreate()
D) onPause()
Unlock Deck
Unlock for access to all 224 flashcards in this deck.
Unlock Deck
k this deck