Flutter Basics QuizBy Parvesh Sandila / October 2, 2023 Welcome to your Flutter Basics Quiz Name Email 1. How do you define a list of items in Flutter? By creating a separate class With a for loop Using a ListView widget Using the main() function None 2. What is the purpose of the "setState" method in Flutter? To handle user input To build the app's UI To update the widget's state and trigger a rebuild To define the app's theme None 3. What is Flutter? A mobile app development framework A social media platform A bird species A game development platform None 4. What is the purpose of the "Key" parameter in Flutter widgets? To provide a unique identifier for widgets in the widget tree To specify the widget's name To define the widget's dimensions To set the widget's background color None 5. Which Flutter widget is used to display a modal dialog box? DialogBox AlertDialog ModalDialog PopupBox None 6. What is the purpose of the "FutureBuilder" widget in Flutter? To create animations To build responsive layouts To handle asynchronous operations and update the UI accordingly To build a UI for displaying future events None 7. What is the purpose of the "async" keyword in Dart? To define a function as a constructor To declare a constant value To indicate that a function is asynchronous and may return a Future To create an anonymous function None 8. What is a "StatelessWidget" in Flutter? A widget that can only be used once A widget that uses external APIs A widget that can change its state A widget that cannot change its state after creation None 9. Which programming language is primarily used in Flutter? Java Python Dart JavaScript None 10. What is the main advantage of Flutter's "hot reload" feature? It quickly applies code changes without restarting the app. It reloads the entire app. It compiles code faster. It heats up your device. None 11. Which widget is used to create a bottom navigation bar in Flutter? NavigationBar BottomBar TabBar BottomNavigationBar None 12. How do you pass data between screens in Flutter? Using the "Navigator" widget Using constructor parameters Using the "SharedPreferences" package Using the "Intent" class None 13. 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 14. Which widget is used to create a clickable button in Flutter? Button Container Text RaisedButton None 15. What is the purpose of the "CrossAxisAlignment" property in Flutter's "Row" widget? To control the alignment of rows in a table To control the font size of text in a row To control the color of text in a row To control the alignment of children in a row None 1 out of 15