ADETEC
  • 1. What keyword in Dart is used to handle errors during input?
A) catch
B) try-catch
C) try
D) error
  • 2. What is the minimum recommended API level for Android projects?
A) API 21
B) API 14
C) API 19
D) API 25
  • 3. In Dart, which keyword is used to define a function that returns a value?
A) return
B) function
C) <type> (like int, double)
D) def
  • 4. Which method is used to start an Android app?
A) onCreate()
B) run()
C) onStart()
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) Null
B) false
C) true
D) Error
  • 7. What is the result of this Dart statement: bool isTrue = 5 > 3 && 2 < 1;
A) True
B) Null
C) False
D) Error
  • 8. What component allows users to enter text in Android apps?
A) Button
B) EditText
C) TextView
D) GridLayout
  • 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) Values
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.xml
B) AndroidManifest.www
C) AndroidManifest.com
D) AndroidManifest.file
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:core
B) dart:io
C) dart:math
D) dart:ui
  • 15. What is the official IDE for Android development?
A) STUDIO MOBILE
B) STUDIO ANDROID
C) MOBILE STUDIO
D) ANDROID STUDIO
  • 16. What Kotlin variable type changes based on reassignment?
A) const
B) final
C) var
D) val
  • 17. What Android file includes the line

    setContentView(R.layout.activity_main)?
A) AndroidManifest.xml
B) layout.xml
C) build.gradle
D) MainActivity.kt
  • 18. In Dart, how do you calculate the area of a circle using radius?
A) sqrt(radius) 3.14
B) π * r
C) radius radius 3.14
D) 3.14* radius
  • 19. Which of the following is NOT a Dart data type?
A) string
B) int
C) float
D) bool
  • 20. Which widget is used in Android XML to display text output?
A) EditText
B) TextView
C) Button
D) Label
  • 21. What symbol is used for multiplication in Kotlin code?
A) mult()
B) x
C) times
D) *
  • 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) while
C) do-while
D) for
  • 24. What tool simulates a real Android device?
A) ANDROID STIMULI
B) ANDROID PHONE
C) ANDROID SIMULATOR
D) ANDROID EMULATOR
  • 25. What is the default displayed text in the calculator app's TextView?
A) output
B) results
C) 0
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) 5
B) 10
C) Error
D) 5.0
  • 28. What data type is used to store true/false values in Dart?
A) binary
B) double
C) bool
D) int
  • 29. Which Dart function can be void (no return value)?
A) All of these
B) displayOutput()
C) print()
D) calculateArea()
  • 30. What layout is used for button placement in the sample calculator app?
A) GridLayout
B) RelativeLayout
C) ConstraintLayout
D) LinearLayout
Created with That Quiz — where a math practice test is always one click away.