Android Quizz Dive into our tech quiz zone and put your technical skills to the test! Our quizzes cover a wide array of technical topics, perfect for sharpening your knowledge and challenging your understanding. Compete with others, see your rankings, and boost your technical proficiency. Start quizzing today! 1 / 50 1. Which method is used to add a menu item in Android? onCreateContextMenu() onCreateItem() onCreateMenu() onCreateOptionsMenu() 2 / 50 2. Which language is primarily used for Android development? Java Python Swift Ruby 3 / 50 3. What is a Fragment in Android? A type of broadcast A background service A data storage option A portion of the user interface 4 / 50 4. Which method is used to save data in a SharedPreferences file? put() apply() store() save() 5 / 50 5. Which layout is used to create a grid of components in Android? RelativeLayout FrameLayout GridLayout LinearLayout 6 / 50 6. Which layout is used to arrange components in a linear manner? FrameLayout LinearLayout RelativeLayout TableLayout 7 / 50 7. What is the use of the Android Emulator? To create Android applications To run Android applications on a computer To manage application resources To design user interfaces 8 / 50 8. Which component is used to capture user input in Android? EditText TextView ImageView Button 9 / 50 9. Which method is used to inflate a layout in a Fragment? onCreateView() onStart() onCreate() onResume() 10 / 50 10. Which method is used to create a new thread in Android? startThread() new Thread() createThread() launchThread() 11 / 50 11. Which component is used to show a web page in Android? WebView TextView ListView ImageView 12 / 50 12. Which class is used to create a database in Android? SQLiteOpenHelper DBManager DatabaseHelper SQLManager 13 / 50 13. What is the use of the Handler class in Android? To display a list of items To create custom views To handle user interactions To schedule messages and runnables to be executed at some point in the future 14 / 50 14. Which component is used to display a spinner in Android? ListView GridView DropDownList Spinner 15 / 50 15. Which file contains the application’s essential information, such as the package name and components? AndroidManifest.xml build.gradle activity_main.xml MainActivity.java 16 / 50 16. Which method is used to perform a network operation in Android? doInUIThread() onPreExecute() doInBackground() onPostExecute() 17 / 50 17. Which component is used to show a floating message in Android? AlertDialog Snackbar Dialog Toast 18 / 50 18. Which method is called when an Activity is no longer visible to the user? onDestroy() onCreate() onPause() onStop() 19 / 50 19. What is an Activity in Android? A type of broadcast A component that represents a single screen A background service A data storage option 20 / 50 20. Which method is used to start an AsyncTask in Android? run() start() begin() execute() 21 / 50 21. What is the use of the RecyclerView component in Android? To display a large dataset in a scrollable list To create custom views To manage application resources To handle touch events 22 / 50 22. Which company developed Android? Apple Google Amazon Microsoft 23 / 50 23. Which layout is used to overlap components in Android? FrameLayout LinearLayout RelativeLayout TableLayout 24 / 50 24. Which component is used to show a list of items in Android? ImageView EditText TextView ListView 25 / 50 25. Which component is used to handle touch events in Android? View Activity Service Content Provider 26 / 50 26. What is a Service in Android? A component that runs in the background A type of layout A user interface component None of the above 27 / 50 27. What is the use of the WorkManager class in Android? To handle user interactions To schedule deferrable, guaranteed background work To create custom views To display a list of items 28 / 50 28. Which class is used to display a dialog window in Android? Dialog ProgressDialog AlertDialog All of the above 29 / 50 29. Which class is used to create a notification in Android? NotificationService Notification NotificationManager NotificationBuilder 30 / 50 30. What is the use of the ViewModel class in Android? To display a list of items To handle user interactions To create custom views To manage UI-related data in a lifecycle conscious way 31 / 50 31. What is the use of an Intent in Android? To send a broadcast To start a service All of the above To start an activity 32 / 50 32. Which method is called when an Activity is visible to the user? onStop() onResume() onStart() onCreate() 33 / 50 33. What is the use of the ConstraintLayout in Android? To display a list of items To create complex layouts with a flat view hierarchy To overlap components To manage application resources 34 / 50 34. Which component is used to handle background tasks in Android? Service Fragment BroadcastReceiver Activity 35 / 50 35. What is the use of the ViewPager component in Android? To display a swipeable view To manage application resources To create custom views To handle touch events 36 / 50 36. Which file is used to define the project dependencies in Android? MainActivity.java AndroidManifest.xml activity_main.xml build.gradle 37 / 50 37. What is Android? A desktop application A type of hardware A web browser A mobile operating system 38 / 50 38. Which layout is used to align components based on their relative positions? RelativeLayout TableLayout LinearLayout FrameLayout 39 / 50 39. Which method is used to stop a thread in Android? endThread() finishThread() interrupt() stopThread() 40 / 50 40. Which method is called to stop a Service? stopService() stopBroadcast() stopActivity() stopContent() 41 / 50 41. Which method is used to launch a new activity in Android? startBroadcast() startService() startActivity() startContent() 42 / 50 42. What does APK stand for? Android Package Kit Android Phone Kit Android Page Kit Android Personal Kit 43 / 50 43. Which method is called when an Activity is started for the first time? onCreate() onResume() onStart() onRestart() 44 / 50 44. Which class is used to load images from the internet in Android? Picasso Fresco All of the above Glide 45 / 50 45. Which method is used to retrieve data from a SharedPreferences file? getData() getSharedPreferences() getPreferences() getPreferencesData() 46 / 50 46. Which component is used to display a progress bar in Android? StatusBar RatingBar SeekBar ProgressBar 47 / 50 47. Which method is used to register a broadcast receiver in Android? registerReceiver() registerContent() registerService() registerBroadcast() 48 / 50 48. What is the latest version of Android as of 2024? Android 13 Android 10 Android 11 Android 12 49 / 50 49. Which file is used to define the user interface in Android? .xml .java .txt .html 50 / 50 50. What is the use of a Content Provider in Android? To handle user interactions To perform background tasks To manage access to a structured set of data To display a list of items Your score is 0%