Quiz
finals
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (80)
1Which of the following Java data types does SQLite support?
- ADate
- BString
- CBoolean
- DAll of the above
2SQLite is ________________-typed, meaning a column in a SQLite database does not reject a value of an incorrect data type
- Aarche
- Bstrongly
- Cstereo
- Dweakly
3The navigation drawer gets its options from the ______________ resource file.
- Amenu.xml
- Bstrings.xml
- Cdrawer.xml
- Dnavigation.xml
4A toolbar can be imported into your activity's layout by using the ____________ XML element.
- A<import>
- B<use>
- C<insert>
- D<include>
5When using Google Maps, a location is set by using the _____________ object.
- AAddress
- BCoordinate
- CLatLng
- DSatellite
6You can programmatically add a Google Map to an activity by adding a MapFragment. Your activity, however, will need to implement the ________________ interface
- AOnMapAsync
- BOnZoom
- COnMapFragment
- DOnMapReadyCallback
7When you create a Google Maps application by using the Google Maps Activity template in Android Studio, the default location on the map happens to be:
- ASydney, Australia
- BSan Francisco, USA
- CParis, France
- DBeijing, China
8When using google maps in your Android application, the API_KEY obtained from google is saved in the _____________ file.
- Astrings.xml
- BAndroidManifest.xml
- Cactivity_main.xml
- Dmenu.xml
9To get the current location of the device, you need to declare that the app requires __________________ permission in AndroidManifest.xml.
- AACCESS_WIFI
- BACCESS_MOBILE
- CACCESS_WIFI_LOCATION
- DACCESS_FINE_LOCATION
10You create a bound service by extending the _____________ class
- AIntentService
- BService
- CTaskService
- DBoundService
11You declare services in the AndroidManifest.xml file using the ____________ XML element.
- A<application>
- B<activity>
- C<service>
- D<task>
12A/An ______________ service is bound to another component such as an activity. This activity can interact with it and get results.
- Abound
- Bstarted
- Cscheduled
- Dasync
13A/An ___________ is an application component that can perform tasks in the background and does not have a user interface.
- AActivity
- BFragment
- CService
- DIntent
14When using the AsyncTask, the ____________________ method runs in the background thread.
- AonPreExecute()
- BdoInBackground()
- ConProgressUpdate()
- DonPostExecute()
15Use the __________________ to populate a list view with the values returned by the SQLite cursor.
- AArrayAdapter
- BSQLiteAdapter
- CSimpleCursorAdapter
- DDataAdapter
16A _____________ lets you read from and write to the SQLite database on your device.
- Apointer
- Breference
- Crecorder
- Dcursor
17The _____________ class gives you access to the SQLite database on your Android device.
- ASQLiteDatabase
- BSQLiteOpenHelper
- CCursor
- DContentValues
18You create an SQLite helper by extending the SQLiteOpenHelper class and implementing ___________ and __________ methods.
- AonStart(), onStop()
- BonCreate(), onUpgrade()
- ConCreate(), onDestroy()
- DonBegin(), onEnd()
19The easiest way to create a Google Maps application in Android Studio is to create an application based on the "Google Maps Activity" template. The google_maps_api.xml file provides you with a URL that helps you obtain a/an ______________ from google.
- AAPI_KEY
- BMap
- CLocation
- DConnector
20A/An ______________ lets you display short messages that the user can interact with.
- AToast
- BDialog
- CAlert
- DSnackbar
21Use a _________________________________________ to promote common or important use actions on the activity's main UI.
- AButtons
- BFloating action button
- CMenu items
- DAction bar
22You can enable swipe navigation by using _____________________.
- Alayout pager
- Btoolbar pager
- Cview pager
- Dfragment pager
23MongoDB data is stored as ____________.
- ABSON
- BXML
- CJava Objects
- DCSV
24The primary key of any MongoDB document is the ____ field.
- Aid
- B_id
- Cpk
- D_pk
25A collection and a document in MongoDB is equivalent to which of the SQL concepts respectively?
- ATable and Row
- BTable and Column
- CColumn and Row
- DDatabase and table
26You can execute raw SQL statements against your SQLite database using the SQLiteDatabase _____________________ method.
- Ainsert()
- Bupdate()
- Ccreate()
- DexecSQL()
27Name the class that manages the Fragments in an activity _______________________________.
- AFragmentManager
- BResourceManager
- CViewManager
- DLayoutManager
28The display text for an app is typically stored in ___________________ file.
- Amenu.xml
- Bvalues.xml
- Cstrings.xml
- Dresources.xml
29Android is based on _________________.
- AUNIX
- BLinux
- CWindows
- DFreeBSD
30Use the fragment pager adapter's _________________ method to tell the view pager how many pages it should have. Use its ________________ method to tell it which fragment should appear on each page.
- AgetPager(), getFragment()
- BgetAdapter(), getFragment()
- CgetCount(), getItem()
- DgetLength(), getTotal()
31Navigate through a SQLite cursor using the ______________ methods.
- Aread*
- Bnext*
- Cget*
- DmoveTo*
32What does the following statement do?
startActivity(new Intent(getApplicationContext(), SettingsActivity.class));- AIt starts the activity that's defined by the class named SettingsActivity.
- BIt starts the activity that's defined by the class named Intent.
- CIt creates a menu item for the class named SettingsActivity.
- DThis statement won't compile because it uses the wrong number of parameters.
33Which method do you typically override to handle the event that occurs when a user selects an item from the options menu?
- AonCreateOptionsMenu
- BonPrepareOptionsMenu
- ConOptionsItemSelected
- DonOptionsItemClick
34Which of the following menu item attributes displays the icon for the menu item in the action bar only when there's enough room in the action bar to fit the icon?
- Aandroid:icon="ifRoom"
- Bandroid:icon="showAsAction"
- Candroid:showAsAction="icon"
- Dandroid:showAsAction="ifRoom"
35What directory is used to store the XML for a menu?
- Ares\layout
- Bres\menu
- Cres\values
- Dres\xml
36By default, if you specify an icon for an item, Android uses that icon in the ________________, but it uses text for that item in the ________________ .
- Aoptions menu, action bar
- Bpopup menu, action bar
- Caction bar, options menu
- Dpopup menu, options menu
37An activity can include a/an ________________ that includes one or more ________________ .
- Amenu item, options menus
- Boptions menu, menu items
- Cpopup menu, options menus
- Doptions menu, popup menus
38If a device doesn't have a physical Menu button, a/an ________________ is displayed on the right side of the action bar to display the options menu.
- Aoptions menu
- Bfloating context menu
- Cpopup menu
- Daction overflow icon
39The TabManager class
- Ais available as part of the Android API.
- Bmust have its library added to your project before you can use it.
- Conly works with services
- Dis a class associated with Google Maps
40Within the class for an activity, you can use a/an ________________ object to add one or more tabs.
- ATabManager
- BTabSpec
- CTabHost
- DTabService
41You tell a view pager about its pages by implementing _________________________.
- Aarray adapter
- Bcursor adapter
- Csync adapter
- Dfragment pager adapter
42________________ is the process of converting latitude/longitude coordinates to street addresses and back
- AStress testing
- BLocalization
- CDistance Evaluation
- DGeocoding
43Use a _________________________ if you want to provide the user with a large number of shortcuts, or group them into sections.
- ALiner Layout
- BNavigation drawer
- CApp Bar
- DToolbar
44What kind of object can you use to add one or more markers to a map?
- ALocationRequest
- BLocationListener
- CGoogleMap
- DLocationClient
45Which of the following is false about version 2 of the Google Maps Android API
- Ait's got less features than version 1
- Buses fragments to provide more flexibility for working with different screen sizes
- Cdisplays faster than version 1
- Duses less bandwidth than version 1
46A/An ________________________ gives you access to Android's Location Services.
- AGoogleLocation
- BAndroidLocation
- CGoogleServices
- DLocationManager
47Which is false about using signals from the cell network or Wi-Fi hotspots to determine location?
- Aconsumes less battery power than GPS
- Bworks indoors and outdoors
- Cit works everywhere
- Dless accurate than GPS
48Which is not true about the open-source version of MapQuest?
- Ait gives you more flexibility for choosing map system components
- Bit's free even if your app generates more than 25,000 map requests per day
- Cit provides more features than Google Maps
- Dit allows you to use data from the OpenStreetMap project
49Google Maps provide many features, excluding
- Atraffic layers
- Bstreet view
- C3D buildings
- Dlive satellite images
50Which is true about using GPS to determine location?
- Ait is the most accurate method
- Bit works indoors
- Cit consumes less battery power than other methods
- Dit works everywhere
51Which is not a map type?
- Anormal
- Bhybrid
- Cterrain
- Dhigh-view
52To display a map, you cannot
- Acreate an activity that extends the FragmentActivity class
- Bcreate an activity that extends the FragmentService class
- Cdeclare an instance variable for the GoogleMap object
- Dadd code to the onStart method of the activity to get the GoogleMap object
53Assume you have the following constant value, a NotificationManager object named manager, and a Notification object named notification. Which of the following statements removes the notification?
final int NOTIFICATION_ID = 999;- Amanager.cancel(NOTIFICATION_ID);
- Bnotification.remove(NOTIFICATION_ID, manager);
- Cnotification.cancel(NOTIFICATION_ID);
- Dmanager.remove(notification);
54You cannot use a GoogleMap object to
- Astart an activity
- Bzoom in on a location
- Cadd one or more markers to a map
- Ddisplay a series of connected lines on a map
55What kind of object can you use to listen for location updates from Google Play services?
- ALocationManager
- BLocationRequest
- CLocationListener
- DLocationClient
56You cannot use a device's ________________ to find a device's current location.
- Acell signal
- BWi-Fi signal
- CGPS (Global Positioning System)
- DSerial Number
57Use the ___________________ to coordinate animations between views.
- Aconstraint layout
- Bcoordinator layout
- Clinear layout
- Dgrid layout
58Assume you have the following constant value, a NotificationManager object named manager, and a Notification object named notification. Which of the following statements displays the notification?
final int NOTIFICATION_ID = 999;- Anotification.display(NOTIFICATION_ID, manager);
- Bnotification.show(NOTIFICATION_ID, manager);
- Cmanager.expand(NOTIFICATION_ID, notification);
- Dmanager.notify(NOTIFICATION_ID, notification);
59What kind of object can you use to check if GPS is enabled?
- ALocationManager
- BLocationRequest
- CLocationListener
- DLocationClient
60Given the following Intent object for a service, which of the following statements starts the service?
Intent serviceIntent = new Intent(this, WeatherService.class);- Astart(serviceIntent);
- BstartActivity(serviceIntent);
- CstartIntent(serviceIntent);
- DstartService(serviceIntent);
61A ___________ service can run in the background indefinitely, even when the activity that started it is destroyed. Once the operation is done, it stops itself
- Abound
- Bscheduled
- Cstarted
- Dasync
62Which methods are called for an unbound service?
- AonCreate(), onStartCommand(), onDestroy()
- BonCreate(), onBind(), onUnbind()
- ConStartCommand(), onBind(), onStopCommand()
- DonStart(), onStop()
63To check if a network connection is available to the device, you can use a/an ________________ object.
- AConnectivity
- BConnectivityManager
- CNotification
- DNotificationManager
64A/an ________________ provides a way for a service to display a message even when another app is running.
- Apending intent
- Bback stack
- Carray list
- Dnotification
65A service
- Aruns in the background*
- Bincludes a user interface
- Cstops if the user switches to another app
- Druns in the foreground and background
66Both the getWriteableDatabase() and getReadableDatabase() methods return a _________________ object when working with SQLite.
- ACursor
- BSimpleCursorAdapter
- CSQLiteOpenHelper
- DSQLiteDatabase
67You can create a simple started service by extending the _______________ class, overriding the onHandleIntent() method and adding a public constructor.
- ABoundService
- BAsyncService
- CIntentService
- DService
68If you want to highlight which item in a navigation drawer is selected by default, add the menu items to a group and set the group's checkableBehavior attribute to ____________.
- Achecked
- BisActive
- CisHighlighted
- Dsingle
69A bound service
- Aruns only as long as another component is bound to it
- Bdoes not interact with other components such as activities
- Cruns until it's stopped by itself
- Dcan only be started by MainActivity
70Given a SQLiteDatabase object named db and a variable named taskID that contains a valid ID for a task, what does the following code do?
String where = "_id = ?";
String[] whereArgs = { Integer.toString(taskID) };
this.openReadableDB();
Cursor cursor = db.query("task", null, where, whereArgs, null, null, null);- Agets a Cursor object that contains multiple rows from the task table that correspond with the specified task ID
- Bgets a Cursor object that contains a single row from the task table that corresponds with the specified task ID
- Cgets a Cursor object that contains multiple rows from the list table that correspond with the specified task ID
- Dgets a Cursor object that contains a row from the list table that corresponds with the specified task ID
71What is FALSE about a started service
- Ait is never stopped
- Bdoes not interact with other components such as activities
- Cruns until it's stopped by another component
- Druns until it's stopped by itself
72When it's first displayed, a notification appears as an icon in the ________________ at the top of the screen.
- Aback stack
- Btoast area
- Ctask history
- Dnotification area
73Given a SQLiteDatabase object named db and a string that contains a valid CREATE TABLE statement, what does the following code do?
db.execSQL("CREATE TABLE IF NOT EXISTS Students (Name VARCHAR, Program VARCHAR)");- Acreates the specified table
- Binserts a row into the specified table
- Cgets all rows from the specified table
- Ddrops the specified table
74If you want to execute a task in the background once every hour, even if the app is no longer running, you can use ______________ to start a timer that runs the task.
- Athe application object
- Ban activity
- Ca service
- Da notification
75SQLite is an embedded database. This means that it
- Aruns in a server process that's accessed by client apps
- Bimplements most of the SQL standard
- Cis a relational database management system
- Druns in the same process as the client app
76Which methods are called for a bound service?
- AWhich methods are called for a bound service?
- BonCreate(), onBind(), onUnbind()
- ConStartCommand(), onBind(), onStopCommand()
- DonStart(), onStop()
77Which method of the SQLiteDatabase class can you use to add a row to a table?
- Aadd
- Bupdate
- Cput
- Dinsert
78To display or remove a notification, you can use a/an ________________ object.
- ANotificationManager
- BTask
- CTaskManager
- DNotification
79To test a service, it's common to use the ___________ class to print messages.
- APrinter
- BService
- CLog
- DObject
80To work with a database that's on your computer (not on a device or emulator), you can use a tool like the
- ATask table
- BDB Browser for SQLite
- CSQLiteOpenHelper
- DNotepad++
Informações
- Descrição
- Quiz sobre finals, criado por Victor Vuong em 12-04-2019.
- Autor
- Victor Vuong
- Idioma
- English
- Visualizações
- 112
- Histórico
- Criado em 12 abr 2019 · atualizado em 15 abr 2019
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz