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

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