100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

CP470 MC Questions with questions and answers 2024

Puntuación
-
Vendido
-
Páginas
21
Grado
A+
Subido en
16-10-2024
Escrito en
2024/2025

CP470 MC Questions with questions and answers 2024 Is the following XML tag legal syntax: "button Hello world /button" Yes No - ANSWERSNo Which was the first smartphone available that ran Android? Nexus one Motorola Droid HTC Dream - ANSWERSHTC Dream What operating system is Android based on? Linux Unix Windows - ANSWERSLinux Is the following XML code legal syntax: "listitemitem 1/item item / /list" Yes No - ANSWERSYes Does Android version 4.4 (KitKat) natively support Fragments (not using the support library)? Yes No Unknown - ANSWERSYes Does Android version 2.2 (Froyo) natively support Fragments (not using the support library)? Yes No Unknown - ANSWERSNo Is the following XML tag legal syntax: "ulliBananas li apples /ul" Yes No - ANSWERSNo Which folder would contain the resource: "R._page" res layout res/layout - ANSWERSres/layout Which folder would contain the resource: "R.drawable.a_picture

Mostrar más Leer menos
Institución
CP470 MC
Grado
CP470 MC

Vista previa del contenido

CP470 MC Questions with questions and
answers 2024
Is the following XML tag legal syntax: "<button> Hello world </button>"
Yes
No - ANSWERSNo

Which was the first smartphone available that ran Android?
Nexus one
Motorola Droid
HTC Dream - ANSWERSHTC Dream

What operating system is Android based on?
Linux
Unix
Windows - ANSWERSLinux

Is the following XML code legal syntax:
"<list><item>item 1</item> <item /> </list>"
Yes
No - ANSWERSYes

Does Android version 4.4 (KitKat) natively support Fragments (not using the support
library)?
Yes
No
Unknown - ANSWERSYes

Does Android version 2.2 (Froyo) natively support Fragments (not using the support
library)?
Yes
No
Unknown - ANSWERSNo

Is the following XML tag legal syntax: "<ul><li>Bananas <li> apples </ul>"
Yes
No - ANSWERSNo

Which folder would contain the resource: "R.layout.first_page"
res
layout
res/layout - ANSWERSres/layout

Which folder would contain the resource: "R.drawable.a_picture"

,res/layout
res/drawable
res/pictures - ANSWERSres/drawable

Which folder would contain the strings.xml file for the German language? values-de
values-ge
values - ANSWERSvalues-de

Which file specifies the starting Activity for an application?
manifest.xml
app_config.xml
AndroidManifest.xml - ANSWERSAndroidManifest.xml

When compiling your Android project, which gets compiled first?
Java Files
XML files - ANSWERSXML files

Which function gets called first in the Android Lifecycle:
onStart
onCreate
onResume - ANSWERSonCreate

Which function gets called last in the Android Lifecycle:
onPause
onStop
onDestroy - ANSWERSonDestroy

When is the bundle parameter for the onCreate(Bundle savedInstance) null?
When the application is loaded for the first time
When onSaveInstance was called previously - ANSWERSWhen the application is
loaded for the first time

If the bundle parameter for the onCreate(Bundle savedInstance) is not null, which
function gets called automatically?
onRestoreInstanceState(Bundle savedInstanceState) onSaveInstanceState(Bundle
outState) - ANSWERSonRestoreInstanceState(Bundle savedInstanceState)

What does the first parameter in getSharedPreferences("a_string",
Context.MODE_PRIVATE)?
The string to retrieve
The file name
The string to save - ANSWERSThe file name

When you call putString("string_one", "string_two"), which string that represents the
value (not name)?
"string_one"

, "string_two"
Unknown - ANSWERS"string_two"

Which function must you call to retrieve the saved string from the sharedPreferences
call:
putString("string_one", "string_two")
getString("string_one", "string_three")
getString("string_two", "string_three") - ANSWERSgetString("string_one",
"string_three")

Which function must you call to start an activity when you want to get data back?
startActivity()
startActivityForData()
startActivityForResult() - ANSWERSstartActivityForResult()

What function must you call to end an Activity?
endActivity()
finish()
finishActivity() - ANSWERSfinish()

If you call setResult(Activity.RESULT_OK), what will be the value of the request code
parameter in onActivityResult(int request, int result, Intent data)?
RESULT_OK
5
Unknown - ANSWERSUnknown

What is the proper format for creating a Toast message?
Toast.makeText(getApplicationContext(), "The message", Toast.LENGTH_SHORT);
Toast.makeText("The message", getApplicationContext(), Toast.LENGTH_SHORT);
Toast.makeText(Toast.LENGTH_SHORT, "The message", getApplicationContext()); -
ANSWERSToast.makeText(getApplicationContext(), "The message",
Toast.LENGTH_SHORT);

What design pattern is used when chaining many function calls for creating an
AlertDialog:
dialog.setMessage().setTitle().setPositiveButton().setNegativeButton().show();? The
alert pattern
The builder pattern
The command pattern - ANSWERSThe builder pattern

Which Log function should I call to show warning information?
Log.d()
Log.i()
Log.w() - ANSWERSLog.w()

Which of the following functions is required for implementing the ListAdapter interface?

Escuela, estudio y materia

Institución
CP470 MC
Grado
CP470 MC

Información del documento

Subido en
16 de octubre de 2024
Número de páginas
21
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$13.39
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
muchiracalorine

Conoce al vendedor

Seller avatar
muchiracalorine waldern university
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
2
Miembro desde
2 año
Número de seguidores
1
Documentos
137
Última venta
11 meses hace

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes