Android Quiz

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Asgari.sematec
A
Asgari.sematec
Community Contributor
Quizzes Created: 7 | Total Attempts: 8,454
Questions: 10 | Attempts: 858

SettingsSettingsSettings
Android Quiz - Quiz


Questions and Answers
  • 1. 

    View pager is used for

    • A.

      Swiping Fragments

    • B.

      Swiping Activities

    • C.

      Paging down list items

    • D.

      View pager is not supported by android SDK

    Correct Answer
    A. Swiping Fragments
    Explanation
    The correct answer is "Swiping Fragments." A View Pager is a layout manager that allows the user to swipe left or right to navigate between different fragments within an activity. It is commonly used in scenarios where there is a need to display multiple screens or content in a single activity, such as in a tabbed layout or a slideshow. By swiping fragments, the user can easily switch between different sections of an app or view different pieces of content without having to navigate to a separate activity.

    Rate this question:

  • 2. 

    Nesting in layouts is not supported in android

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    Nesting in layouts is supported in Android. This means that you can have a layout inside another layout, allowing for more complex and nested UI designs. By nesting layouts, you can create a hierarchy of views and organize them in a structured manner. This feature is commonly used to create more advanced and dynamic user interfaces in Android applications.

    Rate this question:

  • 3. 

    Is this possible to add views in a layout dynamically?

    • A.

      Yes

    • B.

      No

    Correct Answer
    A. Yes
    Explanation
    Yes, it is possible to add views in a layout dynamically. This can be achieved by using methods such as `addView()` or `inflate()` in Android. These methods allow for the creation and addition of views programmatically at runtime, giving developers the flexibility to modify the layout based on certain conditions or user interactions. This dynamic approach enables the creation of more interactive and customizable user interfaces.

    Rate this question:

  • 4. 

    Which of the following does not belong to transitions? 

    • A.

      ViewSwitcher

    • B.

      ViewFlipper

    • C.

      ViewAnimator

    • D.

      ViewSlider

    Correct Answer
    D. ViewSlider
    Explanation
    The ViewSlider is not a standard Android transition class. It is not included in the Android SDK and does not belong to the set of predefined transition classes. The other options (ViewSwitcher, ViewFlipper, and ViewAnimator) are all valid transition classes in Android that can be used to animate the transition between views.

    Rate this question:

  • 5. 

    In nine patch image,corners are

    • A.

      Scalable

    • B.

      Not scalable

    • C.

      Can be either

    • D.

      None of the above

    Correct Answer
    B. Not scalable
    Explanation
    In a nine patch image, the corners are not scalable. This means that the content within the corners of the image will remain fixed and cannot be stretched or resized when the image is scaled. The purpose of having non-scalable corners is to ensure that certain elements or designs within the image, such as borders or patterns, maintain their original proportions and appearance regardless of the image size.

    Rate this question:

  • 6. 

    Fragment is not a part of activity

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The given statement is "Fragment is not a part of activity" and the correct answer is False. This means that the statement is incorrect. In reality, a fragment is indeed a part of an activity in Android development. Fragments are modular sections of an activity that can be combined or reused in different activities. They allow for a more flexible and modular design of user interfaces. Hence, the correct answer is False, as fragments are indeed a part of an activity.

    Rate this question:

  • 7. 

    Action bar can be associated to

    • A.

      Only activities

    • B.

      Only fragments

    • C.

      Both activities and fragments

    • D.

      None of the above

    Correct Answer
    A. Only activities
    Explanation
    The action bar can be associated with only activities because it is a UI component that provides a consistent navigation and menu options for the user within an activity. Fragments, on the other hand, do not have their own action bar. Instead, they can contribute to the action bar of the activity they are attached to. Therefore, the correct answer is that the action bar can only be associated with activities.

    Rate this question:

  • 8. 

    Rating bar can be resize

    • A.

      Yes

    • B.

      No

    Correct Answer
    B. No
    Explanation
    The given statement is "Rating bar can be resized". The correct answer is "No". This means that the rating bar cannot be resized.

    Rate this question:

  • 9. 

    Select depreciated components from the list below

    • A.

      Absolute Layout

    • B.

      Media Controller

    • C.

      Image Button

    • D.

      Grid Layout

    • E.

      Horizontal Scroll View

    Correct Answer
    A. Absolute Layout
    Explanation
    The correct answer is Absolute Layout. Absolute Layout is a component that has been deprecated in Android since API level 3. This means that it is no longer recommended for use in new applications as it may not be supported in future versions of Android. Developers are encouraged to use other layout components such as ConstraintLayout or LinearLayout instead.

    Rate this question:

  • 10. 

    Which one of the following is not included in API level 8 or lesser?

    • A.

      Spinner

    • B.

      Fragment

    • C.

      List View

    • D.

      Progress Bar

    Correct Answer
    B. Fragment
    Explanation
    The correct answer is Fragment. Fragment was introduced in Android API level 11 (Honeycomb) and is not included in API level 8 or lesser. The other options - Spinner, List View, and Progress Bar - are all included in API level 8 or lesser.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jan 31, 2017
    Quiz Created by
    Asgari.sematec
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.