Quiz Over Android Questions

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Dmarko0116
D
Dmarko0116
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,828
| Attempts: 1,828
SettingsSettings
Please wait...
  • 1/85 Questions

    We can also use firebase as a CDN to host images/videos/files?

    • True
    • False
Please wait...
About This Quiz

This quiz focuses on Android development, specifically UI design for different device types. It assesses knowledge on resource directories, view extensions, and touch listeners, crucial for optimizing Android apps across devices.

Quiz Over Android Questions - Quiz

Quiz Preview

  • 2. 

    Fragments have their own lifecycle?

    • True

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

  • 3. 

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

    • True

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

  • 4. 

    If ​android app needs to access internet, do we need to add internet permissions in android manifest?

    • True

    • False

    Correct Answer
    A. True
    Explanation
    In order for an Android app to access the internet, it needs to have internet permissions added in the Android manifest. This is necessary because the app requires permission from the device to establish network connections, send and receive data over the internet. Without these permissions, the app will not be able to access the internet functionality.

    Rate this question:

  • 5. 

    Google drive provides simple and free cloud storage for individuals?

    • True

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

  • 6. 

    What permission in the manifest allows you to access information about Wi-Fi networks? 

    • ACCESS_WIFI_STATE

    • CHANGE_WIFI_STATE

    • ACCESS_COARSE_LOCATION

    • ACCESS_FINE_LOCATION

    Correct Answer
    A. ACCESS_WIFI_STATE
    Explanation
    The correct answer is ACCESS_WIFI_STATE. This permission allows the app to access information about Wi-Fi networks, such as whether Wi-Fi is enabled, the names of connected Wi-Fi devices, and other Wi-Fi network information. This permission is necessary for apps that need to interact with Wi-Fi networks, such as displaying available Wi-Fi networks or connecting to a specific Wi-Fi network.

    Rate this question:

  • 7. 

    In the Google Awareness API, a Fence is _

    • An API included in Google Awareness used to detect for specific circumstances to be true in order to allow the application to respond to changes in the user’s physical world.

    • A white picketed wall surrounding one’s front lawn, popular among Colonial era, Caucasian Americans.

    • A sport in which two individual dual with thin flexible swords, known as foils.

    • An individual who knowingly purchases stolen goods, intended for later resale.

    Correct Answer
    A. An API included in Google Awareness used to detect for specific circumstances to be true in order to allow the application to respond to changes in the user’s physical world.
    Explanation
    The correct answer is an API included in Google Awareness used to detect specific circumstances to allow the application to respond to changes in the user's physical world. This explanation accurately describes what a Fence is in the context of the Google Awareness API. It emphasizes that a Fence is a tool that detects certain conditions and enables the application to react accordingly to the changes happening in the user's physical environment.

    Rate this question:

  • 8. 

    Fragments use getActivity() instead of MainActivity.this?

    • True

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

  • 9. 

    How to fix crash using log cat in android?

    • Gmail

    • Log cat contains the exception name along with the line number

    • Google search

    • None of the above.

    Correct Answer
    A. 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:

  • 10. 

    What is fragment life cycle in android? 

    • OnReceive()

    • OnCreate()

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

    • None of the above

    Correct Answer
    A. 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:

  • 11. 

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

    • True

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

  • 12. 

    1 activity cannot have multiple fragments?​

    • True

    • False

    Correct Answer
    A. 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:

  • 13. 

    What are the steps to connect your app to firebase?

    • Copy Service json to app folder

    • Add dependencies to gradle file

    • Copy your package name and paste on firebase

    • All of these

    Correct Answer
    A. All of these
    Explanation
    The correct answer is "All of these" because connecting an app to Firebase requires multiple steps, including copying the Service json file to the app folder, adding dependencies to the gradle file, and copying the package name and pasting it on Firebase. All of these steps are necessary to successfully connect the app to Firebase.

    Rate this question:

  • 14. 

    Firebase is platform open for?

    • IOS

    • Android

    • Websites

    • All of these

    Correct Answer
    A. All of these
    Explanation
    Firebase is an open platform that is available for iOS, Android, and websites. It provides a wide range of tools and services for developers to build and manage mobile and web applications. With Firebase, developers can easily integrate features like authentication, real-time database, cloud storage, and hosting into their applications, regardless of the platform they are targeting. This makes Firebase a versatile and comprehensive solution for developers working on various platforms.

    Rate this question:

  • 15. 

    What are the benefits of using ​cloud?

    • No need of buying personal server

    • No need to worry about backups

    • Cost efficient

    • All of the above.

    Correct Answer
    A. All of the above.
    Explanation
    Using cloud computing eliminates the need for individuals or organizations to invest in and maintain their own personal servers. This means they can save on the cost of purchasing and maintaining hardware. Additionally, cloud providers typically offer automatic backup and recovery services, eliminating the need for users to worry about manually backing up their data. This not only saves time but also ensures data security. Finally, cloud computing is cost-efficient as it allows users to pay for only the resources they use, making it a scalable and flexible solution for businesses and individuals alike.

    Rate this question:

  • 16. 

    What services does firebase provide?

    • Hosting websites and web apps

    • Storing large files

    • Test Lab

    • All of the above

    Correct Answer
    A. All of the above
    Explanation
    Firebase provides a range of services including hosting websites and web apps, storing large files, and Test Lab. This means that Firebase can be used for hosting and deploying websites and web applications, storing and managing large files such as images or videos, and also for testing mobile apps on real devices. All of these services are offered by Firebase, making "All of the above" the correct answer.

    Rate this question:

  • 17. 

    What is the necessary permission for getting the YouTube Android player to work:

    • Android.permission.INTERNET

    • Android.permission.ACCESS_NETWORK_STATE

    • Android.permission.ACCESS_WIFI_STATE

    • Android.permission.READ_CONTACTS

    Correct Answer
    A. Android.permission.INTERNET
    Explanation
    The necessary permission for getting the YouTube Android player to work is "android.permission.INTERNET". This permission allows the app to access the internet and retrieve data from YouTube servers, enabling the player to stream videos and interact with the YouTube platform. The other permissions listed (ACCESS_NETWORK_STATE, ACCESS_WIFI_STATE, and READ_CONTACTS) are not directly related to the YouTube player functionality.

    Rate this question:

  • 18. 

    Which of the following HTTP method is used to delete a record from database?

    • PUT

    • DELETE

    • REMOVE

    • PATCH

    Correct Answer
    A. DELETE
    Explanation
    The correct answer is DELETE. The DELETE method in HTTP is used to delete a record from a database. It is commonly used in RESTful APIs to remove a specific resource identified by the given URL. This method ensures that the resource is permanently removed from the server.

    Rate this question:

  • 19. 

    What is the necessary permission for getting the YouTube Android player to work:​

    • Android.permission.INTERNET

    • Android.permission.ACCESS_NETWORK_STATE

    • Android.permission.ACCESS_WIFI_STATE

    • Android.permission.READ_CONTACTS

    Correct Answer
    A. Android.permission.INTERNET
    Explanation
    The necessary permission for getting the YouTube Android player to work is "android.permission.INTERNET". This permission allows the app to access the internet and retrieve data from YouTube's servers, enabling the player to stream videos and interact with the YouTube platform. The other permissions listed are unrelated to the YouTube player's functionality.

    Rate this question:

  • 20. 

    How to store heavy structured data in android?​

    • Shared Preferences

    • Cursor

    • SQlite database

    • Not possible

    Correct Answer
    A. 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:

  • 21. 

    What are the functionalities in asyncTask in android?​

    • OnPreExecute()

    • DoInBackground()

    • OnProgressUpdate()

    • OnPostExecute()

    • Above All

    Correct Answer
    A. 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:

  • 22. 

    What are the functionalities in asyncTask in android?​

    • OnPreExecution()

    • DoInBackground()

    • OnProgressUpdate()

    • Above all

    Correct Answer
    A. Above all
    Explanation
    The answer "Above all" is correct because it implies that all of the mentioned functionalities (onPreExecution(), doInBackground(), onProgressUpdate()) are part of the AsyncTask in Android. The "Above all" statement suggests that these functionalities are the most important or significant aspects of the AsyncTask.

    Rate this question:

  • 23. 

    Why is Fragment Manager used?​

    • To get activity

    • For transaction between fragments

    • To call fragments

    • To stop activity

    Correct Answer
    A. 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:

  • 24. 

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

    • Critical app data

    • User login info

    • User payment details

    • All of the above

    Correct Answer
    A. 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:

  • 25. 

    Which Actions are filtered for the receiver?​

    • ACTION_DISCOVERY_STARTED, ACTION_DISCOVERY_FINISHED, ACTION_FOUND

    • STARTED, FINISHED, FOUND

    • INIT, END, DISCOVER

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

  • 26. 

    What does FCM stand for?

    • Firebase Cloud Messaging

    • FireBase Cloud Manager

    • FireBase Cloud Mediator

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

  • 27. 

    What is the predecessor to FCM called?

    • Android Cloud to Device Messaging (C2DM)

    • Android Cloud Messenger (ADM)

    • Google Cloud Messaging (GCM)

    • Google Cloud Notification System (GCNS)

    Correct Answer
    A. 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:

  • 28. 

    Which of the following is not an advantage that FCM has over its predecessors?

    • It has built-in analytics.

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

    • It handles both registration and retry logic.

    • It allows for server-less solutions

    Correct Answer
    A. 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:

  • 29. 

    Which line in the JSON has an error: {"Id":  0,"Name": "John Gates", "Cost": " $40","Address" - "20 Main Street"}

    • 1

    • 2

    • 3

    • 4

    Correct Answer
    A. 4
  • 30. 

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

    • Layout

    • Layout-large

    • Layout-phone

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

  • 31. 

    1. What best describes a push notification?

    • It is an SMS message.

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

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

    • A form of long-polling.

    Correct Answer
    A. 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:

  • 32. 

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

    • AddNetwork()

    • GetWifiState()

    • UpdateNetwork()

    • All of them

    Correct Answer
    A. 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:

  • 33. 

     Only text files can be created, opened or modified?

    • True

    • False

    Correct Answer
    A. 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:

  • 34. 

    What listener should your view implement for touch?

    • View.OnClickListener

    • View.TouchListener

    • View.OnTouchListner

    • View.OnSwipeListener

    Correct Answer
    A. 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:

  • 35. 

    What 2 parameters does the method drawRect take?

    • (Rect object, Paint object)

    • (x,y,width,height,color)

    • (Circle object, Paint object)

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

  • 36. 

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

    • Main

    • Execute

    • Run

    • Start

    Correct Answer
    A. 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:

  • 37. 

    What is used to connect to low energy consumption devices?

    • Bluetooth Low Energy

    • Bluetooth Light

    • Greentooth

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

  • 38. 

    In Realtime Database, data is stored as _________ and synchronised in real-time to every connected client.

    • Array

    • ArrayList

    • JSON

    • XML

    Correct Answer
    A. JSON
    Explanation
    In Realtime Database, data is stored as JSON and synchronized in real-time to every connected client. JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write. It is widely used for storing and transmitting data between a server and a web application, making it an ideal choice for real-time synchronization in the Realtime Database.

    Rate this question:

  • 39. 

     What is needed to connect to Google API?

    • Internal storage permissions

    • Key-tool

    • API key

    • All of the above

    Correct Answer
    A. API key
    Explanation
    To connect to Google API, an API key is required. This key allows the user to authenticate and access the API services provided by Google. Internal storage permissions and key-tool are not relevant in this context.

    Rate this question:

  • 40. 

    Which classes implement the GameObject interface?

    • Rectangle Player

    • Obstacle

    • A and b

    • None of these

    Correct Answer
    A. 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:

  • 41. 

    Restricting an API key for android app requires:

    • SHA-1 certificate fingerprint

    • MD5 certificate fingerprint

    • Package name & SHA-1 certificate fingerprint

    • Package name & MD5 certificate fingerprint

    Correct Answer
    A. Package name & SHA-1 certificate fingerprint
    Explanation
    To restrict an API key for an Android app, the package name and SHA-1 certificate fingerprint are required. The package name uniquely identifies the app, while the SHA-1 certificate fingerprint ensures that the API key can only be used by the specified app. This combination of package name and SHA-1 certificate fingerprint provides a secure and restricted access to the API key, preventing unauthorized usage. The MD5 certificate fingerprint is not required in this case as it is not a part of the necessary information needed to restrict the API key for an Android app.

    Rate this question:

  • 42. 

    Google Awareness requires an API Key. An API Key is _?

    • A string of characters which link your application package to a registration to Google services to allow your application to use certain Google APIs

    • An image of a key, embedded with encryption data with must be hidden inside of your application to secure your API connection.

    • A large gold key, locked in a safe, with a countdown timer until the box unlocked, which is mailed to you and delivered by drone, upon registering your application. This key is used to open a Google Safe at Google’s head office, registered to you, containing a drive storing your applications.

    • An API Key (pronounced “app-i-ch-ee”) is an HTTP server used by android applications heavily based on the apache HTTP server.

    Correct Answer
    A. A string of characters which link your application package to a registration to Google services to allow your application to use certain Google APIs
    Explanation
    An API Key is a string of characters that serves as a link between your application package and a registration to Google services. It allows your application to access and utilize specific Google APIs.

    Rate this question:

  • 43. 

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

    • FrameLayout

    • LinearLayout

    • RelativeLayout

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

  • 44. 

    Firebase is a ______ database?

    • SQL

    • No SQL

    • Oracle

    • None of the Above

    Correct Answer
    A. No SQL
    Explanation
    Firebase is a NoSQL database because it is a document-oriented database that stores data in a flexible, JSON-like format. It does not use traditional SQL queries for data retrieval and manipulation. Instead, Firebase provides a set of APIs and tools that allow developers to interact with the database using a variety of programming languages. This makes it easier to handle and scale large amounts of structured and unstructured data in real-time applications.

    Rate this question:

  • 45. 

    Where is used to unregisterReccevier()?

    • OnPause()

    • OnStop()

    • OnResume()

    • OnUpdate()

    Correct Answer
    A. 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:

  • 46. 

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

    • Check()

    • Update()

    • IsChanged()

    • Draw()

    Correct Answer
    A. 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:

  • 47. 

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

    • Orientation

    • Size

    • UI Mode

    • Ratio

    Correct Answer
    A. 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:

  • 48. 

    What method is used to disconnect from the current network?

    • MyWifiManager.disconnect();

    • MyWifiManager.closeConnection();

    • MyWifiManager.close();

    • MyWifiManager.disable();

    Correct Answer
    A. MyWifiManager.disconnect();
    Explanation
    The correct answer is myWifiManager.disconnect(). This method is used to disconnect from the current network. The other options, such as closeConnection(), close(), and disable(), are not the appropriate methods for disconnecting from a network.

    Rate this question:

  • 49. 

    In which folder is “google-services.json” configuration file is added?

    • Build

    • App

    • Gradle

    • None of the Above

    Correct Answer
    A. App
    Explanation
    The "google-services.json" configuration file is added in the "App" folder. This file is typically used in Android projects that integrate with Firebase services. By placing the file in the "App" folder, the project can access the necessary configuration information and connect to Firebase services such as authentication, database, and analytics.

    Rate this question:

Quiz Review Timeline (Updated): Mar 21, 2023 +

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

Related Topics

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.