Quiz Over Android Questions

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 Dmarko0116
D
Dmarko0116
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,824
Questions: 85 | Attempts: 1,824

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

    Correct Answer
    B. Layout-large
    Explanation
    The correct answer is layout-large. This is because the layout-large resource directory is specifically designed to store layout files for tablets. Tablets typically have larger screens compared to phones, so using the layout-large directory ensures that the appropriate layout is used for tablets. The other options, such as layout and layout-tablet, are not specifically designated for tablets.

    Rate this question:

  • 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

    Correct Answer
    A. Layout
    Explanation
    The correct answer is "layout" because the "layout" directory is the standard resource directory in Android for storing XML layout files for smartphones. This directory is used to define the structure and appearance of the user interface components in an Android application. The other options, "layout-large" and "layout-phone" are not standard resource directories and "The name does not matter, it can be called anything" is incorrect as the directory name does matter in Android development.

    Rate this question:

  • 3. 

    What resource directory qualifier do we use for creating layout-large?

    • A.

      Orientation

    • B.

      Size

    • C.

      UI Mode

    • D.

      Ratio

    Correct Answer
    B. Size
    Explanation
    The resource directory qualifier "Size" is used for creating the layout-large. This qualifier is used to specify the size of the screen or device. In this case, it is used to create a layout specifically for larger screens or devices. By using the "Size" qualifier, developers can ensure that the layout is optimized and properly displayed on devices with larger screen sizes.

    Rate this question:

  • 4. 

    What class should your view extend so you can draw on it?

    • A.

      CanvasView

    • B.

      SurfaceView

    • C.

      DrawingView

    • D.

      PaintView

    Correct Answer
    B. SurfaceView
    Explanation
    A SurfaceView should be extended in order to draw on a view. SurfaceView provides a dedicated drawing surface that can be accessed by a separate thread, allowing for efficient rendering and updating of the view. It is commonly used for applications that require real-time animation or video playback. By extending SurfaceView, the view can take advantage of its features and methods to handle drawing operations effectively.

    Rate this question:

  • 5. 

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

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    In Android, the resources for different screen sizes are organized into different folders, such as "layout" for normal screens and "layout-large" for larger screens. When an .xml file is placed in the "layout-large" folder, it will be used for devices with larger screens. However, multiple files with the same name can exist in different folders, and the system will automatically select the appropriate file based on the device's screen size. Therefore, an .xml file in "layout-large" can have the same name as an .xml file in the "layout" folder.

    Rate this question:

  • 6. 

    What listener should your view implement for touch?

    • A.

      View.OnClickListener

    • B.

      View.TouchListener

    • C.

      View.OnTouchListner

    • D.

      View.OnSwipeListener

    Correct Answer
    C. View.OnTouchListner
    Explanation
    The correct answer is View.OnTouchListner. This listener should be implemented for touch events in order to handle touch interactions on a View. It allows the view to respond to touch events such as touch down, touch up, and touch move. By implementing this listener, the view can perform specific actions based on the touch events received from the user.

    Rate this question:

  • 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

    Correct Answer
    A. SurfaceHolder.Callback
    Explanation
    The correct answer is SurfaceHolder.Callback. The SurfaceHolder.Callback interface is used to listen for changes in the view's state. It provides methods such as surfaceCreated(), surfaceChanged(), and surfaceDestroyed() which are called when the surface is created, changed, or destroyed respectively. By implementing this interface and registering the callback with the SurfaceHolder, we can receive notifications about any changes in the view's state.

    Rate this question:

  • 8. 

    What Layout should you use in your XML to hold your game view?

    • A.

      FrameLayout

    • B.

      LinearLayout

    • C.

      RelativeLayout

    • D.

      TableLayout

    Correct Answer
    A. FrameLayout
    Explanation
    FrameLayout should be used in XML to hold the game view because it is designed to display a single item at a time. It is ideal for situations where views need to be stacked on top of each other, such as in a game where different layers or elements need to be displayed on top of each other. FrameLayout allows for easy manipulation and control of the game view within the layout.

    Rate this question:

  • 9. 

    What method do we override when we extend the Thread class?

    • A.

      Main

    • B.

      Execute

    • C.

      Run

    • D.

      Start

    Correct Answer
    C. Run
    Explanation
    When we extend the Thread class, we override the "run" method. This method is the entry point for the thread's logic and is automatically called when the thread is started using the "start" method. By overriding the "run" method, we can define the specific actions that the thread should perform.

    Rate this question:

  • 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

    Correct Answer
    B. Canvas
    Explanation
    The correct answer is Canvas. In game development, the Canvas is the object class within the game view that is used for drawing. It acts as a container for all the graphical elements that are displayed on the screen. The Canvas provides methods and properties to control the rendering of images, text, and other visual elements within the game. It is an essential component for creating and manipulating the visual aspects of the game environment.

    Rate this question:

  • 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

    Correct Answer
    A. (Rect object, Paint object)
    Explanation
    The correct answer is (Rect object, Paint object). The drawRect method is used to draw a rectangle on a canvas. It takes two parameters: a Rect object that specifies the size and position of the rectangle, and a Paint object that determines the style and color of the rectangle. By passing these two parameters, the method can accurately draw the desired rectangle on the canvas.

    Rate this question:

  • 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

    Correct Answer
    C. To start the game thread
    Explanation
    The surfaceCreated method is used to start the game thread. The game thread is responsible for running the game logic and updating the game state. By calling this method, the game thread is initialized and can start running, allowing the game to start functioning and responding to user input.

    Rate this question:

  • 13. 

    What does FCM stand for?

    • A.

      Firebase Cloud Messaging

    • B.

      FireBase Cloud Manager

    • C.

      FireBase Cloud Mediator

    • D.

      None of the Above

    Correct Answer
    A. Firebase Cloud Messaging
    Explanation
    Firebase Cloud Messaging (FCM) is a service provided by Firebase that allows developers to send notifications and messages to users on various platforms such as Android, iOS, and web. It is a reliable and scalable messaging solution that helps in engaging and retaining users by delivering important information in real-time. FCM is widely used by developers to send push notifications, in-app messages, and data messages to their app users. It is a powerful tool for app developers to improve user engagement and drive app usage.

    Rate this question:

  • 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)

    Correct Answer
    C. Google Cloud Messaging (GCM)
    Explanation
    The predecessor to FCM, which stands for Firebase Cloud Messaging, is called Google Cloud Messaging (GCM). GCM was a service provided by Google that allowed developers to send push notifications to Android devices. It was later replaced by FCM, which expanded its capabilities to include support for iOS devices as well.

    Rate this question:

  • 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

    Correct Answer
    B. It uses a built-in AES encryption algorithm to encrypt and decrypt messages to and from the FCM servers
    Explanation
    FCM (Firebase Cloud Messaging) is a messaging platform that offers several advantages over its predecessors. It has built-in analytics, which allows developers to track and analyze the performance of their messages. It handles both registration and retry logic, ensuring that messages are delivered reliably. Additionally, it allows for server-less solutions, enabling developers to send messages directly from their client applications without the need for a separate server. However, the statement that FCM uses a built-in AES encryption algorithm to encrypt and decrypt messages is incorrect. FCM does provide message security, but it utilizes other encryption methods such as SSL/TLS for secure communication.

    Rate this question:

  • 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.

    Correct Answer
    B. Where data is sent to a client by a software application or computing device, without a specific request from the client.
    Explanation
    A push notification is a type of notification where data is sent to a client by a software application or computing device without a specific request from the client. Unlike other forms of notifications, such as SMS messages or notifications triggered by client requests, push notifications are initiated by the application or device itself. They are commonly used to deliver timely and relevant information to users, such as news updates, social media notifications, or reminders.

    Rate this question:

  • 17. 

    What method do we override for the Bluetooth receiver? 

    • A.

      OnReceive

    • B.

      GetReceiver

    • C.

      SetReceiver

    • D.

      OnBlueToothReceive

    Correct Answer
    A. OnReceive
    Explanation
    We override the "onReceive" method for the Bluetooth receiver. This method is called when a broadcast is received by the receiver. By overriding this method, we can define our own logic to handle the received data or perform any necessary actions.

    Rate this question:

  • 18. 

    What is used to connect to low energy consumption devices?

    • A.

      Bluetooth Low Energy

    • B.

      Bluetooth Light

    • C.

      Greentooth

    • D.

      Regular Bluetooth

    Correct Answer
    A. Bluetooth Low Energy
    Explanation
    Bluetooth Low Energy is used to connect to low energy consumption devices. This technology is specifically designed for devices that require low power consumption, such as fitness trackers, smartwatches, and other IoT devices. Bluetooth Low Energy allows for efficient communication between devices while consuming minimal energy, thereby prolonging the battery life of the connected devices. It is a specialized version of Bluetooth that enables connectivity with low power devices.

    Rate this question:

  • 19. 

    Which object stores the Bluetooth object?

    • A.

      BlueTooth

    • B.

      BlueToothReceiver

    • C.

      BlueToothAdapter

    • D.

      BlueToothObject

    Correct Answer
    C. BlueToothAdapter
    Explanation
    The BluetoothAdapter object is responsible for storing the Bluetooth object. It serves as a bridge between the application and the Bluetooth hardware, allowing the application to interact with Bluetooth devices. Therefore, the correct answer is BlueToothAdapter.

    Rate this question:

  • 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

    Correct Answer
    A. ACTION_DISCOVERY_STARTED, ACTION_DISCOVERY_FINISHED, ACTION_FOUND
    Explanation
    The correct answer is ACTION_DISCOVERY_STARTED, ACTION_DISCOVERY_FINISHED, ACTION_FOUND. These actions are filtered for the receiver, meaning that the receiver will only receive and process these specific actions. The other options listed do not match the correct actions that are filtered for the receiver.

    Rate this question:

  • 21. 

    What is the class we used to receive wi-fi scanning result?​

    • A.

      BraordcasteReciver

    • B.

      Receiver

    • C.

      WiFiScanResult

    • D.

      OnReceiver

    Correct Answer
    A. BraordcasteReciver
    Explanation
    The correct answer is BroadcastReceiver.

    Rate this question:

  • 22. 

     What is the method applied to control Wi-Fi in WifiConfiguration class?​​

    • A.

      AddNetwork()

    • B.

      GetWifiState()

    • C.

      UpdateNetwork()

    • D.

      All of them

    Correct Answer
    D. All of them
    Explanation
    The correct answer is "All of them." This means that all three methods mentioned (addNetwork(), getWifiState(), and updateNetwork()) are used to control Wi-Fi in the WifiConfiguration class. Each method serves a different purpose in managing and manipulating Wi-Fi settings and configurations.

    Rate this question:

  • 23. 

    Where is used to unregisterReccevier()?

    • A.

      OnPause()

    • B.

      OnStop()

    • C.

      OnResume()

    • D.

      OnUpdate()

    Correct Answer
    B. OnStop()
    Explanation
    The method unregisterReceiver() is used to unregister a previously registered BroadcastReceiver. In the context of the question, the correct answer is onStop(). The onStop() method is called when an activity is no longer visible to the user and is about to be stopped. This makes it a suitable place to unregister any registered receivers to avoid memory leaks and unnecessary processing when the activity is not in the foreground.

    Rate this question:

  • 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

    Correct Answer
    B. ACCESS_WIFI_STATE
    Explanation
    To create a WI-FI project, we need the permission "ACCESS_WIFI_STATE". This permission allows the app to access information about the current Wi-Fi state, such as whether Wi-Fi is enabled or disabled, and the details of the currently connected network. This permission is necessary to gather the necessary information and make changes to the Wi-Fi settings if required. The other permissions mentioned, "Access Internet" and "CHANGE_WIFI_STATE", are not specifically related to creating a WI-FI project and may have different purposes.

    Rate this question:

  • 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;

    Correct Answer
    C. Import android.support.v4.app.*;
    Explanation
    The correct answer is "import android.support.v4.app.*;". This is the correct import statement to make the application compatible with API 11 and above. The android.support.v4.app library provides backward compatibility for newer features introduced in API 11 and above, allowing the application to run on older versions of Android.

    Rate this question:

  • 26. 

    Which method initiate the fragment?

    • A.

      OnViewCreate()

    • B.

      OnCreateView()

    • C.

      OnCreate()

    • D.

      OnAttach()

    Correct Answer
    B. OnCreateView()
    Explanation
    The onCreateView() method is responsible for creating and returning the View hierarchy associated with the fragment. It is called when the fragment needs to create its user interface. This method is typically used to inflate the layout XML file and initialize any views or data bindings. Therefore, onCreateView() is the method that initiates the fragment by creating its UI.

    Rate this question:

  • 27. 

    Fragments have their own lifecycle?

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    Fragments in Android have their own lifecycle, which means they can be created, started, resumed, paused, stopped, and destroyed independently of the activity they are associated with. This allows for more flexibility in managing UI components and handling user interactions within a single activity. Fragments can also retain their state during configuration changes, such as screen rotations, which further demonstrates their separate lifecycle. Therefore, the statement "Fragments have their own lifecycle" is true.

    Rate this question:

  • 28. 

    Why is Fragment Manager used?​

    • A.

      To get activity

    • B.

      For transaction between fragments

    • C.

      To call fragments

    • D.

      To stop activity

    Correct Answer
    B. For transaction between fragments
    Explanation
    Fragment Manager is used for managing fragments within an activity. It provides methods to add, replace, remove, and perform other transactions between fragments. This allows for dynamic and flexible UI designs, where fragments can be added or replaced based on user interactions or other events. By using Fragment Manager, developers can easily handle the navigation and interaction between different fragments within an activity.

    Rate this question:

  • 29. 

    Fragment manager is used for which actions?

    • A.

      Add, remove, delete

    • B.

      Add, remove, replace

    • C.

      Attach, detach, destroy

    • D.

      None of the above

    Correct Answer
    A. Add, remove, delete
    Explanation
    The correct answer is "Add, remove, delete." Fragment manager is used to perform these actions on fragments in an Android application. Fragments are modular components that can be added, removed, or deleted from an activity dynamically. The fragment manager provides methods to add fragments to an activity, remove fragments from an activity, and delete fragments from memory. These actions help in managing the user interface and the lifecycle of fragments in an Android application.

    Rate this question:

  • 30. 

    Fragments use getActivity() instead of MainActivity.this?

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    Fragments use getActivity() instead of MainActivity.this because a fragment is a modular section of an activity that has its own lifecycle and can be added or removed from the activity dynamically. The getActivity() method returns the activity that the fragment is currently associated with, allowing the fragment to access the activity's methods and resources. Using MainActivity.this directly may cause issues because the fragment may be associated with a different activity at different times, while getActivity() ensures that the correct activity is always referenced.

    Rate this question:

  • 31. 

    1 activity cannot have multiple fragments?​

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    False. This statement is incorrect. In Android, it is possible for an activity to have multiple fragments. Fragments are reusable components that can be added or removed from an activity dynamically, allowing for flexible and modular UI designs. Multiple fragments can be added to the same activity, each representing a different part of the UI or functionality. This allows for better organization and separation of concerns within an application.

    Rate this question:

  • 32. 

    SetContentView(R.layout.activity_main) is used in activity to set layout?

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    The setContentView(R.layout.activity_main) method is used in an activity to set the layout for that activity. This method takes the layout file "activity_main.xml" and inflates it, meaning it converts the XML code into the corresponding View objects and displays them on the screen. By setting the layout using this method, the activity knows which UI elements to display and how to arrange them. Therefore, the given answer "True" is correct.

    Rate this question:

  • 33. 

    What are the functionalities in asyncTask in android?​

    • A.

      OnPreExecute()

    • B.

      DoInBackground()

    • C.

      OnProgressUpdate()

    • D.

      OnPostExecute()

    • E.

      Above All

    Correct Answer
    E. Above All
    Explanation
    The correct answer is "Above All". This suggests that all of the mentioned functionalities, onPreExecute(), doInBackground(), onProgressUpdate(), and onPostExecute(), are included in the asyncTask in Android. "Above All" implies that all of the mentioned functionalities are present and important in the asyncTask.

    Rate this question:

  • 34. 

    How to store heavy structured data in android?​

    • A.

      Shared Preferences

    • B.

      Cursor

    • C.

      SQlite database

    • D.

      Not possible

    Correct Answer
    C. SQlite database
    Explanation
    The correct answer is SQLite database. SQLite is a lightweight, file-based database system that is suitable for storing heavy structured data in Android applications. It provides a simple and efficient way to store and retrieve data, and supports complex queries and transactions. Shared Preferences are used for storing small amounts of data, while a Cursor is a result set returned by a database query. The option "Not possible" is incorrect as it is indeed possible to store heavy structured data in Android using SQLite database.

    Rate this question:

  • 35. 

    How to fix crash using log cat in android?

    • A.

      Gmail

    • B.

      Log cat contains the exception name along with the line number

    • C.

      Google search

    • D.

      None of the above.

    Correct Answer
    B. Log cat contains the exception name along with the line number
    Explanation
    The correct answer is "log cat contains the exception name along with the line number." This means that when a crash occurs in an Android application, the log cat tool can be used to view the logs and identify the specific exception that caused the crash, along with the line number in the code where it occurred. This information is crucial for developers to debug and fix the crash.

    Rate this question:

  • 36. 

    What is fragment life cycle in android? 

    • A.

      OnReceive()

    • B.

      OnCreate()

    • C.

      OnAttach()->onCreate() -> onCreateView() -> onActivityCreated() -> onStart() -> onResume()

    • D.

      None of the above

    Correct Answer
    C. OnAttach()->onCreate() -> onCreateView() -> onActivityCreated() -> onStart() -> onResume()
    Explanation
    The correct answer is the sequence of methods onAttach() -> onCreate() -> onCreateView() -> onActivityCreated() -> onStart() -> onResume(). This sequence represents the lifecycle of a fragment in Android. The onAttach() method is called when the fragment is associated with its activity, onCreate() is called to do initial setup, onCreateView() is called to create the fragment's view hierarchy, onActivityCreated() is called after the activity's onCreate() method has returned, onStart() is called when the fragment becomes visible, and onResume() is called when the fragment is interacting with the user.

    Rate this question:

  • 37. 

    What does the main GamePanel extend?

    • A.

      SurfaceHolder

    • B.

      SurfaceView`

    • C.

      SurfaceTexture

    • D.

      Canvas

    Correct Answer
    B. SurfaceView`
    Explanation
    The main GamePanel extends SurfaceView.

    Rate this question:

  • 38. 

    In an onTouchEvent, what signifies the user has lifted their finger off the screen?

    • A.

      MotionEvent.ACTION_OFF

    • B.

      MotionEvent.ACTION_MOVE

    • C.

      Motion.Event.ACTION_DOWN

    • D.

      MotionEvent.ACTION_UP

    Correct Answer
    D. MotionEvent.ACTION_UP
    Explanation
    In an onTouchEvent, MotionEvent.ACTION_UP signifies that the user has lifted their finger off the screen. This constant is used to detect the event when the user's finger is no longer in contact with the screen. It is commonly used to handle touch events such as button clicks or gestures that require the user to release their finger from the screen.

    Rate this question:

  • 39. 

    What two arguments does the MainThread method take?

    • A.

      SurfaceTexture, SurfaceView

    • B.

      SurfaceView, SurfaceHolder

    • C.

      SurfaceHolder, GamePanel

    • D.

      SurfaceView, GamePanel

    Correct Answer
    C. SurfaceHolder, GamePanel
    Explanation
    The MainThread method takes two arguments: SurfaceHolder and GamePanel. The SurfaceHolder argument is used to hold the surface of the game panel, while the GamePanel argument is used to represent the game panel itself. These arguments are necessary for the MainThread method to properly handle the rendering and updating of the game panel's surface.

    Rate this question:

  • 40. 

    When creating a game Obstacles, what arguments does it take?

    • A.

      Height, Colour, Starting X position, Starting Y Position, Player

    • B.

      Width, Height, Starting X Position, Starting Y Position, Colour

    • C.

      Width, Height, Player Object Size, Colour

    • D.

      Player Object Size, Color, Width

    Correct Answer
    A. Height, Colour, Starting X position, Starting Y Position, Player
    Explanation
    The correct answer is Width, Height, Starting X Position, Starting Y Position, Colour. This is because when creating a game with obstacles, it is necessary to define the dimensions of the obstacles, their position on the screen, and their color. The width and height determine the size of the obstacle, while the starting X and Y positions determine where it will be placed on the screen. The color determines the visual appearance of the obstacle. The player object size and player are not relevant to the creation of obstacles.

    Rate this question:

  • 41. 

    What method is used by the Main Thread to make changes to the Game Panel?

    • A.

      Check()

    • B.

      Update()

    • C.

      IsChanged()

    • D.

      Draw()

    Correct Answer
    B. Update()
    Explanation
    The Main Thread uses the Update() method to make changes to the Game Panel. This method is responsible for updating the game logic and state, such as moving game objects, checking for collisions, and updating scores. It is typically called in a loop to continuously update the game state. By calling the Update() method, the Main Thread ensures that any necessary changes to the Game Panel are made in a timely manner, allowing for smooth gameplay.

    Rate this question:

  • 42. 

    Main Thread uses ________ to lock ​the games framerate to 30 fps:

    • A.

      System.nanotime()

    • B.

      SurfaceView

    • C.

      System.Max()

    • D.

      Update()

    Correct Answer
    A. System.nanotime()
    Explanation
    The Main Thread uses System.nanotime() to lock the game's framerate to 30 fps. System.nanotime() is a method in Java that returns the current value of the most precise available system timer in nanoseconds. By using this method, the Main Thread can accurately measure the time taken for each frame and adjust the game's logic and rendering accordingly to maintain a consistent framerate of 30 frames per second.

    Rate this question:

  • 43. 

    Which classes implement the GameObject interface?

    • A.

      Rectangle Player

    • B.

      Obstacle

    • C.

      A and b

    • D.

      None of these

    Correct Answer
    C. A and b
    Explanation
    The correct answer is "a and b". The classes "Rectangle" and "Player" both implement the GameObject interface. This means that these classes have implemented all the methods defined in the GameObject interface and can be used interchangeably wherever a GameObject is expected. The class "Obstacle" does not implement the GameObject interface, so it is not included in the correct answer.

    Rate this question:

  • 44. 

    Which class does SurfaceView implement to listen for changes on the drawable surface?

    • A.

      SurfaceHolder.CallBack()

    • B.

      SurfaceHolder.Listener()

    • C.

      SurfaceView.CallBack()

    • D.

      Surfaceview.Listener()

    Correct Answer
    A. SurfaceHolder.CallBack()
    Explanation
    SurfaceView implements the SurfaceHolder.Callback() interface to listen for changes on the drawable surface. The SurfaceHolder.Callback() interface provides methods that are called when the surface is created, changed, or destroyed. By implementing this interface, SurfaceView can receive notifications and perform actions accordingly, such as updating the content of the surface or handling user input.

    Rate this question:

  • 45. 

    Cloud computing is the use of remote servers to authenticate users and host services?

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    Cloud computing is the use of remote servers to store, manage, and process data, rather than using local servers or personal computers. While it can involve authentication of users and hosting services, it is not limited to just those functions. Therefore, the statement that cloud computing is solely the use of remote servers to authenticate users and host services is false.

    Rate this question:

  • 46. 

    What is not an advantage of cloud computing?

    • A.

      Automated back up

    • B.

      Required connection

    • C.

      Less device storage needed

    • D.

      None of the above

    Correct Answer
    B. Required connection
    Explanation
    The correct answer is "Required connection." This is not an advantage of cloud computing because it means that users need a stable internet connection in order to access and use cloud services. This can be a limitation for individuals or businesses in areas with unreliable or limited internet connectivity.

    Rate this question:

  • 47. 

    What feature/features makes google drive an ideal choice for small business?

    • A.

      Small user fee

    • B.

      Reduced data storage

    • C.

      Automated reports on user’s data

    • D.

      All of the above

    Correct Answer
    B. Reduced data storage
    Explanation
    Google Drive is an ideal choice for small businesses because it offers reduced data storage. This means that small businesses can store a large amount of data without worrying about running out of storage space. This feature is beneficial for small businesses as it allows them to store and access important files and documents without the need for physical storage devices. Additionally, reduced data storage also helps in improving the overall efficiency and productivity of the business by providing easy access to files from anywhere and at any time.

    Rate this question:

  • 48. 

    Google drive provides simple and free cloud storage for individuals?

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    Google Drive does indeed provide simple and free cloud storage for individuals. With Google Drive, users can store and access their files from anywhere, as long as they have an internet connection. It allows users to store documents, photos, videos, and more, making it a convenient and versatile solution for personal storage needs. Additionally, Google Drive offers collaboration features, allowing users to share files and work on them together in real-time.

    Rate this question:

  • 49. 

    It would be a bad idea to store this kind of data on google drive?

    • A.

      Critical app data

    • B.

      User login info

    • C.

      User payment details

    • D.

      All of the above

    Correct Answer
    D. All of the above
    Explanation
    Storing critical app data, user login information, and user payment details on Google Drive would be a bad idea because it poses a significant security risk. Google Drive is a cloud storage platform that may not have the necessary security measures in place to protect sensitive data. Storing such information on a more secure and dedicated platform would be a better choice to ensure the confidentiality and integrity of the data.

    Rate this question:

  • 50. 

     Only text files can be created, opened or modified?

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    Text files are not the only type of files that can be created, opened, or modified. Other types of files, such as image files, audio files, video files, and document files, can also be created, opened, or modified. Therefore, the statement that only text files can be created, opened, or modified is false.

    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
  • Dec 14, 2016
    Quiz Created by
    Dmarko0116
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.