Flutter MCQ Questions & Answers - Mobile Development
Flutter MCQs : This section focuses on "Flutter" in Mobile Development. These Multiple Choice Questions (MCQ) should be practiced to improve the Flutter skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Which of the following is true regarding Flutter?
A. Flutter is a UI toolkit for creating fast, beautiful, natively compiled mobile applications
B. Flutter use one programming language and a single codebase
C. Flutter is free and open-source.
D. All of the above
View Answer
Ans : D
Explanation: Flutter is a UI toolkit for creating fast, beautiful, natively compiled mobile applications with one programming language and a single codebase. It is an open-source development framework.
2. Flutter developed by?
A. Oracle
B. Facebook
C. Google
D. IBM
View Answer
Ans : C
Explanation: Flutter developed by Google.
3. Flutter is not a language; it is an SDK.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Flutter is not a language; it is an SDK.
4. The first alpha version of Flutter was released in ?
A. 2016
B. 2017
C. 2018
D. 2019
View Answer
Ans : B
Explanation: The first alpha version of Flutter was released in May 2017.
5. Flutter is mainly optimized for 2D mobile apps that can run on?
A. Android
B. iOS
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: Flutter is mainly optimized for 2D mobile apps that can run on both Android and iOS platforms
6. It is very necessary to learn Dart language for building Flutter application?
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, it is very necessary to learn Dart language for building Flutter application.
7. . A widget that allows us to refresh the screen is called a ____________.
A. Stateless widgets
B. Stateful widget
C. Statebuild widget
D. All of the above
View Answer
Ans : B
Explanation: A widget that allows us to refresh the screen is called a Stateful widget.
8. The examples of the Stateless widget are?
A. Text
B. Row
C. Column
D. All of the above
View Answer
Ans : D
Explanation: The examples of the Stateless widget are Text, Row, Column, Container, etc.
9. pubspec.yaml file does not contain?
A. Project general settings
B. Project dependencies
C. Project language
D. Project assets
View Answer
Ans : C
Explanation: This file contains : Project general settings , Project dependencies and Project assets.
10. Which of the following are the advantages of Flutter?
A. Cross-platform Development
B. Faster Development
C. Minimal code
D. All of the above
View Answer
Ans : D
Explanation: All of the above are the advantages of Flutter.
11. When you build the Flutter app the first time, does it will take a longer time?
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, When you build the Flutter app the first time, it will take a longer time. It is because the Flutter built the device-specific APK or IPA file. Thus, the Gradle and Xcode are used to build the file, taking a long time.
12. Which of the following used to develop the native hybrid app from a single codebase?
A. React Native
B. Flutter
C. Both A and B
D. Keras
View Answer
Ans : C
Explanation: Flutter and React Native are both used to develop the native hybrid app from a single codebase. These apps can run on iOS and Android platforms.
13. Which of the following works with a small r key on the terminal or commands prompt?
A. Hot Restart
B. Hot Reload
C. Cold Reload
D. Cold Restart
View Answer
Ans : B
Explanation: Hot Reload works with a small r key on the terminal or commands prompt.
14. Which of the following takes more time to compile and update the app?
A. Hot Reload
B. Hot Restart
C. Cold Reload
D. Depends on Compiler
View Answer
Ans : B
Explanation: Hot Restart takes more time than Hot Reload to compile and update the app.
15. Which function is responsible for starting the program?
A. runApp()
B. run()
C. flutter()
D. main()
View Answer
Ans : D
Explanation: The main() function is responsible for starting the program. Without the main() function, we cannot write any program on Flutter.
16. Streams can be of __________ types.
A. 0
B. 1
C. 2
D. 3
View Answer
Ans : C
Explanation: Streams can be of two types : Single subscription streams and Broadcast streams.
17. The Flutter tooling supports _____ modes while compiling the application
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : B
Explanation: The Flutter tooling supports three modes while compiling the application : Debug, Profile and Release
18. Release mode allows us to optimize the codes and generate them without any debug data in a fully optimized form
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Release mode allows us to optimize the codes and generate them without any debug data in a fully optimized form.
19. Which of the following tests a single widget?
A. Integration Tests
B. Unit Tests
C. Interactive Tests
D. Widget Tests
View Answer
Ans : D
Explanation: Widget Tests: It tests a single widget. Its goal is to ensure that the widget's UI looks and interacts with other widgets as expected.
20. WidgetsApp is used for basic navigation
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, WidgetsApp is used for basic navigation. It includes many foundational widgets together with the widgets library that Flutter uses to create the UI of our app.
Discussion