wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Android Development Quiz

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

1. What is Android?

a)

A. An operating system designed for mobile devices

b)

B. A programming language

c)

C. A video game

d)

D. A social media platform

2.

2. Which company developed Android?

a)

A. Apple

b)

B. Google

c)

C. Microsoft

d)

D. Samsung

3.

3. What programming language is used to develop Android apps?

a)

A. Java

b)

B. Python

c)

C. C#

d)

D. Ruby

4.

4. What is an APK?

a)

A. An Android programming language

b)

B. A type of file used to install Android apps

c)

C. An Android device

d)

D. An Android emulator

5.

5. What is the name of the integrated development environment (IDE) used for Android app development?

a)

A. Eclipse

b)

B. Visual Studio

c)

C. Xcode

d)

D. Android Studio

6.

6. Which component is used to display images in an Android app?

a)

A. ImageView

b)

B. TextView

c)

C. EditText

d)

D. Button

7.

7. Which component is used to get user input in an Android app?

a)

A. ImageView

b)

B. TextView

c)

C. EditText

d)

D. Button

8.

8. Which component is used to display text in an Android app?

a)

A. ImageView

b)

B. TextView

c)

C. EditText

d)

D. Button

9.

9. Which component is used to perform an action when clicked in an Android app?

a)

A. ImageView

b)

B. TextView

c)

C. EditText

d)

D. Button

10.

10. Which component is used to navigate between different screens in an Android app?

a)

A. Intent

b)

B. Activity

c)

C. Fragment

d)

D. Service

11.

11. Which component is used to run tasks in the background in an Android app?

a)

A. Intent

b)

B. Activity

c)

C. Fragment

d)

D. Service

12.

12. Which method is used to display a message in an Android app?

a)

A. showToast()

b)

B. showText()

c)

C. showMessage()

d)

D. displayMessage()

13.

13. Which method is used to start (open) a new activity in an Android app?

a)

A. startActivity()

b)

B. createActivity()

c)

C. newActivity()

d)

D. launchActivity()

14.

14. Which method is used to get the value of a text field in an Android app?

a)

A. getText()

b)

B. getValue()

c)

C. setText()

d)

D. setValue()

15.

15. Which method is used to set the value of a text field in an Android app?

a)

A. getText()

b)

B. getValue()

c)

C. setText()

d)

D. setValue()

16.

16. Which method is used to check if a button is clicked in an Android app?

a)

A. onClick()

b)

B. onPress()

c)

C. onActivate()

d)

D. onTrigger()

17.

17. Which method is used to get the selected item from a list in an Android app?

a)

A. getSelectedItem()

b)

B. getValue()

c)

C. setText()

d)

D. setValue()

18.

18. Which layout is used to display items in a vertical list in an Android app?

a)

A. LinearLayout

b)

B. RelativeLayout

c)

C. GridLayout

d)

D. ListView

19.

19. Which component is used to communicate between different Android components?

a)

A. Intent

b)

B. Activity

c)

C. Fragment

d)

D. Service

20.

20. Which method is used to add a new item to a list in an Android app?

a)

A. addItem()

b)

B. addToList()

c)

C. addToView()

d)

D. add()

21.

21. Which component is used to store and retrieve data in an Android app?

a)

A. Intent

b)

B. Activity

c)

C. Fragment

d)

D. ContentProvider

22.

22. Which method is used to retrieve data from a ContentProvider in an Android app?

a)

A. query()

b)

B. retrieve()

c)

C. getData()

d)

D. fetch()

23.

23. Which component is used to play audio in an Android app?

a)

A. MediaPlayer

b)

B. AudioManager

c)

C. SoundPool

d)

D. AudioTrack

24.

24. Which component is used to store and retrieve data in a key-value pair in an Android app?

a)

A. SharedPreferences

b)

B. SQLite

c)

C. ContentProvider

d)

D. File

25.

25 Which method is used to retrieve data from SharedPreferences in an Android app?

a)

A. getString()

b)

B. getInt()

c)

C. getBoolean()

d)

D. getAll()

26.

26. Which component is responsible for managing the life cycle of an Activity in an Android app?

a)

A. Service

b)

B. ContentProvider

c)

C. BroadcastReceiver

d)

D. ActivityManager

27.

27. Which method is called when an Activity is first created in an Android app?

a)

A. onCreate()

b)

B. onStart()

c)

C. onResume()

d)

D. onRestart()

28.

28. Which component is used to display a web page in an Android app?

a)

A. WebView

b)

B. WebBrowser

c)

C. BrowserView

d)

D. BrowserWindow

29.

29. Which method is used to load a URL in a WebView in an Android app?

a)

A. loadUrl()

b)

B. load()

c)

C. open()

d)

D. start()

30.

30. Which component is used to make items be scrolled vertically in an Android app?

a)

A. ListView

b)

B. RecyclerView

c)

C. Spinner

d)

D. ScrollView

31.

31. Which method is used to add a view to a ScrollView in an Android app?

a)

A. addView()

b)

B. setView()

c)

C. insertView()

d)

D. attachView()

32.

32. Which component is used to create a multi-pane user interface in an Android app?

a)

A. Fragment

b)

B. Activity

c)

C. View

d)

D. Layout

33.

33. Which component is used to play video in an Android app?

a)

A. VideoView

b)

B. MediaPlayer

c)

C. SurfaceView

d)

D. TextureView`x

34.

34.Which component is used to make items be scrolled horizontally in an Android app?

a)

A. ScrollView

b)

B. HorizontalScrollView

c)

C. RecyclerView

d)

D. None of the above

35.

35. What is the name of the build automation tool used for building Android apps?

a)

A. Gradle

b)

B. Maven

c)

C. Ant

d)

D. Make

36.

36. Which file contains the project-specific configuration settings for an Android app?

a)

A. AndroidManifest.xml

b)

B. build.gradle

c)

C. settings.gradle

d)

D. gradle.properties

37.

37. What is the name of the tool used for debugging Android apps?

a)

A. Android Studio

b)

B. Eclipse

c)

C. IntelliJ IDEA

d)

D. ADB (Android Debug Bridge)

38.

38. Which component is used to perform network operations in an Android app?

a)

A. IntentService

b)

B. AsyncTask

c)

C. Service

d)

D. None of the above

39.

39. Which layout is used to display items in a grid in an Android app?

a)

A. GridLayout

b)

B. GridView

c)

C. TableLayout

d)

D. None of the above

40.

40. Which component is used to show a notification to the user in an Android app?

a)

A. NotificationManager

b)

B. NotificationCompat

c)

C. NotificationBuilder

d)

D. None of the above

41.

41. Which component is used to store and retrieve large amounts of structured data in an Android app?

a)

A. SharedPreferences

b)

B. SQLite

c)

C. ContentProvider

d)

D. None of the above

42.

42. Which method is used to query a SQLite database in an Android app?

a)

A. query()

b)

B. retrieve()

c)

C. getData()

d)

D. None of the above

43.

43. Which component is used to send data between Android apps?

a)

A. Intent

b)

B. Activity

c)

C. Fragment

d)

D. None of the above

44.

44. Which method is used to request permissions in an Android app?

a)

A. requestPermissions()

b)

B. checkPermission()

c)

C. grantPermission()

d)

D. None of the above

45.

45. What is debugging in programming?

a)

A. The process of removing errors from a program

b)

B. The process of optimizing a program for performance

c)

C. The process of translating source code into machine code

d)

D. The process of testing a program to ensure it meets user requirements

46.

46. What is a syntax error in programming?

a)

A. An error that occurs when a program attempts to access a memory location that does not exist

b)

B. An error that occurs when a program is unable to find a required file

c)

C. An error that occurs when a program is unable to communicate with a database

d)

D. An error that occurs when the program violates the rules of the programming language

47.

47. What is the purpose of a compiler?

a)

A. To translate source code into machine code

b)

B. To debug software applications

c)

C. To manage computer hardware resources

d)

D. To provide security for computer systems

48.

48. Which of the following permissions is required to access the camera on an Android device?

a)

a) ACCESS_FINE_LOCATION

b)

b) RECORD_AUDIO

c)

c) CAMERA

d)

d) READ_CONTACTS

49.

49. Which of the following permissions is required to make phone calls on an Android device?

a)

a) SEND_SMS

b)

b) CALL_PHONE

c)

c) READ_SMS

d)

d) RECEIVE_SMS

50.

50. Which of the following permissions is required to read and write files on the external storage of an Android device?

a)

a) WRITE_SETTINGS

b)

b) READ_PHONE_STATE

c)

c) WRITE_EXTERNAL_STORAGE

d)

d) ACCESS_WIFI_STATE