- 1. What keyword in Dart is used to handle errors during input?
A) try B) error C) try-catch D) catch
- 2. What is the minimum recommended API level for Android projects?
A) API 25 B) API 14 C) API 19 D) API 21
- 3. In Dart, which keyword is used to define a function that returns a value?
A) return B) function 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) Null B) true C) false 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) GridLayout B) Button C) EditText D) TextView
- 9. Which Kotlin function handles button clicks in the calculator?
A) setOnClickListener B) setOnTapListener C) addClickListener D) listenClick
- 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) write() B) echo() 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.xml D) AndroidManifest.org 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:ui B) dart:math C) dart:io D) dart:core
- 15. What is the official IDE for Android development?
A) STUDIO ANDROID B) STUDIO MOBILE C) ANDROID STUDIO D) MOBILE STUDIO
- 16. What Kotlin variable type changes based on reassignment?
A) val B) final C) var D) const
- 17. What Android file includes the line
setContentView(R.layout.activity_main)?
A) MainActivity.kt B) layout.xml C) AndroidManifest.xml D) build.gradle
- 18. In Dart, how do you calculate the area of a circle using radius?
A) radius radius 3.14 B) π * r C) 3.14* radius D) sqrt(radius) 3.14
- 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) * B) x C) times D) mult()
- 22. What is the purpose of the AVD Manager?
A) Manage virtual devices B) Monitor app usage C) View application logs D) Debug user input
- 23. What Dart loop is best for a known number of iterations?
A) if B) do-while C) for D) while
- 24. What tool simulates a real Android device?
A) ANDROID SIMULATOR B) ANDROID EMULATOR C) ANDROID STIMULI D) ANDROID PHONE
- 25. What is the default displayed text in the calculator app's TextView?
A) output B) results C) null D) 0
- 26. Which control structure handles "even or odd" checking in Dart?
A) for B) if-else C) loop D) switch
- 27. What is the result of 10/2 in Dart if both are integers?
A) 5 B) 10 C) 5.0 D) Error
- 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) displayOutput() C) calculateArea() D) All of these
- 30. What layout is used for button placement in the sample calculator app?
A) LinearLayout B) GridLayout C) ConstraintLayout D) RelativeLayout
|