0
Alien head

platforms and products Online Quiz - 26

Description: platforms and products Online Quiz - 26
Number of Questions: 20
Created by:
Tags: platforms and products

You can open and create database without SQLiteOpenHelper using

  1. Call OpenOrCreateDatabase()

  2. Call getReadableDatabase()

  3. Call getWriteableDatabase()

  4. None of above

Answer: 1

Queries in Android are returned as Cursor objects. Cursors are pointers to the result-set within the underlying data.

  1. True

  2. False

Answer: 2

By default, all Android databases are private, accessible only by the application that created them.

  1. True

  2. False

Answer: 2

Android databases are stored in the _________folder on your device (or emulator)

  1. /data/data//databases

  2. /data//databases

  3. /data/data/databases

  4. None of above

Answer: 1

There can be multiple out going transitions from the begin activity

  1. True

  2. False

Answer: 2

Sub process calls can have runtime determination mechanism

  1. True

  2. False

Answer: 2

When running processes from studio , does the workspace ask for user password?

  1. True

  2. False

Answer: 2

Organization holidays can be defined in -

  1. holiday rule

  2. calendar rule

  3. both

  4. none of the above

Answer: 1

What is/are the implementation strategies for automatic activities?

  1. method

  2. component

  3. procedure

  4. all of the above

Answer: 4

The android:layout_weight property indicates the proportion of the free space that should go to that widget. If you set it to be 1 for one widget and 2 for the other widget. How do you interpret this representation.

  1. Both Widgets will occupy the same free space.

  2. 2nd Widget will use twice the free space that 1st Widget takes

  3. 1st Widget will use twice the free space that 2nd Widget takes

  4. None of above

Answer: 2

By default, LinearLayout is _______.

  1. Left and top-aligned

  2. Only left aligned

  3. Only top aligned

  4. None of above

Answer: 1

An interesting aspect of the FrameLayout is that if you add more than one control to the layout, the size of the layout is computed as the size of the largest item in the container.

  1. True

  2. False

Answer: 2

Android defines two similar gravity attributes: android:gravity and android:layout_gravity. The android:gravity is a setting used by the container, whereas android:layout_gravity is used by the View.

  1. True

  2. False

Answer: 2

Which of the following layout offers a grid Model?

  1. TableLayout

  2. LinearLayout

  3. RalativeLayout

  4. FrameLayout

  5. None of above

Answer: 1

When the state of the CheckBox changes, you may register a listener object which is an instance of _________.

  1. onChangeListener()

  2. onCheckedChangeListener()

  3. onCheckBoxListener()

  4. None of above

Answer: 2

Choose the correct xml representation of below highlighted java code: CheckBox cbox = new CheckBox(this); cbox.setChecked(true);

  1. Android:state_checked=”true”

  2. android: android:state_checked=”true”

  3. android:state=”true”

  4. android:android:state=”true”

  5. None of above

Answer: 2

The following method gets the Id of the currently checked Radio Button.

  1. getRadioButtonId()

  2. getCheckedRadioButtonId()

  3. getCheckedId()

  4. None of above

Answer: 2

The root class of the RadioButton widget in hierarchy of Widgets is

  1. Button

  2. TextView

  3. CompoundView

  4. None of above

Answer: 2

The following method takes you to the root of the View Tree

  1. getParent()

  2. getRoot()

  3. getRootView()

  4. None of above

Answer: 3

What is true about Frame Layout?

  1. Lets child views specify their position relative to the parent view or to each other

  2. Enables child views to specify their own exact x/y coordinates on the screen

  3. Aligns all children in a single direction - Vertically or Horizontally

  4. Its basically a blank space on screen that can be later filled with a single object

  5. None of above

Answer: 4
+ View questions