Flutter Basics QuizBy Parvesh Sandila / October 2, 2023 Welcome to your Flutter Basics Quiz Name Email 1. Which Flutter widget is used to display a modal dialog box? ModalDialog DialogBox AlertDialog PopupBox None 2. What does "pubspec.yaml" file contain in a Flutter project? App configuration settings App's source code Project documentation Dependencies and project metadata None 3. Which widget is used for making HTTP requests in Flutter? HttpRequest HttpClient http HttpRequests None 4. In Flutter, what is the default layout orientation for the "Column" widget? Vertical Circular Diagonal Horizontal None 5. How can you add custom fonts to a Flutter app? By using the "Font" widget By modifying the AndroidManifest.xml file By placing font files in the "assets" directory and configuring "pubspec.yaml" By running the "flutter fonts" command None 6. Which widget is used to create a clickable button in Flutter? Text Button RaisedButton Container None 7. 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 set the widget's background color To specify the widget's name None 8. Which widget is used for routing and navigation in Flutter? RouteHandler PageView Navigator RouteNavigator None 9. Which Flutter command is used to create a new Flutter project? flutter project flutter new flutter start flutter create None 10. 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 11. What is a "StatelessWidget" in Flutter? A widget that uses external APIs A widget that can change its state A widget that can only be used once A widget that cannot change its state after creation None 12. How do you define a list of items in Flutter? Using the main() function With a for loop Using a ListView widget By creating a separate class 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 handle asynchronous operations and update the UI accordingly To build responsive layouts To build a UI for displaying future events To create animations None 15. What is the purpose of the "Expanded" widget in Flutter's "Column" or "Row" layouts? To create a border around the widget To add padding to the widget To make the widget disappear To expand the widget to fill the available space None 1 out of 15