Flutter Basics QuizBy Parvesh Sandila / October 2, 2023 Welcome to your Flutter Basics Quiz Name Email 1. What is a "StatelessWidget" in Flutter? A widget that can only be used once A widget that cannot change its state after creation A widget that can change its state A widget that uses external APIs None 2. What does "pubspec.yaml" file contain in a Flutter project? Dependencies and project metadata App configuration settings Project documentation App's source code None 3. Which Flutter command is used to create a new Flutter project? flutter create flutter new flutter project flutter start None 4. Which widget is used to create a bottom navigation bar in Flutter? TabBar BottomNavigationBar BottomBar NavigationBar None 5. Which command is used to run a Flutter app in debug mode? flutter deploy flutter build flutter run flutter start None 6. How do you add a gradient background to a widget in Flutter? By setting the "backgroundGradient" property By using the "Gradient" widget By using the "Background" widget By wrapping the widget with the "DecoratedBox" widget None 7. Which Flutter widget is used to display a modal dialog box? PopupBox ModalDialog AlertDialog DialogBox None 8. How do you pass data between screens in Flutter? Using constructor parameters Using the "SharedPreferences" package Using the "Intent" class Using the "Navigator" widget None 9. What is the main advantage of Flutter's "hot reload" feature? It heats up your device. It compiles code faster. It reloads the entire app. It quickly applies code changes without restarting the app. None 10. What is the purpose of the "setState" method in Flutter? To update the widget's state and trigger a rebuild To define the app's theme To handle user input To build the app's UI None 11. What is the purpose of the "Key" parameter in Flutter widgets? To define the widget's dimensions To provide a unique identifier for widgets in the widget tree To specify the widget's name To set the widget's background color None 12. In Flutter, what is the default layout orientation for the "Column" widget? Horizontal Vertical Diagonal Circular None 13. Which package manager is commonly used in Flutter to manage dependencies? npm CocoaPods Gradle pub None 14. What is the purpose of the "FutureBuilder" widget in Flutter? To build responsive layouts To handle asynchronous operations and update the UI accordingly To build a UI for displaying future events To create animations None 15. In Flutter, what is the purpose of the MaterialApp widget? It provides access to device hardware. It displays the app's logo. It connects to a server. It defines the app's structure. None 1 out of 15