Quiz Over Android Questions

85 Questions | Total Attempts: 1493

SettingsSettingsSettings
Quiz Over Android Questions - Quiz

ANDROID


Questions and Answers
  • 1. 
    What Android resource directory do we use store our .xlm layout file for tablets?
    • A. 

      Layout

    • B. 

      Layout-large

    • C. 

      Layout-tablet

    • D. 

      The name does not matter, it can be called anything

  • 2. 
    What Android resource directory do we use store our .xlm layout file for smartphones?
    • A. 

      Layout

    • B. 

      Layout-large

    • C. 

      Layout-phone

    • D. 

      The name does not matter, it can be called anything

  • 3. 
    What resource directory qualifier do we use for creating layout-large?
    • A. 

      Orientation

    • B. 

      Size

    • C. 

      UI Mode

    • D. 

      Ratio

  • 4. 
    What class should your view extend so you can draw on it?
    • A. 

      CanvasView

    • B. 

      SurfaceView

    • C. 

      DrawingView

    • D. 

      PaintView

  • 5. 
    An .xml file in layout-large can have the same name as an .xlm file in layout?
    • A. 

      True

    • B. 

      False

  • 6. 
    What listener should your view implement for touch?
    • A. 

      View.OnClickListener

    • B. 

      View.TouchListener

    • C. 

      View.OnTouchListner

    • D. 

      View.OnSwipeListener

  • 7. 
    What interface is used to listen for changes in the view's state?
    • A. 

      SurfaceHolder.Callback

    • B. 

      SurfaceListener.StateChange

    • C. 

      View.OnChangeListener

    • D. 

      SurfaceHolder.StateChange

  • 8. 
    What Layout should you use in your XML to hold your game view?
    • A. 

      FrameLayout

    • B. 

      LinearLayout

    • C. 

      RelativeLayout

    • D. 

      TableLayout

  • 9. 
    What method do we override when we extend the Thread class?
    • A. 

      Main

    • B. 

      Execute

    • C. 

      Run

    • D. 

      Start

  • 10. 
    What is the name of the object class within your game view that you draw on?
    • A. 

      Surface

    • B. 

      Canvas

    • C. 

      Table

    • D. 

      Screen

  • 11. 
    What 2 parameters does the method drawRect take?
    • A. 

      (Rect object, Paint object)

    • B. 

      (x,y,width,height,color)

    • C. 

      (Circle object, Paint object)

    • D. 

      No Parameters

  • 12. 
    What do we use the surfaceCreated method for?
    • A. 

      To create the surface

    • B. 

      To manipulate the DOM

    • C. 

      To start the game thread

    • D. 

      To change the surface

  • 13. 
    What does FCM stand for?
    • A. 

      Firebase Cloud Messaging

    • B. 

      FireBase Cloud Manager

    • C. 

      FireBase Cloud Mediator

    • D. 

      None of the Above

  • 14. 
    What is the predecessor to FCM called?
    • A. 

      Android Cloud to Device Messaging (C2DM)

    • B. 

      Android Cloud Messenger (ADM)

    • C. 

      Google Cloud Messaging (GCM)

    • D. 

      Google Cloud Notification System (GCNS)

  • 15. 
    Which of the following is not an advantage that FCM has over its predecessors?
    • A. 

      It has built-in analytics.

    • B. 

      It uses a built-in AES encryption algorithm to encrypt and decrypt messages to and from the FCM servers

    • C. 

      It handles both registration and retry logic.

    • D. 

      It allows for server-less solutions

  • 16. 
    1. What best describes a push notification?
    • A. 

      It is an SMS message.

    • B. 

      Where data is sent to a client by a software application or computing device, without a specific request from the client.

    • C. 

      Where data is sent to a client by a software application or computing device, after the client has made a request.

    • D. 

      A form of long-polling.

  • 17. 
    What method do we override for the Bluetooth receiver? 
    • A. 

      OnReceive

    • B. 

      GetReceiver

    • C. 

      SetReceiver

    • D. 

      OnBlueToothReceive

  • 18. 
    What is used to connect to low energy consumption devices?
    • A. 

      Bluetooth Low Energy

    • B. 

      Bluetooth Light

    • C. 

      Greentooth

    • D. 

      Regular Bluetooth

  • 19. 
    Which object stores the Bluetooth object?
    • A. 

      BlueTooth

    • B. 

      BlueToothReceiver

    • C. 

      BlueToothAdapter

    • D. 

      BlueToothObject

  • 20. 
    Which Actions are filtered for the receiver?​
    • A. 

      ACTION_DISCOVERY_STARTED, ACTION_DISCOVERY_FINISHED, ACTION_FOUND

    • B. 

      STARTED, FINISHED, FOUND

    • C. 

      INIT, END, DISCOVER

    • D. 

      ACTION_DISCOVERY_INIT, ACTION_DISCOVERY_END, ACTION_DISCOVER

  • 21. 
    What is the class we used to receive wi-fi scanning result?​
    • A. 

      BraordcasteReciver

    • B. 

      Receiver

    • C. 

      WiFiScanResult

    • D. 

      OnReceiver

  • 22. 
     What is the method applied to control Wi-Fi in WifiConfiguration class?​​
    • A. 

      AddNetwork()

    • B. 

      GetWifiState()

    • C. 

      UpdateNetwork()

    • D. 

      All of them

  • 23. 
    Where is used to unregisterReccevier()?
    • A. 

      OnPause()

    • B. 

      OnStop()

    • C. 

      OnResume()

    • D. 

      OnUpdate()

  • 24. 
    What permission we get to create WI-FI project?
    • A. 

      Access Internet

    • B. 

      ACCESS_WIFI_STATE

    • C. 

      CHANGE_WIFI_STATE

    • D. 

      All of them

  • 25. 
    Which library do we import to make application compatible with API 11 and above?
    • A. 

      Import android.support.v4.app;

    • B. 

      Import android.support.v7.app;

    • C. 

      Import android.support.v4.app.*;

    • D. 

      Import android.v4.app;

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.