- 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 14 C) API 25 D) API 21
- 3. In Dart, which keyword is used to define a function that returns a value?
A) function B) def C) <type> (like int, double) D) return
- 4. Which method is used to start an Android app?
A) startApp() B) run() C) onStart() D) onCreate()
- 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) false B) true C) Null D) Error
- 7. What is the result of this Dart statement: bool isTrue = 5 > 3 && 2 < 1;
A) Null B) True C) Error D) False
- 8. What component allows users to enter text in Android apps?
A) TextView B) GridLayout C) Button D) EditText
- 9. Which Kotlin function handles button clicks in the calculator?
A) setOnClickListener B) addClickListener C) listenClick D) setOnTapListener
- 10. What folder in Android Studio stores layout XML files?
A) src B) Values C) res D) Manifest
- 11. What function is used in Dart to print output?
A) print() B) echo() C) output() D) write()
- 12. What file defines the app's structure and permissions in Android projects?
A) AndroidManifest.file B) AndroidManifest.com C) AndroidManifest.org D) AndroidManifest.xml 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:io B) dart:core C) dart:math D) dart:ui
- 15. What is the official IDE for Android development?
A) ANDROID STUDIO B) STUDIO MOBILE C) MOBILE STUDIO D) STUDIO ANDROID
- 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) MainActivity.kt B) AndroidManifest.xml C) layout.xml D) build.gradle
- 18. In Dart, how do you calculate the area of a circle using radius?
A) sqrt(radius) 3.14 B) 3.14* radius C) π * r D) radius radius 3.14
- 19. Which of the following is NOT a Dart data type?
A) int B) bool C) string D) float
- 20. Which widget is used in Android XML to display text output?
A) Label B) Button C) EditText D) TextView
- 21. What symbol is used for multiplication in Kotlin code?
A) times B) mult() C) x D) *
- 22. What is the purpose of the AVD Manager?
A) Debug user input B) Manage virtual devices C) Monitor app usage D) View application logs
- 23. What Dart loop is best for a known number of iterations?
A) do-while B) for C) if D) while
- 24. What tool simulates a real Android device?
A) ANDROID EMULATOR B) ANDROID STIMULI C) ANDROID PHONE D) ANDROID SIMULATOR
- 25. What is the default displayed text in the calculator app's TextView?
A) output B) null C) 0 D) results
- 26. Which control structure handles "even or odd" checking in Dart?
A) switch B) if-else C) for D) loop
- 27. What is the result of 10/2 in Dart if both are integers?
A) 10 B) 5 C) 5.0 D) Error
- 28. What data type is used to store true/false values in Dart?
A) int B) binary C) bool D) double
- 29. Which Dart function can be void (no return value)?
A) calculateArea() B) All of these C) print() D) displayOutput()
- 30. What layout is used for button placement in the sample calculator app?
A) ConstraintLayout B) GridLayout C) LinearLayout D) RelativeLayout
|