Flutter Basics QuizBy Parvesh Sandila / October 2, 2023 Welcome to your Flutter Basics Quiz Name Email 1. What is the purpose of the "Key" parameter in Flutter widgets? To provide a unique identifier for widgets in the widget tree To define the widget's dimensions To set the widget's background color To specify the widget's name None 2. What is the purpose of the "FutureBuilder" widget in Flutter? To build a UI for displaying future events To handle asynchronous operations and update the UI accordingly To create animations To build responsive layouts None 3. What is a "StatelessWidget" in Flutter? A widget that can change its state A widget that can only be used once A widget that cannot change its state after creation A widget that uses external APIs None 4. How do you define a list of items in Flutter? With a for loop Using a ListView widget Using the main() function By creating a separate class None 5. What does "pubspec.yaml" file contain in a Flutter project? Project documentation App's source code Dependencies and project metadata App configuration settings None 6. What is the purpose of the "async" keyword in Dart? To define a function as a constructor To indicate that a function is asynchronous and may return a Future To declare a constant value To create an anonymous function None 7. In Flutter, how do you add padding around a widget? Using the padding property Using the margin property By wrapping it with the Padding widget By setting the widget's width and height None 8. Which Flutter widget is used to display a modal dialog box? ModalDialog AlertDialog PopupBox DialogBox None 9. Which package manager is commonly used in Flutter to manage dependencies? CocoaPods pub npm Gradle None 10. Which programming language is primarily used in Flutter? Python JavaScript Java Dart None 11. What is the purpose of the "Expanded" widget in Flutter's "Column" or "Row" layouts? To add padding to the widget To create a border around the widget To expand the widget to fill the available space To make the widget disappear None 12. What is the purpose of the "Scaffold" widget in Flutter? To define app permissions To build the app's main structure and layout To create a drawer To display notifications None 13. What is the main advantage of Flutter's "hot reload" feature? It heats up your device. It quickly applies code changes without restarting the app. It reloads the entire app. It compiles code faster. None 14. How do you pass data between screens in Flutter? Using the "Navigator" widget Using constructor parameters Using the "Intent" class Using the "SharedPreferences" package None 15. Which widget is used to create a scrollable list in Flutter? Stack Column ListView Row None 1 out of 15