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

Answer : All of the options

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

Answer : GPL

3
Android Runtime is made up of

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

Answer : Both A & B

4
What is true about DVM?

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

Answer : All of the options

5
Output file format from the DX tool

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

Answer : .Dex

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

Answer : All of the options

7
Every android app runs as a separate process

  1. true
  2. FALSE

Answer : true

8
Multiple instances of DVM can run at the same time in Android

  1. true
  2. FALSE

Answer : true

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

Answer : View System

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

Answer : Window Manager

11
Which component in the Android framework provides data to others

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

Answer : Content Provider

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

Answer : Resource Manager

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

Answer : Activity Manager

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

Answer : Package Manager

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

Answer : Telephony Manager

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

Answer : Surface Manager

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

Answer : All of the options

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

Answer : All of the options

19
Which component in Android is responsible for tracking object references across processes

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

Answer : BINDER

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

Answer : BINDER

21
_______ is a named memory block that is shared between processes in Android

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

Answer : ASHMEM

22
_______ is required to compile an android application and set up AVD

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

Answer : SDK platform

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

Answer : SDK

24
Android SDK includes

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

Answer : All of the options

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

Answer : All of the options

26
Input file for the DX tool is:

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

Answer : .CLASS

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

Answer : AAPT

28
_______ folder contains the XML files for the User Interface for an android application

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

Answer : values

29
_______ folder contains the XML file for all the reusable strings for an android application

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

Answer : values

30
________ is the first method called for an activity in an android application

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

Answer : onCreate()

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

Answer : Can use either or both of A & B

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

Answer : All of the options

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

Answer : Absolute

34
______   is a horizontal scrolling display of images, from a bound list.

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

Answer : Gallery

35
________  displays a scrolling grid of m columns and n rows.

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

Answer : Grid

36
________  displays a scrolling single column list.

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

Answer : ListView

37
________acts as a view frame to display a single object.

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

Answer : Frame

38
_____  provides a  vertically scrolling column of elements.

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

Answer : ScrollView

39
________  is a list that displays one item at a time

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

Answer : ViewFlipper

40
_______ layout  enables you to specify the location of child objects relative to each other

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

Answer : Relative

41
______ layout organizes its children into a single horizontal or vertical row

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

Answer : Linear

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.

Answer : Enables to specify the location of child objects relative to the parent in exact measurements (for example, pixels) .

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.

Answer : Is a horizontal scrolling display of images, from a bound list.

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.

Answer : Displays a scrolling grid of m columns and n rows.

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

Answer : Displays a scrolling single column list.

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.

Answer : Acts as a view frame to display a single object.

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.

Answer : Provides a vertically scrolling column of elements.

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.

Answer : Is a list that displays one item at a time

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

Answer : Enables to specify the location of child objects relative to each other

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
Answer : Organizes its children into a single horizontal or vertical row