Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
What is the name of the folder that contains the R.java file?
Select one:
a. src
b. bin
c. res
d. gen
Feedback
The correct answer is: gen
Question 2
Match:
ListView
Answer 1
Displays a scrolling single column list
GridView
Answer 2
Displays a scrolling grid of columns and row s
LinearLayout
Answer 3
Organizes its children into a single horizontal or vertical row
Question 3
Which layout is designed to block out an area on the screen to display a single item?
Select one:
a. TableLayout
b. FrameLayout
c. LinearLayout
d. RelativeLayout
The correct answer is: FrameLayout
Question 4
1
Question 5
You can populate an AdapterView such as ListView or GridView by binding the
AdapterView instance to an Adapter, which retrieves data from an external source and creates
a View that represents each data entry.
Select one:
True
False
The correct answer is 'True'.
Question 6
c. Layout file
d. Strings XML
The correct answer is: Layout file
Question 7
2
Question 8
d. Muffin
The correct answer is: Muffin
Question 9
The Android Software Development Kit (SDK) is all you need to develop applications for
Android
Select one:
a. False
b. True
The correct answer is: True
Question 10
3
A fragment is a modular section of an activity, which has its own lifecycle, receives its own input
events, and which you can add or remove while the activity is running.
Select one:
True
False
The correct answer is 'True'.
Question 11
d. Both a & b
The correct answer is: Create new id and add to resources
Question 12
Complete:
public static class ExampleFragment extends Fragment {
@Override
public View _____________ (LayoutInflater inflater, ViewGroup container, Bundle
savedInstanceState) {
return inflater.inflate (R.layout.example_fragment, container, false);
}
}
Select one:
a. onPause
b. onCreateView
c. onCreate
d. onView
The correct answer is: onCreateView
Question 13
Which is wrong?
Select one:
Question 14
b. Automatically
c. Emulated
d. None of the above
The correct answer is: Automatically
Question 15
Select one:
a. Linux
b. Java
c. XML
d. Windows
The correct answer is: Linux
Question 16
To create an emulator, you need an AVD. What does it stand for?
Select one:
a. Android Virtual Device
b. Android Virtual Display
c. Application Virtual Display
d. Active Virtual Device
The correct answer is: Android Virtual Device
Question 17
Match:
Toggle
Buttons
Answer 1
Text Fields
Answer 2
Chechboxes
Answer 3
Radio Buttons
Answer 4
Question 18
What Activity method you use to retrieve a reference to an Android view by using the id attribute
of a resource XML?
Select one:
a. findViewById (String id)
b. findViewByReference (int id)
c. retrieveResourceById (int id)
d. findViewById (int id)
The correct answer is: findViewById (int id)
Question 19
Where the positions of the children can be described in relation to each other or to the parent?
Select one:
a. LinearLayout
b. TableLayout
c. FrameLayout
d. RelativeLayout
Feedback
The correct answer is: RelativeLayout
Question 20
An activity can be thought of as corresponding to what?
Select one:
a. An object field
b. A Java class
c. A Java project
d. A method call
The correct answer is: A Java class
Moviles U3
Question 1
A Java class
A method call
An object field
A Jave project
The correct answer is: A Java class
Question 2
Resumed
The correct answer is: Resumed
Question 3
Starts a sub-activity
Starts an activity service
Send results to another activity
The correct answer is: Starts a sub-activity
Question 4
The activity lifecycle method onPause() is called when the activity becomes visible to the user.
Select one:
True
False
The correct answer is 'False'.
Question 5
Question 6
Implicit intents explicitly define the component which should be called by the Android system, by
using the Java class as identifier.
Select one:
True
False
The correct answer is 'False'.
Question 7
The activity lifecycle method onResume() is called if the activity get visible again and the user
starts interacting with the activity again.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 8
Select one:
Nothing
Return data
10
Question 9
Android supports:
Select one:
Explicit intents
Implicit intents
Question 10
The activity lifecycle method onCreate() is called when the activity is first created.
Select one:
True
False
The correct answer is 'True'.
Question 11
11
Question 12
Question 13
Question 14
12
True
False
The correct answer is 'True'.
Question 15
During an Activity lifetime, what is the first method callback invoked by the system?
Select one:
onRestore()
onStop()
onStart()
onCreate()
Feedback
The correct answer is: onCreate()
Question 16
What does the following code?
Intent intent = new Intent(this, Activity2.class);
intent.putExtra("dato1", "Esto es un ejemplo");
startActivity(intent);
Select one:
13
Question 17
onResume()
onCreate()
The correct answer is: onCreate()
Question 18
Optionally an intent can also contain additional data based on an instance of the Bundle class
which can be retrieved from the intend via the getExtras() method.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 19
If the Android system needs to terminate processes it follows a priority system. Match each
process status with its priority:
Empty
Service
Answer 1
Answer 2
14
Background
Foreground
Visible
Answer 3
Answer 4
Answer 5
Feedback
The correct answer is: Empty 5, Service 3, Background 4, Foreground 1, Visible 2
Question 20
Home button
Power button
Back button
Answer 1
Answer 2
Answer 3
Feedback
The correct answer is: Home button Android place the activity into the background, Power
button Lock the screen, Back button Android will kill the activity
Moviles U4
Question 1
The database tables should use the identifier _id for the primary key of the table
Select one:
True
False
The correct answer is 'True'.
15
Question 2
Question 3
Correct
It's not possible. We use content resolver to communicate with content provider
The correct answer is: It's not possible. We use content resolver to communicate with content
provider
Question 4
True
False
The correct answer is 'True'.
16
Question 5
Question 6
True
False
The correct answer is 'True'.
Question 7
17
Question 8
Is it possible to pass a lower version number to upgrade a SQLite database?
Select one:
Yes, it's possible
Question 9
Question 10
How to upgrade database tables?
Select one:
Pass different version number in incremental order and put all upgrading code in
onCreate() of SQLiteOpenHelper class
18
Pass different version number in any order and put all upgrading code in onUpgrade() of
SQLiteOpenHelper class
Pass different version number in decremental order and put all upgrading code in
onUpgrade() of SQLiteOpenHelper class
Pass different version number in incremental order and put all upgrading code in
onUpgrade() of SQLiteOpenHelper class
The correct answer is: Pass different version number in incremental order and put all upgrading
code in onUpgrade() of SQLiteOpenHelper class
Question 11
Question 12
content provider
file
The correct answer is: content provider
19
Question 13
By default it's stored in internal memory, but it is also possible to store it in sd card.
On sd card
On network server
Internal memory
The correct answer is: By default it's stored in internal memory, but it is also possible to store it
in sd card.
Question 14
What is the difference between contentprovider and contentresolver?
Select one:
They are not related with each other
Content provider is used to share private data with other applications and content resolver
is used to communicate with content provider from client application
Content provider is used to store private data and content resolver is used to communicate
with content provider from client application
Content resolver is used to share private data with other applications and content provider
is used to communicate with content provider from client application
The correct answer is: Content provider is used to share private data with other applications and
content resolver is used to communicate with content provider from client application
Question 15
A Cursor represents the result of a query and basically points to one row of the query result.
Select one:
True
False
The correct answer is 'True'.
20
Question 16
Question 17
A cursor object
A file
A data
An array
The correct answer is: A cursor object
Question 18
Which is the base class for working with a SQLite database in Android?
Select one:
SQLiteDatabase
Database
SQLiteData
21
SQLiteTable
The correct answer is: SQLiteDatabase
Question 19
Question 20
What does the following code?
return datablase.query ("myTable", null, null, null, null, null, "field1");
Select one:
Returns only the data of the column "field1"
Returns the selected row
22