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

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