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 | Questions: 85
Please wait...
Question 1 / 85
0 %
0/100
Score 0/100
1. We can also use firebase as a CDN to host images/videos/files?

Explanation

Firebase can indeed be used as a CDN (Content Delivery Network) to host images, videos, and files. Firebase Storage provides a secure and scalable solution for storing and serving user-generated content. It allows developers to easily upload, download, and manage files, making it suitable for hosting media assets. Additionally, Firebase Storage integrates seamlessly with other Firebase services, such as Firebase Authentication and Firebase Hosting, allowing for a comprehensive and efficient development experience.

Submit
Please wait...
About This Quiz
Quiz Over Android Questions - 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... see moreapps across devices. see less

2. Fragments have their own lifecycle?

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.

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

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.

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

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.

Submit
5. Google drive provides simple and free cloud storage for individuals?

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.

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

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.

Submit
7. In the Google Awareness API, a Fence is _

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.

Submit
8. Fragments use getActivity() instead of MainActivity.this?

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.

Submit
9. How to fix crash using log cat in android?

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.

Submit
10. What is fragment life cycle in android? 

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.

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

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.

Submit
12. 1 activity cannot have multiple fragments?​

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.

Submit
13. What are the steps to connect your app to firebase?

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.

Submit
14. Firebase is platform open for?

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.

Submit
15. What are the benefits of using ​cloud?

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.

Submit
16. What services does firebase provide?

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.

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

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.

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

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.

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

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.

Submit
20. How to store heavy structured data in android?​

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.

Submit
21. What are the functionalities in asyncTask in android?​

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.

Submit
22. What are the functionalities in asyncTask in android?​

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.

Submit
23. Why is Fragment Manager used?​

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.

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

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.

Submit
25. Which Actions are filtered for the receiver?​

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.

Submit
26. What does FCM stand for?

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.

Submit
27. What is the predecessor to FCM called?

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.

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

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.

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

Explanation

not-available-via-ai

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

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.

Submit
31.
  1. What best describes a push notification?

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.

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

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.

Submit
33.  Only text files can be created, opened or modified?

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.

Submit
34. What listener should your view implement for touch?

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.

Submit
35. What 2 parameters does the method drawRect take?

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.

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

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.

Submit
37. What method do we override when we extend the Thread class?

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.

Submit
38. What is used to connect to low energy consumption devices?

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.

Submit
39.  What is needed to connect to Google API?

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.

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

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.

Submit
41. Restricting an API key for android app requires:

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.

Submit
42. Which classes implement the GameObject interface?

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.

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

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.

Submit
44. Firebase is a ______ database?

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.

Submit
45. Where is used to unregisterReccevier()?

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.

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

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.

Submit
47. What method is used to disconnect from the current network?

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.

Submit
48. In which folder is "google-services.json" configuration file is added?

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.

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

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.

Submit
50. Google Awareness is _?

Explanation

Google Awareness is an API used to allow applications to act upon the physical states and changes of the user and the world around them. This means that developers can use the Google Awareness API to create applications that can access and utilize information about the user's location, activity, nearby places, weather conditions, and more. By integrating this API into their apps, developers can provide personalized and context-aware experiences to users based on their current situation and environment.

Submit
51. What method do we override for the Bluetooth receiver? 

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.

Submit
52. Which method initiate the fragment?

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.

Submit
53. In the Google Awareness API, a Snapshot is _?

Explanation

A Snapshot in the Google Awareness API is an API that is included in Google Awareness and is used to determine the current states of the user's physical world. It provides information about the user's surroundings, such as location, weather, nearby places, and user activity. This allows developers to create context-aware applications that can provide personalized experiences based on the user's current situation.

Submit
54. What Android resource directory do we use store our .xlm layout file for tablets?

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.

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

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.

Submit
56. What permission in the Manifest allows you to enable / disable Wi-Fi?

Explanation

The correct answer is CHANGE_WIFI_STATE. This permission in the Manifest allows you to enable or disable Wi-Fi. By having this permission, an application can make changes to the Wi-Fi state on the device, such as turning it on or off. Without this permission, the application would not have the capability to control the Wi-Fi functionality of the device.

Submit
57. What is the name of the task run in Gradle projects that provides you with the certificate fingerprint of your Android app?

Explanation

The correct answer is "signingReport". In Gradle projects, the "signingReport" task is used to provide the certificate fingerprint of an Android app. This task generates a report that includes information about the signing configuration and the certificate used to sign the app. It is useful for verifying the integrity and authenticity of the app during the development and release process.

Submit
58. What object is returned after scanning for available networks?

Explanation

After scanning for available networks, the object that is returned is a ScanResult. This object contains information about the scanned network, such as the network name (SSID), signal strength, frequency, and security type. It provides the necessary details to identify and connect to a specific network.

Submit
59. What does the main GamePanel extend?

Explanation

The main GamePanel extends SurfaceView.

Submit
60. What is not an advantage of cloud computing?

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.

Submit
61. Gradle dependency used for notification in Firebase is?

Explanation

The correct answer is "com.google.firebase:firebase-messaging:9.8.0" because the firebase-messaging dependency is specifically used for handling notifications in Firebase. It provides the necessary classes and methods for sending and receiving push notifications in an Android application. The firebase-core dependency is used for basic Firebase functionality, while the notification and firebase-pushnotification dependencies do not exist in Firebase.

Submit
62. Disadvantage of Firebase is?

Explanation

The correct answer is "All of these". Firebase has certain disadvantages, including the inability to perform complex queries, the lack of data recovery and migration options, and the requirement for all code to run on both the server and client sides.

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

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.

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

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.

Submit
65. To authenticate and connect to Google Drive which method is needed?

Explanation

The correct answer is GoogleApiClient. GoogleApiClient is a class provided by the Google Play Services library that allows developers to authenticate and connect to various Google services, including Google Drive. It provides methods for handling user authentication and authorization, as well as accessing the user's Google Drive files and folders. Using GoogleApiClient, developers can easily integrate Google Drive functionality into their applications.

Submit
66. What is the name of the object class within your game view that you draw on?

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.

Submit
67. Which object stores the Bluetooth object?

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.

Submit
68. What method is used to toggle Wi-Fi on/off an android device?

Explanation

The correct answer is setWifiEnabled(). This method is used to toggle the Wi-Fi on or off on an Android device. It allows the user to enable or disable the Wi-Fi functionality as needed. The other options, enableWifi(), toggleWifi(), and setWifiStatus(), do not correspond to the correct method used for this purpose.

Submit
69. Fragment manager is used for which actions?

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.

Submit
70. Which method is used to get root of database?

Explanation

The DatabaseReference method is used to get the root of a database. It allows access to the top-level reference of the database, which is the starting point for accessing and manipulating the data stored in the database. By using the DatabaseReference method, developers can retrieve the root reference and then navigate through the database structure to access specific data nodes or perform operations on the database.

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

Explanation

The correct answer is BroadcastReceiver.

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

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.

Submit
73. Which library do we import to make application compatible with API 11 and above?

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.

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

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.

Submit
75. What do we use the surfaceCreated method for?

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.

Submit
76. What permission we get to create WI-FI project?

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.

Submit
77. Which method is used to add data in list view after clicking button?

Explanation

The addValueListener method is used to add data in list view after clicking a button. This method is typically used in conjunction with a database or data source to retrieve and display data in the list view. When the button is clicked, the addValueListener method is triggered, which retrieves the data and adds it to the list view. This allows for dynamic updating of the list view based on user interactions.

Submit
78. What interface is used to listen for changes in the view's state?

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.

Submit
79. How do we set the wifi password when trying to create a wifi configuration?

Explanation

The correct answer is "wc.preSharedKey = ‘”’ + pwd + ‘”’;". This line of code sets the wifi password by assigning the value of the variable 'pwd' to the preSharedKey property of the wifi configuration object 'wc'. The preSharedKey property is used to specify the password for a wifi network. The code is using string concatenation to add double quotes around the password value.

Submit
80. . In order to use YouTubePlayerView directly, your activity needs to extend_______.

Explanation

In order to use YouTubePlayerView directly, your activity needs to extend YouTubeBaseActivity. This is because YouTubeBaseActivity is a base class provided by the YouTube Android Player API that provides the necessary functionality and methods for interacting with the YouTubePlayerView. By extending YouTubeBaseActivity, your activity inherits these functionalities and can use YouTubePlayerView to play YouTube videos.

Submit
81. What class is used to perform operations that pertain to network connectivity?

Explanation

WiFiManager() is the correct answer because it is the class specifically designed to perform operations related to network connectivity. This class provides methods and functionalities to manage and control WiFi connections, such as connecting to a network, disconnecting from a network, scanning for available networks, and managing network configurations. Therefore, WiFiManager() is the most suitable class for handling network connectivity operations.

Submit
82. What two arguments does the MainThread method take?

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.

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

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.

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

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.

Submit
85. Which inherited method must be called to Scan for Networks?

Explanation

The correct answer is "onReceive()". This method must be called to scan for networks.

Submit
View My Results

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
Cancel
  • All
    All (85)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
We can also use firebase as a CDN to host images/videos/files?
Fragments have their own lifecycle?
If ​android app needs to access internet, do we need to add internet...
SetContentView(R.layout.activity_main) is used in activity to set...
Google drive provides simple and free cloud storage for individuals?
What permission in the manifest allows you to access information about...
In the Google Awareness API, a Fence is _
Fragments use getActivity() instead of MainActivity.this?
How to fix crash using log cat in android?
What is fragment life cycle in android? 
An .xml file in layout-large can have the same name as an .xlm file in...
1 activity cannot have multiple fragments?​
What are the steps to connect your app to firebase?
Firebase is platform open for?
What are the benefits of using ​cloud?
What services does firebase provide?
What is the necessary permission for getting the YouTube Android...
Which of the following HTTP method is used to delete a record from...
What is the necessary permission for getting the YouTube Android...
How to store heavy structured data in android?​
What are the functionalities in asyncTask in android?​
What are the functionalities in asyncTask in android?​
Why is Fragment Manager used?​
It would be a bad idea to store this kind of data on google drive?
Which Actions are filtered for the receiver?​
What does FCM stand for?
What is the predecessor to FCM called?
Which of the following is not an advantage that FCM has over its...
Which line in the JSON has an error: {"Id": ...
What Android resource directory do we use store our .xlm layout file...
What best describes a push notification?
 What is the method applied to control Wi-Fi in WifiConfiguration...
 Only text files can be created, opened or modified?
What listener should your view implement for touch?
What 2 parameters does the method drawRect take?
In Realtime Database, data is stored as _________ and synchronised in...
What method do we override when we extend the Thread class?
What is used to connect to low energy consumption devices?
 What is needed to connect to Google API?
Google Awareness requires an API Key. An API Key is _?
Restricting an API key for android app requires:
Which classes implement the GameObject interface?
What Layout should you use in your XML to hold your game view?
Firebase is a ______ database?
Where is used to unregisterReccevier()?
What method is used by the Main Thread to make changes to the Game...
What method is used to disconnect from the current network?
In which folder is "google-services.json" configuration file is added?
What resource directory qualifier do we use for creating layout-large?
Google Awareness is _?
What method do we override for the Bluetooth receiver? 
Which method initiate the fragment?
In the Google Awareness API, a Snapshot is _?
What Android resource directory do we use store our .xlm layout file...
When creating a game Obstacles, what arguments does it take?
What permission in the Manifest allows you to enable / disable Wi-Fi?
What is the name of the task run in Gradle projects that provides you...
What object is returned after scanning for available networks?
What does the main GamePanel extend?
What is not an advantage of cloud computing?
Gradle dependency used for notification in Firebase is?
Disadvantage of Firebase is?
Which class does SurfaceView implement to listen for changes on the...
Main Thread uses ________ to lock ​the games framerate to 30 fps:
To authenticate and connect to Google Drive which method is needed?
What is the name of the object class within your game view that you...
Which object stores the Bluetooth object?
What method is used to toggle Wi-Fi on/off an android device?
Fragment manager is used for which actions?
Which method is used to get root of database?
What is the class we used to receive wi-fi scanning result?​
In an onTouchEvent, what signifies the user has lifted their finger...
Which library do we import to make application compatible with API 11...
What class should your view extend so you can draw on it?
What do we use the surfaceCreated method for?
What permission we get to create WI-FI project?
Which method is used to add data in list view after clicking button?
What interface is used to listen for changes in the view's state?
How do we set the wifi password when trying to create a wifi...
. In order to use YouTubePlayerView directly, your activity needs to...
What class is used to perform operations that pertain to network...
What two arguments does the MainThread method take?
Cloud computing is the use of remote servers to authenticate users and...
What feature/features makes google drive an ideal choice for small...
Which inherited method must be called to Scan for Networks?
Alert!

Advertisement