NEW
Font size
WorksheetsAndroid Development Quiz
Total questions: 50
Worksheet time: 25mins
1. What is Android?
A. An operating system designed for mobile devices
B. A programming language
C. A video game
D. A social media platform
2. Which company developed Android?
A. Apple
B. Google
C. Microsoft
D. Samsung
3. What programming language is used to develop Android apps?
A. Java
B. Python
C. C#
D. Ruby
4. What is an APK?
A. An Android programming language
B. A type of file used to install Android apps
C. An Android device
D. An Android emulator
5. What is the name of the integrated development environment (IDE) used for Android app development?
A. Eclipse
B. Visual Studio
C. Xcode
D. Android Studio
6. Which component is used to display images in an Android app?
A. ImageView
B. TextView
C. EditText
D. Button
7. Which component is used to get user input in an Android app?
A. ImageView
B. TextView
C. EditText
D. Button
8. Which component is used to display text in an Android app?
A. ImageView
B. TextView
C. EditText
D. Button
9. Which component is used to perform an action when clicked in an Android app?
A. ImageView
B. TextView
C. EditText
D. Button
10. Which component is used to navigate between different screens in an Android app?
A. Intent
B. Activity
C. Fragment
D. Service
11. Which component is used to run tasks in the background in an Android app?
A. Intent
B. Activity
C. Fragment
D. Service
12. Which method is used to display a message in an Android app?
A. showToast()
B. showText()
C. showMessage()
D. displayMessage()
13. Which method is used to start (open) a new activity in an Android app?
A. startActivity()
B. createActivity()
C. newActivity()
D. launchActivity()
14. Which method is used to get the value of a text field in an Android app?
A. getText()
B. getValue()
C. setText()
D. setValue()
15. Which method is used to set the value of a text field in an Android app?
A. getText()
B. getValue()
C. setText()
D. setValue()
16. Which method is used to check if a button is clicked in an Android app?
A. onClick()
B. onPress()
C. onActivate()
D. onTrigger()
17. Which method is used to get the selected item from a list in an Android app?
A. getSelectedItem()
B. getValue()
C. setText()
D. setValue()
18. Which layout is used to display items in a vertical list in an Android app?
A. LinearLayout
B. RelativeLayout
C. GridLayout
D. ListView
19. Which component is used to communicate between different Android components?
A. Intent
B. Activity
C. Fragment
D. Service
20. Which method is used to add a new item to a list in an Android app?
A. addItem()
B. addToList()
C. addToView()
D. add()
21. Which component is used to store and retrieve data in an Android app?
A. Intent
B. Activity
C. Fragment
D. ContentProvider
22. Which method is used to retrieve data from a ContentProvider in an Android app?
A. query()
B. retrieve()
C. getData()
D. fetch()
23. Which component is used to play audio in an Android app?
A. MediaPlayer
B. AudioManager
C. SoundPool
D. AudioTrack
24. Which component is used to store and retrieve data in a key-value pair in an Android app?
A. SharedPreferences
B. SQLite
C. ContentProvider
D. File
25 Which method is used to retrieve data from SharedPreferences in an Android app?
A. getString()
B. getInt()
C. getBoolean()
D. getAll()
26. Which component is responsible for managing the life cycle of an Activity in an Android app?
A. Service
B. ContentProvider
C. BroadcastReceiver
D. ActivityManager
27. Which method is called when an Activity is first created in an Android app?
A. onCreate()
B. onStart()
C. onResume()
D. onRestart()
28. Which component is used to display a web page in an Android app?
A. WebView
B. WebBrowser
C. BrowserView
D. BrowserWindow
29. Which method is used to load a URL in a WebView in an Android app?
A. loadUrl()
B. load()
C. open()
D. start()
30. Which component is used to make items be scrolled vertically in an Android app?
A. ListView
B. RecyclerView
C. Spinner
D. ScrollView
31. Which method is used to add a view to a ScrollView in an Android app?
A. addView()
B. setView()
C. insertView()
D. attachView()
32. Which component is used to create a multi-pane user interface in an Android app?
A. Fragment
B. Activity
C. View
D. Layout
33. Which component is used to play video in an Android app?
A. VideoView
B. MediaPlayer
C. SurfaceView
D. TextureView`x
34.Which component is used to make items be scrolled horizontally in an Android app?
A. ScrollView
B. HorizontalScrollView
C. RecyclerView
D. None of the above
35. What is the name of the build automation tool used for building Android apps?
A. Gradle
B. Maven
C. Ant
D. Make
36. Which file contains the project-specific configuration settings for an Android app?
A. AndroidManifest.xml
B. build.gradle
C. settings.gradle
D. gradle.properties
37. What is the name of the tool used for debugging Android apps?
A. Android Studio
B. Eclipse
C. IntelliJ IDEA
D. ADB (Android Debug Bridge)
38. Which component is used to perform network operations in an Android app?
A. IntentService
B. AsyncTask
C. Service
D. None of the above
39. Which layout is used to display items in a grid in an Android app?
A. GridLayout
B. GridView
C. TableLayout
D. None of the above
40. Which component is used to show a notification to the user in an Android app?
A. NotificationManager
B. NotificationCompat
C. NotificationBuilder
D. None of the above
41. Which component is used to store and retrieve large amounts of structured data in an Android app?
A. SharedPreferences
B. SQLite
C. ContentProvider
D. None of the above
42. Which method is used to query a SQLite database in an Android app?
A. query()
B. retrieve()
C. getData()
D. None of the above
43. Which component is used to send data between Android apps?
A. Intent
B. Activity
C. Fragment
D. None of the above
44. Which method is used to request permissions in an Android app?
A. requestPermissions()
B. checkPermission()
C. grantPermission()
D. None of the above
45. What is debugging in programming?
A. The process of removing errors from a program
B. The process of optimizing a program for performance
C. The process of translating source code into machine code
D. The process of testing a program to ensure it meets user requirements
46. What is a syntax error in programming?
A. An error that occurs when a program attempts to access a memory location that does not exist
B. An error that occurs when a program is unable to find a required file
C. An error that occurs when a program is unable to communicate with a database
D. An error that occurs when the program violates the rules of the programming language
47. What is the purpose of a compiler?
A. To translate source code into machine code
B. To debug software applications
C. To manage computer hardware resources
D. To provide security for computer systems
48. Which of the following permissions is required to access the camera on an Android device?
a) ACCESS_FINE_LOCATION
b) RECORD_AUDIO
c) CAMERA
d) READ_CONTACTS
49. Which of the following permissions is required to make phone calls on an Android device?
a) SEND_SMS
b) CALL_PHONE
c) READ_SMS
d) RECEIVE_SMS
50. Which of the following permissions is required to read and write files on the external storage of an Android device?
a) WRITE_SETTINGS
b) READ_PHONE_STATE
c) WRITE_EXTERNAL_STORAGE
d) ACCESS_WIFI_STATE
