Android Questions and Answers

Trend Nxt Android | Question and Answers

1
Android software stack for Modile devices include

  1. Operating System
  2. Middleware
  3. Applications
  4. All of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : All of the options [/bg_collapse]
2
Linux kernel in the Android stack goes by which of the licensing models?

  1. Apache
  2. GPL
  3. Open Source
  4. None of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : GPL[/bg_collapse]
3
Android Runtime is made up of

  1. Core Libraries
  2. DVM
  3. Both A & B
  4. None of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Both A & B [/bg_collapse]
4
What is true about DVM?

  1. Registry Based
  2. Executes DEX format
  3. Creates Constant Pool per class
  4. All of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : All of the options[/bg_collapse]
5
Output file format from the DX tool

  1. .Class
  2. .Dex
  3. .APK
  4. None of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : .Dex [/bg_collapse]
6
Dalvik is a register based VM which:

  1. Avoid instruction despatch
  2. Avoid unnecesary memory access
  3. Consume instruction stream efficiently
  4. All of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : All of the options[/bg_collapse]
7
Every android app runs as a separate process

  1. true
  2. FALSE

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : true[/bg_collapse]
8
Multiple instances of DVM can run at the same time in Android

  1. true
  2. FALSE

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : true[/bg_collapse]
9
Which component in the Android framework provides rich and extensible set of widgets to build applications

  1. Window Manager
  2. Content Provider
  3. View System
  4. Location Manager

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : View System[/bg_collapse]
10
Which component in the Android framework creates surfaces for applications to draw directly into the surface

  1. Window Manager
  2. Content Provider
  3. View System
  4. Location Manager

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Window Manager[/bg_collapse]
11
Which component in the Android framework provides data to others

  1. Window Manager
  2. Content Provider
  3. View System
  4. Location Manager

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Content Provider[/bg_collapse]
12
Which component in the Android framework controls access to the non code part of the application

  1. Window Manager
  2. View System
  3. Location Manager
  4. Resource Manager

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Resource Manager[/bg_collapse]
13
Which component in the Android framework is incharge of monitoring the life cycle of an application

  1. Window Manager
  2. Location Manager
  3. Lifecycle manager
  4. Activity Manager

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Activity Manager[/bg_collapse]
14
Which component in the Android framework holds information about the loaded applications in the system

  1. Window Manager
  2. Package Manager
  3. Application Manager
  4. Activity Manager

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Package Manager[/bg_collapse]
15
Which component in the Android framework provides access to the information about the connection state on the device

  1. Connection Manager
  2. Application Manager
  3. Telephony Manager
  4. Phone Manager

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Telephony Manager[/bg_collapse]
16
Which component in the Android framework manages access to the display subsystem

  1. Display Manager
  2. Device Manager
  3. Surface Manager
  4. Phone Manager

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Surface Manager[/bg_collapse]
17
Which of the following is true about the linux kernel in Android

  1. No GNU Libc support
  2. No native windowing support
  3. Does not include the full set of linux utilities
  4. All of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : All of the options[/bg_collapse]
18
Which wakelocks are provided by the android power manager

  1. Partical wake lock
  2. Screen dim wake lock
  3. Full wake lock
  4. All of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : All of the options[/bg_collapse]
19
Which component in Android is responsible for tracking object references across processes

  1. ASHMEM
  2. PMEM
  3. BINDER
  4. Low Memory Killer

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : BINDER[/bg_collapse]
20
Which component in android maintains a pool of available threads in each process, wake them up to handle IPC

  1. ASHMEM
  2. PMEM
  3. BINDER
  4. Low Memory Killer

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : BINDER[/bg_collapse]
21
_______ is a named memory block that is shared between processes in Android

  1. ASHMEM
  2. PMEM
  3. BINDER
  4. Low Memory Killer

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : ASHMEM[/bg_collapse]
22
_______ is required to compile an android application and set up AVD

  1. JDK
  2. SDK platform
  3. Eclipse
  4. None of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : SDK platform[/bg_collapse]
23
___________ contains all the Java code libraries needed to create applications that runs specifically on the Android platform

  1. JDK
  2. Eclipse
  3. SDK
  4. None of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : SDK[/bg_collapse]
24
Android SDK includes

  1. SDK platform
  2. SDK tools
  3. Samples
  4. All of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : All of the options[/bg_collapse]
25
Which of the following is required to develop and test android applications

  1. Android SDK
  2. Java SDK
  3. Android Tools
  4. All of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : All of the options[/bg_collapse]
26
Input file for the DX tool is:

  1. .JAVA
  2. .CLASS
  3. .DX
  4. None of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : .CLASS[/bg_collapse]
27
_______ tool is used to bundle the DEX files and other resources to make an android application

  1. DX
  2. AVD
  3. AAPT
  4. JAVAC

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : AAPT[/bg_collapse]
28
_______ folder contains the XML files for the User Interface for an android application

  1. drawable
  2. layout
  3. values
  4. src

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : values[/bg_collapse]
29
_______ folder contains the XML file for all the reusable strings for an android application

  1. drawable
  2. layout
  3. values
  4. src

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : values[/bg_collapse]
30
________ is the first method called for an activity in an android application

  1. onStart()
  2. onRestart()
  3. onCreate()
  4. onMain()

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : onCreate()[/bg_collapse]
31
What are the ways in which the UI can be defined designed in Android

  1. A) Declare UI elements in XML
  2. B) Instantiate layout elements at runtime in a Java file
  3. Can use either or both of A & B
  4. None of the above

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Can use either or both of A & B[/bg_collapse]
32
What are the advantages of designing UI in a XML

  1. Separates the presentations from code that controls the behavior
  2. UI descriptions can be external to the source code
  3. Helps in modifying the presentation of the app without a recompile
  4. All of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : All of the options[/bg_collapse]
33
______ layout enables to specify the location of child objects relative to the parent in exact measurements (for example, pixels).

  1. Relative
  2. Absolute
  3. Linear
  4. None of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Absolute[/bg_collapse]
34
______   is a horizontal scrolling display of images, from a bound list.

  1. Grid
  2. Gallery
  3. Frame
  4. ScrollView

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Gallery[/bg_collapse]
35
________  displays a scrolling grid of m columns and n rows.

  1. Grid
  2. Gallery
  3. Frame
  4. ScrollView

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Grid[/bg_collapse]
36
________  displays a scrolling single column list.

  1. GridView
  2. GalleryView
  3. ListView
  4. SrollView

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : ListView[/bg_collapse]
37
________acts as a view frame to display a single object.

  1. Absolute
  2. Relative
  3. Linear
  4. Frame

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Frame[/bg_collapse]
38
_____  provides a  vertically scrolling column of elements.

  1. Relative
  2. Absolute
  3. Linear
  4. ScrollView

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : ScrollView[/bg_collapse]
39
________  is a list that displays one item at a time

  1. ScrollView
  2. SurfaceView
  3. ViewFlipper
  4. None of the options

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : ViewFlipper[/bg_collapse]
40
_______ layout  enables you to specify the location of child objects relative to each other

  1. Linear
  2. Frame
  3. Relative
  4. Absolute

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Relative[/bg_collapse]
41
______ layout organizes its children into a single horizontal or vertical row

  1. Relative
  2. Absolute
  3. Linear
  4. Scroll

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Linear[/bg_collapse]
42
An Absolute layout in Android

  1. Enables to specify the location of child objects relative to the parent in exact measurements (for example, pixels) .
  2. Acts as a view frame to display a single object.
  3. Is a list that displays one item at a time
  4. Provides a vertically scrolling column of elements.

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Enables to specify the location of child objects relative to the parent in exact measurements (for example, pixels) .[/bg_collapse]
43
A Gallery in Android

  1. Displays a scrolling grid of m columns and n rows.
  2. Displays a scrolling single column list.
  3. Provides a vertically scrolling column of elements.
  4. Is a horizontal scrolling display of images, from a bound list.

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Is a horizontal scrolling display of images, from a bound list.[/bg_collapse]
44
A Grid in Android

  1. Displays a scrolling grid of m columns and n rows.
  2. Displays a scrolling single column list.
  3. Provides a vertically scrolling column of elements.
  4. Is a horizontal scrolling display of images, from a bound list.

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Displays a scrolling grid of m columns and n rows.[/bg_collapse]
45
A ListView in Android

  1. Displays a scrolling single column list.
  2. Provides a vertically scrolling column of elements.
  3. Is a horizontal scrolling display of images, from a bound list.
  4. Is a list that displays one item at a time

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Displays a scrolling single column list.[/bg_collapse]
46
A Frame layout in Android

  1. Provides a vertically scrolling column of elements.
  2. Is a list that displays one item at a time
  3. Acts as a view frame to display a single object.
  4. Is a horizontal scrolling display of images, from a bound list.

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Acts as a view frame to display a single object.[/bg_collapse]
47
A ScrollView in Android

  1. Is a horizontal scrolling display of images, from a bound list.
  2. Provides a vertically scrolling column of elements.
  3. Is a list that displays one item at a time
  4. Acts as a view frame to display a single object.

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Provides a vertically scrolling column of elements.[/bg_collapse]
48
A ViewFlipper in Android

  1. Is a list that displays one item at a time
  2. Acts as a view frame to display a single object.
  3. Provides a vertically scrolling column of elements.
  4. Is a horizontal scrolling display of images, from a bound list.

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Is a list that displays one item at a time[/bg_collapse]
49
A Relative layout in Android

  1. Enables to specify the location of child objects relative to the parent in exact measurements (for example, pixels) .
  2. Organizes its children into a single horizontal or vertical row
  3. Enables to specify the location of child objects relative to each other
  4. Is a list that displays one item at a time

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Enables to specify the location of child objects relative to each other[/bg_collapse]
50
A Linear layout in Android

  1. Organizes its children into a single horizontal or vertical row
  2. Enables to specify the location of child objects relative to the parent in exact measurements (for example, pixels) .
  3. Acts as a view frame to display a single object.
  4. Is a list that displays one item at a time

[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Organizes its children into a single horizontal or vertical row[/bg_collapse]