Deck 1: Android Application Development

ملء الشاشة (f)
exit full mode
سؤال
Which of these is not defined as a process state?

A) Non-visible
B) Visible
C) Foreground
D) Background
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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
سؤال
During an Activity life-cycle, what is the first callback method invoked by the system?

A) onStop()
B) onStart()
C) onCreate()
D) onRestore()
سؤال
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
سؤال
What is the name of the class used by Intent to store additional information?

A) Extra
B) Parcelable
C) Bundle
D) DataStore
سؤال
Which configuration file holds the permission to use the internet?

A) Layout file
B) Property file
C) Java source file
D) Manifest file
سؤال
Which is not included in the Android application framework?

A) WindowManager
B) NotificationManager
C) DialerManager
D) PackageManager
سؤال
What is the parent class of all Activity widgets?

A) ViewGroup
B) Layout
C) View
D) Widget
سؤال
Which file specifies the minimum required Android SDK version your application supports?

A) main.xml
B)
C) java
D) strings.xml
E) AndroidManifest.xml
سؤال
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.
سؤال
What does the Android project folder "res/" contain?

A) Java Activity classes
B) Resource files
C) Java source code
D) Libraries
سؤال
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.
سؤال
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.
سؤال
What Eclipse plugin is required to develop Android application?

A) J2EE
B) Android Software Development Kit
C) Android Development Tools
D) Web Development Tools
سؤال
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
سؤال
What is the name of the folder that contains the R.java file?

A) src
B) res
C) bin
D) gen
سؤال
What method you should override to use Android menu system?

A) onCreateOptionsMenu()
B) onCreateMenu()
C) onMenuCreated()
D) onCreateContextMenu()
سؤال
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 developer can create a custom view by extending class Activity.
سؤال
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
سؤال
What two methods you have to override when implementing Android option menus?

A) onCreateOptionsMenu, onCreateContextMenu
B) onCreateContextMenu, onContextItemSelected
C) onCreateOptionsMenu, onOptionsItemSelected
D) onCreateOptionsMenu, onContextItemSelected
سؤال
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.
سؤال
Which of the following WebView methods allows you to manually load custom HTML markup?

A) loadData
B) loadHTML
C) loadCustomData
D) loadCustomHTML
سؤال
Which of the following is a correct Android Manifest statement?

A)
B)
C)
D)
سؤال
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
سؤال
Which of the following add a click listener to items in a listView?

A) onClickListener.
B) onItemClickListener.
C) onItemClicked.
D) onListItemClickListener.
سؤال
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)
سؤال
Which of the following classes is used by Intent to transfer data between different android components?

A) Extras
B) Bundle
C) Parcelables
D) PendingIntent
سؤال
Javascript is enabled by default in a WebView
سؤال
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
سؤال
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
سؤال
Which of the following is the base class of all UI components?

A) ListView
B) Layout
C) View
D) ViewGroup
سؤال
Which of the following is not an Activity lifecycle call-back method?

A) onStart
B) onCreate
C) onPause
D) onBackPressed
سؤال
Which of the following is a Java call-back method invoked when a view is clicked?

A) Detector
B) OnTapListener
C) OnClickDetector
D) OnClickListener
سؤال
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
سؤال
Which of the following makes a ListView Clickable?

A) setClickable(true)
B) setVisibility(View.Visible)
C) setEnabled(true)
D) setItemsEnabled(true)
سؤال
What two methods you have to override when implementing Android context menus?

A) onCreateOptionsMenu, onCreateContextMenu
B) onCreateContextMenu, onContextItemSelected
C) onCreateOptionsMenu, onOptionsItemSelected
D) onCreateOptionsMenu, onContextItemSelected
سؤال
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
سؤال
Which method is used to close an activity?

A) Destroy()
B) Finish()
C) Stop()
D) Close()
سؤال
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
سؤال
The DalvikVM core libraries are a subset of which of the following?

A) Java ME
B) Java SE
C) Java EE
D) JAX-WS
سؤال
An AsyncTask can be cancelled anytime from any thread.
سؤال
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
سؤال
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.
سؤال
Which of the following Activity life-cycle methods is invoked when a dialog is shown?

A) onPause()
B) onCreate()
C) onStop()
D) onDestroy()
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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
سؤال
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.
سؤال
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.
سؤال
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
سؤال
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)
سؤال
Which of the following classes should be extended to create a custom view?

A) View
B) ViewGroup
C) Context
D) Activity
سؤال
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
سؤال
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.
سؤال
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"
سؤال
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()
سؤال
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.
سؤال
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.
سؤال
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);
سؤال
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.
سؤال
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.
سؤال
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
سؤال
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
سؤال
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
سؤال
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.
سؤال
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
سؤال
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
سؤال
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.
سؤال
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
سؤال
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.
سؤال
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.
سؤال
Which of the following tools creates certificates for signing Android applications?

A) adb
B) logcat
C) keytool
D) certgen
سؤال
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)
سؤال
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()
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/224
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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
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
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()
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which is not included in the Android application framework?

A) WindowManager
B) NotificationManager
C) DialerManager
D) PackageManager
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
8
What is the parent class of all Activity widgets?

A) ViewGroup
B) Layout
C) View
D) Widget
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
17
What method you should override to use Android menu system?

A) onCreateOptionsMenu()
B) onCreateMenu()
C) onMenuCreated()
D) onCreateContextMenu()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
19
A developer can create a custom view by extending class Activity.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which of the following is a correct Android Manifest statement?

A)
B)
C)
D)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
29
Javascript is enabled by default in a WebView
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
32
Which of the following is the base class of all UI components?

A) ListView
B) Layout
C) View
D) ViewGroup
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
33
Which of the following is not an Activity lifecycle call-back method?

A) onStart
B) onCreate
C) onPause
D) onBackPressed
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
39
Which method is used to close an activity?

A) Destroy()
B) Finish()
C) Stop()
D) Close()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
42
An AsyncTask can be cancelled anytime from any thread.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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);
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
78
Which of the following tools creates certificates for signing Android applications?

A) adb
B) logcat
C) keytool
D) certgen
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 224 في هذه المجموعة.