Flutter MCQ Questions - Mobile Development
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