- 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 25 B) API 19 C) API 14 D) API 21
- 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) startApp() B) onStart() C) onCreate() D) run()
- 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) true C) Null D) false
- 7. What is the result of this Dart statement: bool isTrue = 5 > 3 && 2 < 1;
A) Error B) False C) True D) Null
- 8. What component allows users to enter text in Android apps?
A) Button B) GridLayout C) TextView D) EditText
- 9. Which Kotlin function handles button clicks in the calculator?
A) setOnClickListener B) addClickListener C) setOnTapListener D) listenClick
- 10. What folder in Android Studio stores layout XML files?
A) Values B) res C) Manifest D) src
- 11. What function is used in Dart to print output?
A) write() B) echo() C) print() D) output()
- 12. What file defines the app's structure and permissions in Android projects?
A) AndroidManifest.xml B) AndroidManifest.www C) AndroidManifest.org D) AndroidManifest.com 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:ui B) dart:math C) dart:io D) dart:core
- 15. What is the official IDE for Android development?
A) STUDIO MOBILE B) ANDROID STUDIO C) MOBILE STUDIO D) STUDIO ANDROID
- 16. What Kotlin variable type changes based on reassignment?
A) final B) const C) var D) val
- 17. What Android file includes the line
setContentView(R.layout.activity_main)?
A) AndroidManifest.xml B) MainActivity.kt 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) float B) int C) bool D) string
- 20. Which widget is used in Android XML to display text output?
A) Button B) Label C) TextView 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) 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) while B) for C) if D) do-while
- 24. What tool simulates a real Android device?
A) ANDROID SIMULATOR B) ANDROID PHONE C) ANDROID STIMULI D) ANDROID EMULATOR
- 25. What is the default displayed text in the calculator app's TextView?
A) 0 B) results C) output D) null
- 26. Which control structure handles "even or odd" checking in Dart?
A) for B) switch C) loop D) if-else
- 27. What is the result of 10/2 in Dart if both are integers?
A) 5.0 B) 5 C) Error D) 10
- 28. What data type is used to store true/false values in Dart?
A) bool B) binary C) int D) double
- 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) ConstraintLayout B) GridLayout C) RelativeLayout D) LinearLayout
|