Flutter Basics QuizBy Parvesh Sandila / October 2, 2023 Welcome to your Flutter Basics Quiz Name Email 1. What is the purpose of the "FutureBuilder" widget in Flutter? To handle asynchronous operations and update the UI accordingly To build a UI for displaying future events To build responsive layouts To create animations None 2. What is the purpose of the "Scaffold" widget in Flutter? To display notifications To define app permissions To build the app's main structure and layout To create a drawer None 3. How do you define a list of items in Flutter? Using a ListView widget Using the main() function By creating a separate class With a for loop None 4. In Flutter, how do you add padding around a widget? By wrapping it with the Padding widget Using the margin property By setting the widget's width and height Using the padding property None 5. Which widget is used to create a bottom navigation bar in Flutter? BottomNavigationBar NavigationBar TabBar BottomBar None 6. In Flutter, what is the purpose of the MaterialApp widget? It defines the app's structure. It displays the app's logo. It connects to a server. It provides access to device hardware. None 7. What is the main advantage of Flutter's "hot reload" feature? It reloads the entire app. It quickly applies code changes without restarting the app. It compiles code faster. It heats up your device. None 8. How do you add a gradient background to a widget in Flutter? By using the "Background" widget By wrapping the widget with the "DecoratedBox" widget By setting the "backgroundGradient" property By using the "Gradient" widget None 9. What is the purpose of the "setState" method in Flutter? To define the app's theme To build the app's UI To handle user input To update the widget's state and trigger a rebuild None 10. Which widget is used for making HTTP requests in Flutter? HttpClient HttpRequest HttpRequests http None 11. How do you pass data between screens in Flutter? Using the "SharedPreferences" package Using constructor parameters Using the "Intent" class Using the "Navigator" widget None 12. What is a "StatelessWidget" in Flutter? A widget that cannot change its state after creation A widget that uses external APIs A widget that can change its state A widget that can only be used once None 13. Which widget is used to create a clickable button in Flutter? Text Container RaisedButton Button None 14. What is the purpose of the "Expanded" widget in Flutter's "Column" or "Row" layouts? To add padding to the widget To make the widget disappear To create a border around the widget To expand the widget to fill the available space None 15. What does "pubspec.yaml" file contain in a Flutter project? App configuration settings App's source code Dependencies and project metadata Project documentation None 1 out of 15