CENTRAL BOARD OF EXAMINATIONS
DEPARTMENT OF IT
Duration: 2 Hours Total Mark: 40
DEPARTMENT OF PARAMEDICAL EDUCATION
1x40=40
1.Which widget is used for handling user input?
A. TextField B. Text C. GestureDetector D. Container
2.What does the `MaterialApp` widget do?
A. Provides material design features B. Creates a layout C. Defines the main function D. Manages app
lifecycle
3.What is the main difference between a StatelessWidget and a StatefulWidget?
A. StatelessWidget can be updated, StatefulWidget cannot B. StatefulWidget can be updated,
StatelessWidget cannot C. Both are the same D. None of the above
4.Which widget in Flutter is used to organize widgets vertically?
A. Column B. Row C. Stack D. GridView
5. What is the purpose of the `main.dart` file?
A. To define routes B. To set up the main app entry point C. To define the app theme D. To store assets
6.How do you create a stateful widget in Flutter?
A. Use the `State` class B. Use the `StatefulWidget` class C. Use the `build()` method D. Use the
`StatelessWidget` class
7. What does the `Navigator` widget do in Flutter?
A. Manages routes and navigation B. Creates animations C. Saves data D. Displays a list of items
8. How do you create a custom widget in Flutter?
A. By extending StatelessWidget or StatefulWidget B. By using the `build()` method C. By using the
`CustomWidget()` constructor D. By modifying the main() function
9. Which method is used to make an app responsive to different screen sizes?
A. LayoutBuilder B. Expanded C. Container D. MediaQuery
10. Which widget in Flutter is used to display a container?
A. Container B. Column C. Row D. Box
11.Which widget is used to provide flexibility in a layout in Flutter?
A. Expanded B. SizedBox C. Padding D. Container
12. Which of the following widgets can handle tap events?
A. GestureDetector B. Container C. ColumnD. Row
13. Which widget is used for creating a scrollable view?
A. ScrollView B. ListView C. Column D. Container
14. What does the `Scaffold` widget provide in Flutter?
A. Layout structure for the app B. An image display C. A navigation drawer D. All of the above
15. How do you check if a widget is visible on the screen?
A. By using `Visibility` widget B. By using `Offstage` widget C. By using `VisibilityDetector` widget D. Both A
and B
16. Which widget is used to create a scrollable view?
A. ListView B. Container C. Column D. Row
17. What is the purpose of the `pubspec.yaml` file?
A. To define routes B. To set up the app theme C. To store app dependencies D. To set the main widget
18. Which class in Flutter is used to define the app's theme?
A. ThemeData B. Theme C. ThemeStyle D. AppTheme
19. What is the main function in every Flutter application?
A. runApp() B. main() C. initState()D. start()
20. Which method is used to get a `BuildContext` in Flutter?
A. context() B. getContext() C. Builder.of(context) D. BuildContext()
21. What is the purpose of the `StatefulWidget`?
A. To define a widget that changes its state B. To create a layout C. To hold static data D. To manage
navigation
22. Which widget is used to display an app bar?
A. AppBar B. Column C. Text D. Container
23. Which method is used to show a SnackBar in Flutter?
A. Scaffold.of(context).showSnackBar() B. Scaffold.show() C. showSnackBar() D. Scaffold.showSnack()
24. What does Flutter use to build user interfaces?
A. Widgets B. Classes C. Functions D. Libraries
25.Which of the following is used to add padding around a widget in Flutter?
A. Padding B. Margin C. Container D. SizedBox
26. What is the default value of `mainAxisAlignment` in a `Row` widget?
A. start B. center C. spaceBetween D. end
27. Which widget can be used to provide a material design visual structure?
A. MaterialApp B. CupertinoApp C. Scaffold D. AppBar
28. Which Flutter widget is used to make a widget tappable?
A. GestureDetector B. Button C. InkWell D. Both A and C
29. What is the purpose of the `Row` widget?
A. To arrange widgets horizontally B. To arrange widgets vertically C. To manage widgets in a list D. To create
a stacked layout
30. What is the purpose of the `StreamBuilder` widget?
A. To listen to streams and rebuild the widget B. To display images from a stream C. To send data to a
stream D. To create new streams
31. What is the purpose of the `setState()` function?
A. Changes the widget's appearance B. Rebuilds the widget tree C. Initializes state D. Defines routes
32. Which of the following is a layout widget in Flutter?
A. Text B. Column C. GestureDetector D. ListView
33. Which widget in Flutter is used to create a simple button?
A. FlatButton B. RaisedButton C. MaterialButton D. IconButton
34. How do you navigate between screens in Flutter?
A. By using the `Navigator` widget B. By using routes C. By using push/pop methods D. All of the above
35. What is the purpose of the `mainAxisAlignment` property in a `Row` widget?
A. Aligns widgets vertically B. Aligns widgets horizontally C. Creates padding between widgets D. Specifies
the text direction
36. Which of the following is used to display text in Flutter?
A. Container B. Text C. Image D. Button
37. What is the default `mainAxisAlignment` for a `Column` widget?
A. center B. start C. end D. spaceBetween
38. Which widget is used to create a clickable text link?
A. GestureDetector B. FlatButton C. InkWell D. TextButton
39. What is the `FutureBuilder` widget used for in Flutter?
A. To build a widget based on asynchronous data B. To create a future function C. To store data D. To define
routes
40. How do you specify a widget's size in Flutter?
A. By using the `width` and `height` properties B. By using the `SizedBox` widget C. By using the `size`
property D. All of the above