- 1. What keyword in Dart is used to handle errors during input?
A) error B) catch 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) def B) return C) <type> (like int, double) D) function
- 4. Which method is used to start an Android app?
A) startApp() B) run() C) onCreate() 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) Error B) Null C) true D) false
- 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) Button B) EditText C) TextView D) GridLayout
- 9. Which Kotlin function handles button clicks in the calculator?
A) setOnTapListener B) setOnClickListener C) addClickListener D) listenClick
- 10. What folder in Android Studio stores layout XML files?
A) src B) Values C) Manifest D) res
- 11. What function is used in Dart to print output?
A) write() B) output() C) echo() D) print()
- 12. What file defines the app's structure and permissions in Android projects?
A) AndroidManifest.org B) AndroidManifest.xml C) AndroidManifest.file D) AndroidManifest.com E) AndroidManifest.www
- 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:ui C) dart:io D) dart:core
- 15. What is the official IDE for Android development?
A) MOBILE STUDIO B) STUDIO ANDROID C) ANDROID STUDIO D) STUDIO MOBILE
- 16. What Kotlin variable type changes based on reassignment?
A) var B) final C) val D) const
- 17. What Android file includes the line
setContentView(R.layout.activity_main)?
A) build.gradle B) MainActivity.kt C) AndroidManifest.xml 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) radius radius 3.14 D) 3.14* radius
- 19. Which of the following is NOT a Dart data type?
A) float B) bool C) string D) int
- 20. Which widget is used in Android XML to display text output?
A) EditText B) TextView C) Label D) Button
- 21. What symbol is used for multiplication in Kotlin code?
A) times B) x C) mult() D) *
- 22. What is the purpose of the AVD Manager?
A) Manage virtual devices B) View application logs C) Monitor app usage D) Debug user input
- 23. What Dart loop is best for a known number of iterations?
A) for B) while C) if D) do-while
- 24. What tool simulates a real Android device?
A) ANDROID PHONE B) ANDROID STIMULI C) ANDROID SIMULATOR D) ANDROID EMULATOR
- 25. What is the default displayed text in the calculator app's TextView?
A) 0 B) results C) null D) output
- 26. Which control structure handles "even or odd" checking in Dart?
A) for B) loop C) switch D) if-else
- 27. What is the result of 10/2 in Dart if both are integers?
A) Error B) 5 C) 10 D) 5.0
- 28. What data type is used to store true/false values in Dart?
A) int B) binary C) double D) bool
- 29. Which Dart function can be void (no return value)?
A) All of these B) displayOutput() C) calculateArea() D) print()
- 30. What layout is used for button placement in the sample calculator app?
A) ConstraintLayout B) LinearLayout C) GridLayout D) RelativeLayout
|