- 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 14 B) API 19 C) API 21 D) API 25
- 3. In Dart, which keyword is used to define a function that returns a value?
A) def B) <type> (like int, double) C) return D) function
- 4. Which method is used to start an Android app?
A) startApp() B) onCreate() C) run() 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) false B) true C) Error D) Null
- 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) EditText D) Button
- 9. Which Kotlin function handles button clicks in the calculator?
A) listenClick B) setOnClickListener C) addClickListener D) setOnTapListener
- 10. What folder in Android Studio stores layout XML files?
A) Manifest B) res C) Values D) src
- 11. What function is used in Dart to print output?
A) echo() B) output() C) write() D) print()
- 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:math B) dart:core C) dart:ui D) dart:io
- 15. What is the official IDE for Android development?
A) STUDIO MOBILE B) MOBILE STUDIO C) ANDROID STUDIO D) STUDIO ANDROID
- 16. What Kotlin variable type changes based on reassignment?
A) val B) var C) const 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) 3.14* radius B) radius radius 3.14 C) π * r D) sqrt(radius) 3.14
- 19. Which of the following is NOT a Dart data type?
A) int B) float C) string D) bool
- 20. Which widget is used in Android XML to display text output?
A) Label B) TextView C) Button D) EditText
- 21. What symbol is used for multiplication in Kotlin code?
A) mult() B) times C) * D) x
- 22. What is the purpose of the AVD Manager?
A) Debug user input B) View application logs C) Manage virtual devices D) Monitor app usage
- 23. What Dart loop is best for a known number of iterations?
A) do-while B) if C) while D) for
- 24. What tool simulates a real Android device?
A) ANDROID STIMULI B) ANDROID EMULATOR C) ANDROID SIMULATOR D) ANDROID PHONE
- 25. What is the default displayed text in the calculator app's TextView?
A) output B) null C) results D) 0
- 26. Which control structure handles "even or odd" checking in Dart?
A) switch B) loop C) if-else D) for
- 27. What is the result of 10/2 in Dart if both are integers?
A) 5 B) 5.0 C) 10 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) All of these B) displayOutput() C) print() D) calculateArea()
- 30. What layout is used for button placement in the sample calculator app?
A) RelativeLayout B) ConstraintLayout C) GridLayout D) LinearLayout
|