Test
Mobile Application Development - Android
Este test tiene tiempo límite, así que se abre en el reproductor de siempre.
Preguntas del test (50)
1What is the name of the views that allow to organize the position of the graphical components on the active screen?
- Aframes
- Bcontainers
- Clayouts
- Dgrids
2What is a view?
- AIt is the layout of the screen displayed to the user and which serves as an interface for your application.
- BIt is a graphical element which can be used in the user interface of your application.
- CIt is a structure which organizes the position of the different buttons, texts and images of the graphical user interface of your application.
3Is it possible to use multiple views on a single screen of the graphical user interface of your application?
- AYes
- BNo
4Is it possible to nest a layout within another one?
- AYes
- BNo
5Android buttons have a predefined style. The size and color of a button and its text cannot be changed.
- AVerdadero
- BFalso
6Associating a name (unique id) to a view is mandatory when using what kind of layout?
- Aa horizontal linear layout
- Ba relative layout
- Ca vertical linear layout
7Which actions can be triggered by a button click? (check all that apply)
- Astart a different activity
- Bchange appearance of other views of the same activity
- Cchange appearance of the button
8When an activity A starts an activity B (check all that apply):
- Athe activity B is not displayed immediately: it will come to the foreground only when the user presses the back button of the phone
- Bthe activity B comes to the foreground
- Cthe activity A is paused or stopped
- Dthe activity A is destroyed
9Activities are completely independent from one another, they cannot share data.
- AVerdadero
- BFalso
10What should you try to keep to a minimum when designing a mobile app?
- AThe number of buttons which call a given method.
- BThe amount of data to be typed in by the user using the soft keyboard.
- CThe amount of information passed from one activity to another.
- DThe number of activities.
11Android Studio is:
- AA tool that allows to copy large files on a smartphone.
- BA tool that allows to build and test Android applications.
- CA tool that allows to dump the memory of a smartphone.
12The AndroidManifest.xml file is a file that contains:
- AThe resources of the application
- BThe variable and the methods of an activity
- CThe properties of the application
13What is the purpose of the Android Virtual Device (AVD)?
- AModify the user interface of an application
- BEdit and compile Android applications
- CRun and test Android application on an emulator
14Before running an Android application on a Virtual device, you must connect your smartphone to your PC.
- AVerdadero
- BFalso
15The reason for selecting an older SDK release is that this ensures that the finished application will be able to run on the widest possible range of Android devices.
- AVerdadero
- BFalso
16Give the name of the 2 most basic activity templates we use in general to build a basic Android application.
- AScrolling Activity
- BEmpty Activity
- CBlank Activity
- DFullscreen Activity
- ELogin Activity
- FGoogle Maps Activity
17In the source code of an application, what function does it used to get a reference to a component of the user interface ?
- AfindViewById()
- BsetOnClickListener()
- COnClick()
- DfindByID()
18When an application is compiled a class named R is created. What does it contains ?
- AIt contains references to the application resources
- BIt contains references to the user interface resources
- CIt contains a reference to the component properties of the user interface
19The id property of a component can't be modified ?
- AVerdadero
- BFalso
20Which folder of your Android project holds the XML files that describe the graphical interfaces of the application?
- Ares/layout
- Bvalues
- Cres/drawable
- Dmanifests
- Egui
21You have defined a graphical user interface in an XML layout file named myUI. You create a new activity in a file name MyActivity.java. How to you specify that MyActivity displays myUI?
- AIt's impossible. Since the activity is named MyActivity, the system will try to load a layout named "activity_my.xml".
- Bn the onCreate method of MyActivity.java I call the setContentView method and I provide "R.layout.myUI" as parameter.
- CIn the onCreate method of MyActivity.java I use "myUI.display();"
- DIn the onCreate method of MyActivity.java I use ""R.id.myUI.display();"
22The visual structure of the user interface can be defined...
- Aexclusively in the Java code, by creating objects extending View or ViewGroup.
- Bexclusively in an XML file listing the different Views and ViewGroups
- Ceither in the Java code or in an XML file but not in both at the same time for a single "screen".
- Din the Java code and/or in an XML file
23What could be the interest of creating a button (or any other widget) from the Java code of an activity rather than from the associated XML layout file?
- AIt makes it possible to associate with the button a text which changes according to the language settings of the device.
- BIt requires fewer lines of code.
- CIt makes it possible to create the button only if a given condition is fulfilled at runtime.
24What could be the interest of creating a button (or any other widget) from an XML layout file rather than from the Java code of an activity?
- AIt separates the visual design and presentation aspects of the application from its control. Each aspect can even be taking care of by specialized persons.
- BThe design view allows for a preview of the result without the need to deploy the app on a (real or emulated) device.
- CIt makes the display of the application faster.
25Name the class [blank_start]-----------------[blank_end] which represents pop-up messages.
- AToast
26In addition to the activity or application context, and the message to display, which parameter does the makeText method from the Toast class take?
- Athe priority of the message (Toast.URGENT or Toast.NON_URGENT)
- Bthe background color of the pop-up (Color.BLUE, Color.BLACK...)
- Cthe duration of the pop-up (Toast.LENGTH_SHORT or Toast.LENGTH_LONG)
- Dthe position of the pop-up (Toast.TOP, Toast.CENTER, or Toast.BOTTOM)
27Which method from the Toast class allows you to display a pop-up message you've prepared?
- AbringToForeground()
- Bdisplay()
- CsendToFront()
- Dshow()
28In an XML layout file you specify that "onClick" a button must call the "doSomething" method. In the activity Java file you create a method "public void doSomething(View v)". What does the 'v' parameter refer to?
- AIt refers to the graphical preferences set by the user.
- BIt points to the layout onto which the button is positioned.
- CIt indicates the view which triggered the method call.
29The following code displays a pop-up message reading "hello" for a short duration:
Toast.makeText(getApplicationContext(), "hello", Toast.LENGTH_SHORT);- AVerdadero
- BFalso
30For how long (in second) does a Toast displayed for a duration "Toast.LENGTH_SHORT" stays on the screen?
- A2
- B3
- C3.5
- D4
31Button myButton = (Button)findViewById(R.id.myBbutton);
myButton.[blank_start]-------------[blank_end](Color.BLUE);
Which method must be called at the location indicated with "-----" to turn the background of the button to blue.?- AsetBackgroundColor
32Which layout allows you to specify the position of a view using other views as references?
- AGridLayout
- BLinearLayout
- CRelativeLayout
33Which among these is NOT a part of Android's native libraries
- AWebKit
- BDallvik
- COpenGL
- DSqLite
34Select a component which is NOT part of Android architecture.
- AAndroid Framework
- BLibraries
- CLinux Kernel
- DAndroid Document
35Required folder when Android project is created.
- Abuild/
- Bbuild
- Cbin
- Dbin/
36Adb stands for
- AAndroid Drive Bridge.
- BAndroid Debug Bridge.
- CAndroid Destroy Bridge.
- DAndroid Delete Bridge
37A fragment is a part or portion of
- Aan information
- Ba time
- Can activity
- Da thing
38Which of these are not one of the three main components of the APK?
- ADalvik Executables
- BResources
- CNative Libraries
- DWebKit
39An activity can be thought of as corresponding to what ?
- AA Java Project
- BA Java Class
- CA method Call
- DAn Object field
40What runs in the background and doesnot have any UI components ?
- AIntents
- BContent Providers
- CServices
- DApplications
41What built-in database is Android shipped with ?
- ASQLite
- BApache
- CMySQL
- DOracle
42You can shut down an activity by calling the method?
- AonDestory()
- BfinishActivity()
- Cfinish()
- DNone of the above
43What does the .apk extension stand for?
- AApplication Package
- BApplication Program Kit
- CAndroid Proprietary Kit
- DAndroid Package
44What is DDMS in android?
- ADalvik Device Memory Server
- BDevice Dalvik Memory Services
- CDalvik Device Monitoring Services
- DDalvik Debug Monitor Services
45Immediate base class for activity and services
- ACONTEXT
- BAPPLICATIONCONTEXT
- CCONTEXTAPP
- DONCREATE
46What is the name of the class used by Intent to store additional information?
- ABundle
- BDataStore
- CExtra
- DParcelable
47Which of the following is true about object arrayAdapter declared in the code below?
String[] items = {"Item 1","Item 2","Item 3");
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);
listView.setAdapter(arrayAdapter);- AIt creates four views for listView.
- BIt creates Buttons for each String in array items.
- CIt replaces the layout of the activity with three consecutive TextView items.
- DIt creates a TextView for each String in array items.
48Which of the following add a click listener to items in a listView?
- AonItemClicked
- BonItemClickListener
- ConListItemClickListener
- DonClickListener
49Consider the following the code:
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.game_menu, menu);
return true;
}
Which of the following is true about the code above?
( More than ONE may be Correct).- AThis method handles clicks and assign actions to menu items.
- BThis function inflates an XML file in the res/menu folder into menu items.
- CThe code is auto generated and should not be edited.
- DThis method inflates an XML file in the res/layout folder into layout.
50What is the name of the folder that contains the R.java file?
- Asrc
- Bres
- Cbin
- Dgen
Información
- Descripción
- ThirdYear Third Year Test sobre Mobile Application Development - Android, creado por Faheem Ahmed el 18/08/2016.
- Autor
- Faheem Ahmed
- Idioma
- English
- Visitas
- 1.494
- Historial
- Creado el 18 ago 2016 · actualizado el 18 may 2020
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test