- 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 19 B) API 21 C) API 14 D) API 25
- 3. In Dart, which keyword is used to define a function that returns a value?
A) function B) return C) def D) <type> (like int, double)
- 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) Null C) Error D) true
- 7. What is the result of this Dart statement: bool isTrue = 5 > 3 && 2 < 1;
A) False B) True C) Error D) Null
- 8. What component allows users to enter text in Android apps?
A) Button B) EditText C) GridLayout D) TextView
- 9. Which Kotlin function handles button clicks in the calculator?
A) listenClick B) addClickListener C) setOnClickListener D) setOnTapListener
- 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) echo() B) output() C) print() D) write()
- 12. What file defines the app's structure and permissions in Android projects?
A) AndroidManifest.com B) AndroidManifest.www C) AndroidManifest.file 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:ui B) dart:core C) dart:math D) dart:io
- 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) const B) val C) final D) var
- 17. What Android file includes the line
setContentView(R.layout.activity_main)?
A) MainActivity.kt B) AndroidManifest.xml C) build.gradle D) layout.xml
- 18. In Dart, how do you calculate the area of a circle using radius?
A) sqrt(radius) 3.14 B) radius radius 3.14 C) 3.14* radius D) π * r
- 19. Which of the following is NOT a Dart data type?
A) bool B) float C) int D) string
- 20. Which widget is used in Android XML to display text output?
A) Label B) EditText C) Button D) TextView
- 21. What symbol is used for multiplication in Kotlin code?
A) x B) times C) * D) mult()
- 22. What is the purpose of the AVD Manager?
A) Manage virtual devices B) Debug user input C) View application logs 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 PHONE B) ANDROID EMULATOR C) ANDROID STIMULI D) ANDROID SIMULATOR
- 25. What is the default displayed text in the calculator app's TextView?
A) results B) null C) 0 D) output
- 26. Which control structure handles "even or odd" checking in Dart?
A) loop B) for C) switch D) if-else
- 27. What is the result of 10/2 in Dart if both are integers?
A) 5 B) Error C) 5.0 D) 10
- 28. What data type is used to store true/false values in Dart?
A) bool B) double C) int D) binary
- 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) RelativeLayout C) ConstraintLayout D) LinearLayout
|