- 1. What keyword in Dart is used to handle errors during input?
A) try-catch B) catch C) try D) error
- 2. What is the minimum recommended API level for Android projects?
A) API 21 B) API 14 C) API 25 D) API 19
- 3. In Dart, which keyword is used to define a function that returns a value?
A) return B) def C) <type> (like int, double) D) function
- 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) true B) Null C) false D) Error
- 7. What is the result of this Dart statement: bool isTrue = 5 > 3 && 2 < 1;
A) Error B) Null C) True D) False
- 8. What component allows users to enter text in Android apps?
A) EditText B) TextView C) GridLayout D) Button
- 9. Which Kotlin function handles button clicks in the calculator?
A) addClickListener B) listenClick C) setOnTapListener 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) output() B) print() C) echo() D) write()
- 12. What file defines the app's structure and permissions in Android projects?
A) AndroidManifest.file B) AndroidManifest.www C) AndroidManifest.org D) AndroidManifest.com 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:ui B) dart:math C) dart:io D) dart:core
- 15. What is the official IDE for Android development?
A) STUDIO ANDROID B) ANDROID STUDIO C) STUDIO MOBILE D) MOBILE STUDIO
- 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) 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) radius radius 3.14 B) sqrt(radius) 3.14 C) 3.14* radius D) π * r
- 19. Which of the following is NOT a Dart data type?
A) string B) bool C) int D) float
- 20. Which widget is used in Android XML to display text output?
A) Label B) EditText C) TextView D) Button
- 21. What symbol is used for multiplication in Kotlin code?
A) * B) times C) x D) mult()
- 22. What is the purpose of the AVD Manager?
A) Debug user input B) Monitor app usage C) Manage virtual devices D) View application logs
- 23. What Dart loop is best for a known number of iterations?
A) for B) while C) do-while D) if
- 24. What tool simulates a real Android device?
A) ANDROID PHONE B) ANDROID STIMULI C) ANDROID EMULATOR D) ANDROID SIMULATOR
- 25. What is the default displayed text in the calculator app's TextView?
A) null B) output C) results D) 0
- 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) 10 C) 5 D) Error
- 28. What data type is used to store true/false values in Dart?
A) double B) binary C) bool D) int
- 29. Which Dart function can be void (no return value)?
A) print() B) calculateArea() C) All of these D) displayOutput()
- 30. What layout is used for button placement in the sample calculator app?
A) GridLayout B) LinearLayout C) ConstraintLayout D) RelativeLayout
|