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

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