- 1. What keyword in Dart is used to handle errors during input?
A) try-catch B) catch C) error D) try
- 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) <type> (like int, double) B) def C) function D) return
- 4. Which method is used to start an Android app?
A) onStart() B) run() C) onCreate() 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) Error B) false C) true D) Null
- 7. What is the result of this Dart statement: bool isTrue = 5 > 3 && 2 < 1;
A) Null B) True C) False D) Error
- 8. What component allows users to enter text in Android apps?
A) GridLayout B) Button C) TextView D) EditText
- 9. Which Kotlin function handles button clicks in the calculator?
A) addClickListener B) setOnClickListener C) listenClick D) setOnTapListener
- 10. What folder in Android Studio stores layout XML files?
A) src B) res C) Values D) Manifest
- 11. What function is used in Dart to print output?
A) echo() B) write() C) print() D) output()
- 12. What file defines the app's structure and permissions in Android projects?
A) AndroidManifest.file B) AndroidManifest.com C) AndroidManifest.www D) AndroidManifest.xml 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:io B) dart:math C) dart:ui D) dart:core
- 15. What is the official IDE for Android development?
A) STUDIO MOBILE B) MOBILE STUDIO C) STUDIO ANDROID D) ANDROID STUDIO
- 16. What Kotlin variable type changes based on reassignment?
A) val B) const C) var D) final
- 17. What Android file includes the line
setContentView(R.layout.activity_main)?
A) build.gradle B) layout.xml C) AndroidManifest.xml D) MainActivity.kt
- 18. In Dart, how do you calculate the area of a circle using radius?
A) radius radius 3.14 B) π * r C) sqrt(radius) 3.14 D) 3.14* radius
- 19. Which of the following is NOT a Dart data type?
A) string B) float C) int D) bool
- 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) times B) mult() C) * D) x
- 22. What is the purpose of the AVD Manager?
A) View application logs B) Debug user input C) Monitor app usage D) Manage virtual devices
- 23. What Dart loop is best for a known number of iterations?
A) do-while B) while C) if D) for
- 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) 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) 10 C) 5 D) Error
- 28. What data type is used to store true/false values in Dart?
A) double B) binary C) int D) bool
- 29. Which Dart function can be void (no return value)?
A) All of these B) calculateArea() C) print() D) displayOutput()
- 30. What layout is used for button placement in the sample calculator app?
A) GridLayout B) RelativeLayout C) ConstraintLayout D) LinearLayout
|