---
1. What is the main purpose of a Mobile Application Development Platform (MADP)?
A) To design hardware for mobile devices
B) To advertise mobile applications
C) To assist in creating, deploying, and managing mobile apps
D) To browse mobile websites
Answer: C
---
2. Which of the following is a key component of an MADP?
A) Video editing software
B) Content management system
C) Integrated Development Environment (IDE)
D) Web browser
Answer: C
---
3. Which tool is commonly used as an IDE for Android development?
A) Xcode
B) Android Studio
C) Visual Studio Code
D) Unity
Answer: B
---
4. What is the function of an SDK in MADP?
A) To display user analytics
B) To manage social media platforms
C) To provide libraries and APIs for app development
D) To compress mobile applications
Answer: C
---
5. Which of these is NOT typically included in an MADP?
A) Analytical tools
B) Video streaming tools
C) Debugging tools
D) Back-end services
Answer: B
---
6. What is the main benefit of cross-platform development?
A) High-end graphics
B) Maximum security
C) Ability to reuse code across multiple platforms
D) Larger application size
Answer: C
---
7. Flutter is developed by which company?
A) Microsoft
B) Facebook
C) Google
D) Apple
Answer: C
---
8. Which language does React Native primarily use?
A) Dart
B) C
C) Java
D) JavaScript
Answer: D
---
9. Xamarin is owned by which company?
A) Google
B) Apple
C) Facebook
D) Microsoft
Answer: D
---
10. What are hybrid platforms primarily built with?
A) Swift and Kotlin
B) HTML, CSS, and JavaScript
C) Python and Ruby
D) C++ and Objective-C
Answer: B
---
11. What is one advantage of using MADPs for mobile development?
A) Lower data storage
B) Reduced screen size
C) Faster time to market
D) Incompatibility with older devices
Answer: C
---
12. Which of the following is a hybrid platform?
A) Xamarin
B) Flutter
C) Apache Cordova
D) Android Studio
Answer: C
---
13. When should native development be preferred over cross-platform?
A) When developing a basic web app
B) For apps needing minimal resources
C) For resource-intensive apps requiring optimal performance
D) When targeting all platforms equally
Answer: C
---
14. What feature do MADPs often include to ensure app security?
A) Ad injection
B) Built-in security features and encryption
C) Free domain names
D) Virus scanning tools
Answer: B
---
15. What should be considered when choosing a MADP?
A) Number of downloads on Play Store
B) Company brand color
C) App complexity and developer expertise
D) Size of the smartphone screen
Answer: C
---
---
16. What is Android primarily based on?
A) Unix
B) iOS
C) Linux
D) Windows
Answer: C
---
17. Which component of Android provides an abstraction layer between hardware and software?
A) Android Runtime
B) Dalvik VM
C) Linux Kernel
D) Application Framework
Answer: C
---
18. What is the purpose of the AndroidManifest.xml file?
A) To display UI elements
B) To define Java classes
C) To declare application components and permissions
D) To configure Gradle builds
Answer: C
---
19. Which of these is not a core component of an Android application?
A) Activities
B) Adapters
C) Broadcast Receivers
D) Services
Answer: B
---
20. What does the onCreate() method in an Activity signify?
A) Activity is about to be destroyed
B) Activity is just about to start
C) Activity is being created
D) Activity is in background
Answer: C
---
21. Which tool is officially recommended for Android development?
A) Eclipse
B) IntelliJ IDEA
C) Visual Studio
D) Android Studio
Answer: D
---
22. What is an AVD in Android?
A) Android Virtual Drive
B) Android View Design
C) Android Virtual Device
D) Android Versioning Device
Answer: C
---
23. Which layout aligns all children in a single direction, vertically or horizontally?
A) RelativeLayout
B) GridLayout
C) LinearLayout
D) FrameLayout
Answer: C
---
24. What is the main difference between onPause() and onStop()?
A) onPause stops the app, onStop destroys it
B) onPause allows user input, onStop does not
C) onPause is called before the activity becomes invisible; onStop when it is fully invisible
D) Both are called at the same time
Answer: C
---
25. What is the role of SQLite in Android?
A) Design UI
B) Provide cloud storage
C) Manage local databases
D) Sync messages
Answer: C
---
26. Which XML file contains UI string resources?
A) styles.xml
B) strings.xml
C) themes.xml
D) arrays.xml
Answer: B
---
27. What is the use of Intent in Android?
A) Designing layouts
B) Starting new activities or services
C) Creating database connections
D) Declaring permissions
Answer: B
---
28. Which UI component is used to display a scrollable list of items?
A) Spinner
B) EditText
C) ListView
D) TextView
Answer: C
---
29. Which method is called after onStop() when an activity is being restarted?
A) onResume()
B) onDestroy()
C) onRestart()
D) onStart()
Answer: C
---
30. Which of the following is used to store and access raw image files in Android?
A) res/layout
B) res/drawable
C) res/values
D) res/raw
Answer: B
---
---
31. What is HTML5 primarily used for in mobile development?
A) Managing databases
B) Creating native Android applications
C) Structuring and presenting content for mobile-friendly websites and apps
D) Creating operating systems
Answer: C
---
32. Which HTML5 feature allows mobile apps to function without an internet connection?
A) Multimedia Support
B) Offline Storage and Caching
C) SVG
D) Responsive Design
Answer: B
---
33. Which API in HTML5 is used to retrieve the location of a device?
A) DeviceMotion API
B) Compass API
C) GPS API
D) Geolocation API
Answer: D
---
34. What is the benefit of HTML5's native support for audio and video elements?
A) Reduces app size
B) Requires no testing
C) Eliminates the need for third-party plugins
D) Requires Flash for playback
Answer: C
---
35. Which of the following HTML5 elements is used for drawing graphics on mobile screens?
A) `<div>`
B) `<canvas>`
C) `<table>`
D) `<form>`
Answer: B
---
36. What do media queries in CSS3 primarily help with in mobile development?
A) Storing data
B) Accessing hardware
C) Creating responsive layouts
D) Playing video content
Answer: C
---
37. What is a hybrid mobile application?
A) A desktop app that runs in a browser
B) A native app developed in C++
C) An app built with HTML5/CSS/JS and wrapped in a native container
D) A browser extension
Answer: C
---
38. Which of these is NOT a benefit of using HTML5 for mobile app development?
A) Cross-platform compatibility
B) Direct access to hardware-level APIs
C) Ease of maintenance
D) Reduced development cost
Answer: B
---
39. Which mobile app development framework uses HTML5, CSS, and JavaScript?
A) Android Studio
B) SwiftUI
C) Apache Cordova
D) Kotlin
Answer: C
---
40. What type of mobile applications behave like apps when accessed via a browser and do not
require installation?
A) Native apps
B) Hybrid apps
C) Web apps
D) System apps
Answer: C
---
41. What limitation does HTML5 have when compared to native applications?
A) Cannot be used with JavaScript
B) Poor user interface
C) Limited access to device hardware
D) Doesn't support video playback
Answer: C
---
42. Which type of input enhancement was introduced in HTML5 for forms?
A) Input masking
B) Placeholder and required attributes
C) Dynamic field addition
D) Auto-reset forms
Answer: B
---
43. In what scenario is HTML5 considered the best choice for mobile development?
A) High-end 3D gaming
B) Applications needing real-time sensor data
C) Quick deployment across multiple platforms
D) System-level app creation
Answer: C
---
44. Which HTML5 component is useful for creating scalable vector graphics?
A) `<bitmap>`
B) `<draw>`
C) `<svg>`
D) `<geo>`
Answer: C
---
45. What is one of the performance limitations of HTML5 on mobile?
A) Cannot load on browsers
B) Slow UI rendering
C) Less efficient for graphics-intensive apps
D) Only works on iOS
Answer: C
---
46. What does the `final` keyword in Dart signify?
A) The variable is mutable
B) The variable can be reassigned later
C) The variable can be set only once and at runtime
D) The variable must be initialized at compile time
Answer: C
---
47. What is the key characteristic of a `const` variable in Dart?
A) It can be initialized later during execution
B) It is a runtime constant
C) It is a compile-time constant
D) It can hold dynamic values
Answer: C
---
48. Which keyword would you use to create a compile-time constant in Dart?
A) final
B) const
C) static
D) var
Answer: B
---
49. Which of the following Dart declarations is valid?
A) `const name = getName();`
B) `final name = 'Dart';`
C) `const int x = DateTime.now().year;`
D) `final const value = 100;`
Answer: B
---
50. When is a `final` variable in Dart initialized?
A) During app installation
B) At compile time
C) At runtime, when it's accessed
D) At runtime, when assigned
Answer: D
---
51. Can you assign a non-constant expression to a `const` variable in Dart?
A) Yes
B) No
C) Only for strings
D) Only with integers
Answer: B
---
52. Which of the following is true about `final` and `const` in Dart?
A) Both can be reassigned
B) Both must be initialized with literals
C) Both define variables that cannot be reassigned
D) Both require compile-time evaluation
Answer: C
---
53. What will happen if you try to reassign a `final` variable in Dart?
A) It will update normally
B) Compilation error
C) Runtime error
D) Warning only
Answer: C
---
54. Which keyword should you use for a value that doesn’t change and is known at compile
time?
A) final
B) const
C) static
D) dynamic
Answer: B
---
55. What is the output of the following Dart code?
```dart
final currentTime = DateTime.now();
const pi = 3.14;
print(currentTime);
print(pi);
```
A) Error: currentTime must be const
B) Error: pi must be final
C) It prints both values
D) It throws a runtime exception
Answer: C
---
56. Which of the following is a valid `if` statement in Dart?
A) `if x > 10 then print("x is big");`
B) `if x > 10: print("x is big");`
C) `if (x > 10) print("x is big");`
D) `if x > 10 print("x is big");`
Answer: C
---
57. What keyword is used for an alternative condition when the `if` condition fails in Dart?
A) elseif
B) elif
C) else if
D) otherwise
Answer: C
---
58. What will the following Dart code print?
```dart
int x = 5;
if (x > 10) {
print("Big");
} else {
print("Small");
```
A) Big
B) Small
C) 5
D) Error
Answer: B
---
59. Which syntax correctly uses a ternary operator in Dart?
A) `x > 10 ? print("Big") : print("Small");`
B) `print x > 10 ? "Big" : "Small";`
C) `x ? "Big" : "Small";`
D) `x > 10 then "Big" else "Small";`
Answer: A
---
60. In Dart, which keyword is used to check multiple constant values for a variable?
A) loop
B) match
C) switch
D) case-if
Answer: C
---
61. What is required to end each `case` in a `switch` statement in Dart?
A) break
B) return
C) continue
D) exit
Answer: A
---
62. What will this code output?
```dart
int x = 3;
switch (x) {
case 1:
print("One");
break;
case 3:
print("Three");
break;
default:
print("Other");
```
A) One
B) Three
C) Other
D) Error
Answer: B
---
63. Which of the following is TRUE about the `switch` statement in Dart?
A) It can evaluate any type of condition
B) It supports range cases
C) Each case must end with `break`, `return`, or `throw`
D) `default` case is optional but must come first
Answer: C
---
64. What is the purpose of the `else` block in an `if-else` structure?
A) To handle syntax errors
B) To specify code that always executes
C) To run code if the `if` condition is false
D) To break a loop
Answer: C
---
65. What is the output of this Dart ternary operation?
```dart
int a = 4;
int b = 7;
print(a > b ? "A" : "B");
```
A) A
B) B
C) 4
D) 7
Answer: B
---
---
66. Which of the following is a valid `for` loop in Dart?
A) `for (i = 0; i < 5; i++)`
B) `for int i in 0..5`
C) `for (int i = 0; i < 5; i++)`
D) `for each (i = 0; i < 5; i++)`
Answer: C
---
67. Which loop is best when the number of iterations is not known in advance?
A) `for` loop
B) `while` loop
C) `do-while` loop
D) `switch` statement
Answer: B
---
68. What is the output of this code?
```dart
int i = 0;
while (i < 3) {
print(i);
i++;
```
A) 0 1 2
B) 1 2 3
C) 0 1 2 3
D) Infinite loop
Answer: A
---
69. Which Dart loop guarantees at least one execution of the block?
A) `for`
B) `while`
C) `do-while`
D) `foreach`
Answer: C
---
70. What is the output of the following Dart code?
```dart
for (int i = 0; i < 3; i++) {
if (i == 1) continue;
print(i);
```
A) 0 1 2
B) 0 2
C) 1 2
D) 0 1
Answer: B
---
71. How do you iterate over a list in Dart using a `for-in` loop?
A) `for i in list`
B) `foreach (var i in list)`
C) `for (var i in list)`
D) `for (int i = 0; i < list.length; i++)`
Answer: C
---
72. What is the role of the `break` statement in a loop?
A) Skips current iteration
B) Jumps to next iteration
C) Exits the loop immediately
D) Restarts the loop
Answer: C
---
73. What will this Dart code print?
```dart
int i = 0;
do {
print(i);
i++;
} while (i < 2);
```
A) 0
B) 0 1
C) 1
D) Nothing
Answer: B
---
74. Which of the following is NOT a valid loop type in Dart?
A) `for`
B) `foreach`
C) `while`
D) `do-while`
Answer: B
---
75. Which loop structure is best when you want to iterate through elements of a list?
A) `switch`
B) `for` with index
C) `while`
D) `do-while`
Answer: B
---
---
76. What is the primary use of the `Container` widget in Flutter?
A) Display text
B) Create animations
C) Layout and style its child widget
D) Handle user input
Answer: C
---
77. Which widget centers its child both vertically and horizontally in Flutter?
A) Align
B) Container
C) Center
D) Column
Answer: C
---
78. How do you apply padding inside a `Container` in Flutter?
A) `Container(padding: EdgeInsets.all(10))`
B) `Container(margin: 10)`
C) `Container(spacing: 10)`
D) `Container(space: 10)`
Answer: A
---
79. What property is used to give a `Container` a background color?
A) `backgroundColor`
B) `color`
C) `bgColor`
D) `fill`
Answer: B
---
80. What is the default alignment for a `Container`’s child?
A) Center
B) Top-left
C) Middle-right
D) Bottom
Answer: B
---
81. Which widget is used to display a string of text in Flutter?
A) Label
B) TextField
C) Text
D) InputText
Answer: C
---
82. What property would you use to style text in a `Text` widget?
A) `style`
B) `fontStyle`
C) `textStyle`
D) `theme`
Answer: A
---
83. How do you make text bold in a `Text` widget?
A) `fontSize: 20`
B) `fontWeight: FontWeight.bold`
C) `fontFamily: 'bold'`
D) `bold: true`
Answer: B
---
84. Which property in `TextStyle` is used to change the font size?
A) `fontWeight`
B) `textSize`
C) `size`
D) `fontSize`
Answer: D
---
85. Which widget wraps another widget to align it to the center of its parent?
A) Align
B) Padding
C) Center
D) SizedBox
Answer: C
---
86. What property is used to round the corners of a `Container`?
A) `border`
B) `radius`
C) `shape`
D) `borderRadius`
Answer: D
---
87. How would you make a `Text` widget red in color?
A) `Text("Hello", color: Colors.red)`
B) `Text("Hello", style: Color.red)`
C) `Text("Hello", style: TextStyle(color: Colors.red))`
D) `Text("Hello", style: Colors.red)`
Answer: C
---
89. What does the `TextAlign.center` property do in a `Text` widget?
A) Centers the text vertically
B) Adds spacing between characters
C) Aligns the text to the center horizontally
D) Justifies the text
Answer: C
---
90. Which of the following adds spacing outside of a `Container` widget?
A) `margin`
B) `padding`
C) `spacing`
D) `gap`
Answer: A
---
91. How do you change the font family of text in Flutter?
A) `fontStyle`
B) `fontFamily`
C) `fontType`
D) `fontClass`
Answer: B
92. Which Flutter button has a shadow and a background color by default?
A) TextButton
B) ElevatedButton
C) OutlinedButton
D) FlatButton
Answer: B
---
93. Which button type is best used for low emphasis actions with no background?
A) ElevatedButton
B) OutlinedButton
C) TextButton
D) FloatingActionButton
Answer: C
---
94. Which button type displays a border around its content by default?
A) ElevatedButton
B) TextButton
C) OutlinedButton
D) IconButton
Answer: C
---
95. What is the required property for any button in Flutter to make it functional?
A) `style`
B) `onTap`
C) `onPressed`
D) `click`
Answer: C
---
96. Which widget will you use to give elevation to a button?
A) TextButton
B) ElevatedButton
C) OutlinedButton
D) GestureDetector
Answer: B
---
97. How do you customize the style of a TextButton?
A) `TextButton.setStyle(...)`
B) `TextButton.style(...)`
C) `TextButton(style: ...)`
D) `TextButtonStyle(...)`
Answer: C
---
98. Which code snippet creates an OutlinedButton in Flutter?
A) `OutlinedButton(onPressed: () {}, child: Text('Click'))`
B) `OutlineButton(onPressed: () {}, child: Text('Click'))`
C) `BorderButton(onPressed: () {}, child: Text('Click'))`
D) `FlatButton(onPressed: () {}, child: Text('Click'))`
Answer: A
---
99. Which button is suitable when minimal visual distraction is required?
A) ElevatedButton
B) OutlinedButton
C) TextButton
D) MaterialButton
Answer: C
---
100. What property is used to define shape and border radius of a button?
A) `border`
B) `shape`
C) `outline`
D) `decoration`
Answer: B
---
101. What will happen if you do not provide `onPressed` for a button?
A) It will throw an error
B) The app won’t run
C) The button will be disabled
D) It will automatically navigate to home
Answer: C
---
102. Which Flutter button is used for primary actions in UI?
A) OutlinedButton
B) TextButton
C) ElevatedButton
D) IconButton
Answer: C
---
103. Which widget is not a part of the Material Design buttons in Flutter?
A) TextButton
B) OutlinedButton
C) ElevatedButton
D) CommandButton
Answer: D
---
104. How would you add padding inside a button?
A) `margin:`
B) `padding:` in `style`
C) `insets:`
D) `borderPadding:`
Answer: B
---
105. Which of these buttons was formerly known as `FlatButton`?
A) OutlinedButton
B) ElevatedButton
C) TextButton
D) RawButton
Answer: C
---
106. What method allows you to style all three buttons (`TextButton`, `OutlinedButton`,
`ElevatedButton`) uniformly?
A) `ThemeData` > `buttonTheme`
B) `ButtonThemeData`
C) `ButtonStyle`
D) `ButtonBuilder`
Answer: C
107. Which widget is commonly used to display an image in Flutter?
A) `ImageBox`
B) `Picture`
C) `Image`
D) `ImageView`
Answer: C
---
108. Where should you place image files in a Flutter project by convention?
A) `lib/images`
B) `assets/images`
C) `src/assets`
D) `android/res/drawable`
Answer: B
---
109. What must you add to `pubspec.yaml` to use an image asset in your Flutter app?
A) `dependencies:`
B) `dev_dependencies:`
C) `assets:`
D) `images:`
Answer: C
---
110. What is the correct syntax to declare an image asset in `pubspec.yaml`?
A) `assets: ["images/myimage.jpg"]`
B) `image: "assets/images/myimage.jpg"`
C) `assets: - assets/images/myimage.jpg`
D) `use-assets: assets/images/myimage.jpg`
Answer: C
---
111. What is the correct way to display an asset image in Flutter?
A) `Image.network("assets/images/pic.jpg")`
B) `Image.asset("assets/images/pic.jpg")`
C) `Image.file("assets/images/pic.jpg")`
D) `Image.local("assets/images/pic.jpg")`
Answer: B
---
112. Which widget would you use to display an image from the internet?
A) `Image.asset()`
B) `Image.file()`
C) `Image.network()`
D) `Image.http()`
Answer: C
---
113. What happens if you forget to add the image path in `pubspec.yaml`?
A) The image loads anyway
B) The app crashes
C) The image shows a gray box or error
D) It automatically detects the image
Answer: C
---
114. Which of the following will correctly stretch an image to fit its container?
A) `fit: BoxFit.fill`
B) `scale: 2`
C) `stretch: true`
D) `expand: all`
Answer: A
---
115. What is the default behavior of `Image.asset` if the image does not fit the space?
A) Stretches
B) Crops
C) Shows partially
D) Shrinks proportionally
Answer: D
---
116. How do you display a circular image in Flutter?
A) Use `Image.asset` with a radius
B) Use `CircleAvatar` with `backgroundImage`
C) Use `ImageCircle` widget
D) Wrap image in `Container` with `circle: true`
Answer: B
117. Which company acquired Android Inc. in 2005?
A) Microsoft
B) Apple
C) Google
D) IBM
Answer: C) Google
118. When was the Android OS officially launched?
A) 2005
B) 2006
C) 2008
D) 2010
Answer: C) 2008
119. Which of the following best describes Android OS?
A) Closed-source and Windows-based
B) Open-source and Linux-based
C) Proprietary and Unix-based
D) Apple-exclusive platform
Answer: B) Open-source and Linux-based
120. What makes Android attractive for device manufacturers and developers?
A) High cost
B) Closed environment
C) Limited hardware support
D) Customizability and open-source nature
Answer: D) Customizability and open-source nature
121. Which is the base layer of the Android architecture?
A) Application Framework
B) HAL
C) Linux Kernel
D) Android Runtime
Answer: C) Linux Kernel
122. The role of HAL (Hardware Abstraction Layer) is to:
A) Interact with third-party apps
B) Provide multimedia features
C) Bridge the kernel and hardware-specific drivers
D) Store user preferences
Answer: C) Bridge the kernel and hardware-specific drivers
123. What component executes Android apps efficiently?
A) JVM
B) ART (Android Runtime)
C) OpenGL
D) SQLite
Answer: B) ART (Android Runtime)
124. What is the role of the Application Framework in Android?
A) Running kernel processes
B) Rendering 3D graphics
C) Providing APIs for app development
D) Displaying bootloader
Answer: C) Providing APIs for app development
125. Which of the following is an example of a library used in Android for graphics?
A) SQLite
B) OpenGL
C) Firebase
D) Retrofit
Answer: B) OpenGL
126. The Application layer in Android consists of:
A) Hardware drivers
B) User-facing apps
C) Database systems
D) Broadcast systems
Answer: B) User-facing apps
127. Activities in Android are:
A) Used to manage background services
B) Responsible for sharing data
C) UI building blocks
D) Used for multimedia playback
Answer: C) UI building blocks
128. Which component handles tasks in the background without user interaction?
A) Broadcast Receiver
B) Service
C) Activity
D) Content Provider
Answer: B) Service
129. Content Providers are mainly used to:
A) Play media
B) Fetch API data
C) Share and manage app data
D) Handle animations
Answer: C) Share and manage app data
130. What do Broadcast Receivers do in Android apps?
A) Design UI
B) Respond to system-wide messages
C) Store app data
D) Handle multitasking
Answer: B) Respond to system-wide messages
131. XML in Android is primarily used for:
A) Coding logic
B) Hardware interaction
C) Designing UI layouts
D) Database connection
Answer: C) Designing UI layouts
132. Android apps are primarily developed using:
A) Swift and Objective-C
B) Kotlin and Java
C) C and .NET
D) Python and Ruby
Answer: B) Kotlin and Java
133. What tool is used to develop and test Android applications?
A) Visual Studio
B) Eclipse
C) Xcode
D) Android Studio
Answer: D) Android Studio
134. Before publishing an Android app, it should be:
A) Deployed to GitHub
B) Minified
C) Tested and debugged
D) Encrypted
Answer: C) Tested and debugged
135. Which layer in iOS manages multimedia tasks like audio and video playback?
A) Core OS
B) Core Services
C) Media Layer
D) Cocoa Touch
Answer: C) Media Layer
136. UIKit in iOS is mainly used for:
A) Managing security features
B) Networking APIs
C) Building the user interface
D) Data encryption
Answer: C) Building the user interface