Mobile Application Development - Android

Descrição

ThirdYear Third Year Quiz sobre Mobile Application Development - Android, criado por Faheem Ahmed em 18-08-2016.
Faheem Ahmed
Quiz por Faheem Ahmed, atualizado more than 1 year ago
Faheem Ahmed
Criado por Faheem Ahmed mais de 7 anos atrás
1473
0

Resumo de Recurso

Questão 1

Questão
What is the name of the views that allow to organize the position of the graphical components on the active screen?
Responda
  • frames
  • containers
  • layouts
  • grids

Questão 2

Questão
What is a view?
Responda
  • It is the layout of the screen displayed to the user and which serves as an interface for your application.
  • It is a graphical element which can be used in the user interface of your application.
  • It is a structure which organizes the position of the different buttons, texts and images of the graphical user interface of your application.

Questão 3

Questão
Is it possible to use multiple views on a single screen of the graphical user interface of your application?
Responda
  • Yes
  • No

Questão 4

Questão
Is it possible to nest a layout within another one?
Responda
  • Yes
  • No

Questão 5

Questão
Android buttons have a predefined style. The size and color of a button and its text cannot be changed.
Responda
  • True
  • False

Questão 6

Questão
Associating a name (unique id) to a view is mandatory when using what kind of layout?
Responda
  • a horizontal linear layout
  • a relative layout
  • a vertical linear layout

Questão 7

Questão
Which actions can be triggered by a button click? (check all that apply)
Responda
  • start a different activity
  • change appearance of other views of the same activity
  • change appearance of the button

Questão 8

Questão
When an activity A starts an activity B (check all that apply):
Responda
  • the activity B is not displayed immediately: it will come to the foreground only when the user presses the back button of the phone
  • the activity B comes to the foreground
  • the activity A is paused or stopped
  • the activity A is destroyed

Questão 9

Questão
Activities are completely independent from one another, they cannot share data.
Responda
  • True
  • False

Questão 10

Questão
What should you try to keep to a minimum when designing a mobile app?
Responda
  • The number of buttons which call a given method.
  • The amount of data to be typed in by the user using the soft keyboard.
  • The amount of information passed from one activity to another.
  • The number of activities.

Questão 11

Questão
Android Studio is:
Responda
  • A tool that allows to copy large files on a smartphone.
  • A tool that allows to build and test Android applications.
  • A tool that allows to dump the memory of a smartphone.

Questão 12

Questão
The AndroidManifest.xml file is a file that contains:
Responda
  • The resources of the application
  • The variable and the methods of an activity
  • The properties of the application

Questão 13

Questão
What is the purpose of the Android Virtual Device (AVD)?
Responda
  • Modify the user interface of an application
  • Edit and compile Android applications
  • Run and test Android application on an emulator

Questão 14

Questão
Before running an Android application on a Virtual device, you must connect your smartphone to your PC.
Responda
  • True
  • False

Questão 15

Questão
The 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.
Responda
  • True
  • False

Questão 16

Questão
Give the name of the 2 most basic activity templates we use in general to build a basic Android application.
Responda
  • Scrolling Activity
  • Empty Activity
  • Blank Activity
  • Fullscreen Activity
  • Login Activity
  • Google Maps Activity

Questão 17

Questão
In the source code of an application, what function does it used to get a reference to a component of the user interface ?
Responda
  • findViewById()
  • setOnClickListener()
  • OnClick()
  • findByID()

Questão 18

Questão
When an application is compiled a class named R is created. What does it contains ?
Responda
  • It contains references to the application resources
  • It contains references to the user interface resources
  • It contains a reference to the component properties of the user interface

Questão 19

Questão
The id property of a component can't be modified ?
Responda
  • True
  • False

Questão 20

Questão
Which folder of your Android project holds the XML files that describe the graphical interfaces of the application?
Responda
  • res/layout
  • values
  • res/drawable
  • manifests
  • gui

Questão 21

Questão
You 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?
Responda
  • It's impossible. Since the activity is named MyActivity, the system will try to load a layout named "activity_my.xml".
  • n the onCreate method of MyActivity.java I call the setContentView method and I provide "R.layout.myUI" as parameter.
  • In the onCreate method of MyActivity.java I use "myUI.display();"
  • In the onCreate method of MyActivity.java I use ""R.id.myUI.display();"

Questão 22

Questão
The visual structure of the user interface can be defined...
Responda
  • exclusively in the Java code, by creating objects extending View or ViewGroup.
  • exclusively in an XML file listing the different Views and ViewGroups
  • either in the Java code or in an XML file but not in both at the same time for a single "screen".
  • in the Java code and/or in an XML file

Questão 23

Questão
What 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?
Responda
  • It makes it possible to associate with the button a text which changes according to the language settings of the device.
  • It requires fewer lines of code.
  • It makes it possible to create the button only if a given condition is fulfilled at runtime.

Questão 24

Questão
What 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?
Responda
  • It separates the visual design and presentation aspects of the application from its control. Each aspect can even be taking care of by specialized persons.
  • The design view allows for a preview of the result without the need to deploy the app on a (real or emulated) device.
  • It makes the display of the application faster.

Questão 25

Questão
Name the class [blank_start]-----------------[blank_end] which represents pop-up messages.
Responda
  • Toast

Questão 26

Questão
In addition to the activity or application context, and the message to display, which parameter does the makeText method from the Toast class take?
Responda
  • the priority of the message (Toast.URGENT or Toast.NON_URGENT)
  • the background color of the pop-up (Color.BLUE, Color.BLACK...)
  • the duration of the pop-up (Toast.LENGTH_SHORT or Toast.LENGTH_LONG)
  • the position of the pop-up (Toast.TOP, Toast.CENTER, or Toast.BOTTOM)

Questão 27

Questão
Which method from the Toast class allows you to display a pop-up message you've prepared?
Responda
  • bringToForeground()
  • display()
  • sendToFront()
  • show()

Questão 28

Questão
In 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?
Responda
  • It refers to the graphical preferences set by the user.
  • It points to the layout onto which the button is positioned.
  • It indicates the view which triggered the method call.

Questão 29

Questão
The following code displays a pop-up message reading "hello" for a short duration: Toast.makeText(getApplicationContext(), "hello", Toast.LENGTH_SHORT);
Responda
  • True
  • False

Questão 30

Questão
For how long (in second) does a Toast displayed for a duration "Toast.LENGTH_SHORT" stays on the screen?
Responda
  • 2
  • 3
  • 3.5
  • 4

Questão 31

Questão
Button 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.?
Responda
  • setBackgroundColor

Questão 32

Questão
Which layout allows you to specify the position of a view using other views as references?
Responda
  • GridLayout
  • LinearLayout
  • RelativeLayout

Questão 33

Questão
Which among these is NOT a part of Android's native libraries
Responda
  • WebKit
  • Dallvik
  • OpenGL
  • SqLite

Questão 34

Questão
Select a component which is NOT part of Android architecture.
Responda
  • Android Framework
  • Libraries
  • Linux Kernel
  • Android Document

Questão 35

Questão
Required folder when Android project is created.
Responda
  • build/
  • build
  • bin
  • bin/

Questão 36

Questão
Adb stands for
Responda
  • Android Drive Bridge.
  • Android Debug Bridge.
  • Android Destroy Bridge.
  • Android Delete Bridge

Questão 37

Questão
A fragment is a part or portion of
Responda
  • an information
  • a time
  • an activity
  • a thing

Questão 38

Questão
Which of these are not one of the three main components of the APK?
Responda
  • Dalvik Executables
  • Resources
  • Native Libraries
  • WebKit

Questão 39

Questão
An activity can be thought of as corresponding to what ?
Responda
  • A Java Project
  • A Java Class
  • A method Call
  • An Object field

Questão 40

Questão
What runs in the background and doesnot have any UI components ?
Responda
  • Intents
  • Content Providers
  • Services
  • Applications

Questão 41

Questão
What built-in database is Android shipped with ?
Responda
  • SQLite
  • Apache
  • MySQL
  • Oracle

Questão 42

Questão
You can shut down an activity by calling the method?
Responda
  • onDestory()
  • finishActivity()
  • finish()
  • None of the above

Questão 43

Questão
What does the .apk extension stand for?
Responda
  • Application Package
  • Application Program Kit
  • Android Proprietary Kit
  • Android Package

Questão 44

Questão
What is DDMS in android?
Responda
  • Dalvik Device Memory Server
  • Device Dalvik Memory Services
  • Dalvik Device Monitoring Services
  • Dalvik Debug Monitor Services

Questão 45

Questão
Immediate base class for activity and services
Responda
  • CONTEXT
  • APPLICATIONCONTEXT
  • CONTEXTAPP
  • ONCREATE

Questão 46

Questão
What is the name of the class used by Intent to store additional information?
Responda
  • Bundle
  • DataStore
  • Extra
  • Parcelable

Questão 47

Questão
Which 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);
Responda
  • It creates four views for listView.
  • It creates Buttons for each String in array items.
  • It replaces the layout of the activity with three consecutive TextView items.
  • It creates a TextView for each String in array items.

Questão 48

Questão
Which of the following add a click listener to items in a listView?
Responda
  • onItemClicked
  • onItemClickListener
  • onListItemClickListener
  • onClickListener

Questão 49

Questão
Consider 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).
Responda
  • This method handles clicks and assign actions to menu items.
  • This function inflates an XML file in the res/menu folder into menu items.
  • The code is auto generated and should not be edited.
  • This method inflates an XML file in the res/layout folder into layout.

Questão 50

Questão
What is the name of the folder that contains the R.java file?
Responda
  • src
  • res
  • bin
  • gen

Semelhante

BMSC335 Lecture 3 Week 1
Maddie McIntyre
Peptic Ulcer
Miar Abdelhamid
Immunology
El Prs
Insurance Quiz
crabbette
15 matérias mais cobradas na OAB
Alessandra S.
ESTRUTURA DAS PALAVRAS - Morfologia
Viviana Veloso
Direito Civil - Personalidade Jurídica
Lucas Ávila
TEORIA DO DIREITO CONSTITUCIONAL #3
Eduardo .
Principais temas para estudar Português
Francine Matos
Direito Previdenciário INSS 2015
André Cavallini
Contextualização da Aula 2 - Gestão - Administração da Carreira Profissional
Fabrícia Assunção