Android Development MCQs:
-
What does XML stand for in Android development?
- A) Extensible Markup Language
- B) eXtended Mobile Language
- C) Android Markup Language
- D) None of the above
Answer: A) Extensible Markup Language
-
Which file in Android contains the application's manifest information?
- A) main.xml
- B) AndroidManifest.xml
- C) app.xml
- D) manifest.xml
Answer: B) AndroidManifest.xml
-
What is the purpose of an Intent in Android?
- A) To display a notification
- B) To perform a background task
- C) To connect two components (like activities)
- D) To store application data
Answer: C) To connect two components (like activities)
-
What is the primary programming language used for Android app development?
- A) Java
- B) Swift
- C) Kotlin
- D) C#
Answer: C) Kotlin
-
Which component is responsible for handling the user interface in an Android app?
- A) Activity
- B) Service
- C) Broadcast Receiver
- D) Content Provider
Answer: A) Activity
-
What is an APK in the context of Android development?
- A) Android Package Kit
- B) Application Program Kit
- C) Android Programming Kernel
- D) Application Package
Answer: A) Android Package Kit
-
In Android, what is the purpose of the "adb" tool?
- A) Android Debug Bridge
- B) Application Database
- C) Android Deployment Bundle
- D) Application Development Bridge
Answer: A) Android Debug Bridge
-
What layout is typically used for creating a vertical list of scrollable items in Android?
- A) GridLayout
- B) FrameLayout
- C) LinearLayout
- D) RelativeLayout
Answer: C) LinearLayout
-
Which method is called when an activity is first created in Android?
- A) onStart()
- B) onResume()
- C) onCreate()
- D) onInit()
Answer: C) onCreate()
-
What is the purpose of the "R.java" file in Android?
- A) It contains resource IDs for all the resources in your project
- B) It is the main activity file
- C) It is the configuration file for the app
- D) It is the manifest file for the app
Answer: A) It contains resource IDs for all the resources in your project
iOS Development MCQs:
-
What programming language is primarily used for iOS app development?
- A) Java
- B) Objective-C
- C) Swift
- D) C#
Answer: C) Swift
-
Which IDE is commonly used for iOS development?
- A) Android Studio
- B) Xcode
- C) Eclipse
- D) Visual Studio
Answer: B) Xcode
-
What is the purpose of the "Info.plist" file in an iOS app?
- A) It contains app icons
- B) It stores user preferences
- C) It is the main storyboard file
- D) It contains configuration information about the app
Answer: D) It contains configuration information about the app
-
Which file defines the user interface of an iOS app?
- A) Interface.swift
- B) Main.storyboard
- C) UI.xml
- D) Design.plist
Answer: B) Main.storyboard
-
What is the role of a delegate in iOS development?
- A) To handle user input
- B) To manage data storage
- C) To respond to events and modify behavior
- D) To create user interfaces
Answer: C) To respond to events and modify behavior
-
What is the main purpose of Interface Builder in Xcode?
- A) To write code
- B) To design user interfaces visually
- C) To manage app resources
- D) To test the app
Answer: B) To design user interfaces visually
-
Which class is the entry point for an iOS app?
- A) MainViewController
- B) AppDelegate
- C) FirstScreen
- D) EntryPointController
Answer: B) AppDelegate
-
What is a "Storyboard" in iOS development?
- A) A file that contains app settings
- B) A visual representation of the app's user interface
- C) A database for storing app data
- D) A file that contains Swift code
Answer: B) A visual representation of the app's user interface
-
Which framework is commonly used for networking in iOS development?
- A) CoreGraphics
- B) CoreData
- C) UIKit
- D) URLSession
Answer: D) URLSession
-
What is the purpose of the "Core Data" framework in iOS development?
- A) To manage user authentication
- B) To perform animations
- C) To store and manage app data
- D) To create user interfaces
Answer: C) To store and manage app data
Flutter Development MCQs:
-
Which programming language is used for Flutter app development?
- A) Java
- B) Swift
- C) Dart
- D) Kotlin
Answer: C) Dart
-
What is Flutter's primary goal in terms of UI?
- A) Native look and feel
- B) Cross-platform consistency
- C) 3D graphics support
- D) Voice recognition
Answer: B) Cross-platform consistency
-
What is a "Widget" in Flutter?
- A) A small app
- B) A user interface element
- C) A package manager
- D) A programming language
Answer: B) A user interface element
-
What is the purpose of the "pubspec.yaml" file in a Flutter project?
- A) To define project dependencies
- B) To store UI layouts
- C) To configure app settings
- D) To define database schemas
Answer: A) To define project dependencies
-
What is the main function in a Flutter app?
- A) runApp()
- B) main()
- C) startApp()
- D) launch()
Answer: B) main()
-
Which command is used to hot reload changes in a Flutter project?
- A) flutter start
- B) reload
- C) flutter run
- D) hot
Answer: C) flutter run
-
What is the purpose of the "setState" method in Flutter?
- A) To update the app's state and trigger a rebuild
- B) To define a new screen
- C) To create a new widget
- D) To handle user input
Answer: A) To update the app's state and trigger a rebuild
-
Which widget is used for creating a scrollable list of widgets in Flutter?
- A) Column
- B) ListView
- C) GridView
- D) Row
Answer: B) ListView
-
What is the Flutter framework for building layouts and UI components?
- A) FlutterUI
- B) FlutterDesign
- C) FlutterWidgets
- D) FlutterMaterial
Answer: C) FlutterWidgets
-
What is the purpose of the "Flutter Doctor" command?
- A) To diagnose and fix issues with the Flutter installation
- B) To analyze app performance
- C) To create a new Flutter project
- D) To generate documentation
Answer: A) To diagnose and fix issues with the Flutter installation