ThatQuiz Test Library Take this test now
ADETEC
Contributed by: Vergonio
  • 1. What keyword in Dart is used to handle errors during input?
A) catch
B) error
C) try
D) try-catch
  • 2. What is the minimum recommended API level for Android projects?
A) API 19
B) API 25
C) API 14
D) API 21
  • 3. In Dart, which keyword is used to define a function that returns a value?
A) function
B) <type> (like int, double)
C) def
D) return
  • 4. Which method is used to start an Android app?
A) onStart()
B) onCreate()
C) run()
D) startApp()
  • 5. What Dart operator is used to check equality?
A) !=
B) =
C) ;=
D) ==
  • 6. What is the result of this Dart statement: bool isTrue = 5 > 3 && 2 < 1;
A) Error
B) false
C) true
D) Null
  • 7. What is the result of this Dart statement: bool isTrue = 5 > 3 && 2 < 1;
A) False
B) Null
C) Error
D) True
  • 8. What component allows users to enter text in Android apps?
A) TextView
B) EditText
C) Button
D) GridLayout
  • 9. Which Kotlin function handles button clicks in the calculator?
A) setOnTapListener
B) listenClick
C) addClickListener
D) setOnClickListener
  • 10. What folder in Android Studio stores layout XML files?
A) Values
B) Manifest
C) src
D) res
  • 11. What function is used in Dart to print output?
A) write()
B) print()
C) output()
D) echo()
  • 12. What file defines the app's structure and permissions in Android projects?
A) AndroidManifest.org
B) AndroidManifest.com
C) AndroidManifest.www
D) AndroidManifest.xml
E) AndroidManifest.file
  • 13. How is a comment written in Dart?
A) // comment
B) <!-- comment -->
C) comment
D) # comment
  • 14. Which import is necessary for reading user input in Dart?
A) dart:core
B) dart:math
C) dart:ui
D) dart:io
  • 15. What is the official IDE for Android development?
A) STUDIO MOBILE
B) ANDROID STUDIO
C) MOBILE STUDIO
D) STUDIO ANDROID
  • 16. What Kotlin variable type changes based on reassignment?
A) const
B) val
C) var
D) final
  • 17. What Android file includes the line

    setContentView(R.layout.activity_main)?
A) AndroidManifest.xml
B) build.gradle
C) MainActivity.kt
D) layout.xml
  • 18. In Dart, how do you calculate the area of a circle using radius?
A) 3.14* radius
B) π * r
C) radius radius 3.14
D) sqrt(radius) 3.14
  • 19. Which of the following is NOT a Dart data type?
A) float
B) bool
C) int
D) string
  • 20. Which widget is used in Android XML to display text output?
A) Label
B) EditText
C) TextView
D) Button
  • 21. What symbol is used for multiplication in Kotlin code?
A) *
B) times
C) x
D) mult()
  • 22. What is the purpose of the AVD Manager?
A) Monitor app usage
B) Debug user input
C) View application logs
D) Manage virtual devices
  • 23. What Dart loop is best for a known number of iterations?
A) for
B) if
C) do-while
D) while
  • 24. What tool simulates a real Android device?
A) ANDROID SIMULATOR
B) ANDROID PHONE
C) ANDROID EMULATOR
D) ANDROID STIMULI
  • 25. What is the default displayed text in the calculator app's TextView?
A) output
B) results
C) null
D) 0
  • 26. Which control structure handles "even or odd" checking in Dart?
A) for
B) loop
C) if-else
D) switch
  • 27. What is the result of 10/2 in Dart if both are integers?
A) 5
B) Error
C) 5.0
D) 10
  • 28. What data type is used to store true/false values in Dart?
A) binary
B) int
C) bool
D) double
  • 29. Which Dart function can be void (no return value)?
A) calculateArea()
B) displayOutput()
C) print()
D) All of these
  • 30. What layout is used for button placement in the sample calculator app?
A) ConstraintLayout
B) GridLayout
C) RelativeLayout
D) LinearLayout
Created with That Quiz — where a math practice test is always one click away.