Flutter Basics QuizBy Parvesh Sandila / October 2, 2023 Welcome to your Flutter Basics Quiz Name Email 1. How do you add a gradient background to a widget in Flutter? By using the "Background" widget By setting the "backgroundGradient" property By using the "Gradient" widget By wrapping the widget with the "DecoratedBox" widget None 2. Which command is used to run a Flutter app in debug mode? flutter start flutter build flutter deploy flutter run None 3. What is the primary function of the "Navigator" widget in Flutter? To navigate between different app screens To control animations To manage device settings To display advertisements None 4. Which programming language is primarily used in Flutter? JavaScript Java Python Dart None 5. How can you add custom fonts to a Flutter app? By running the "flutter fonts" command By using the "Font" widget By modifying the AndroidManifest.xml file By placing font files in the "assets" directory and configuring "pubspec.yaml" None 6. What is a "StatelessWidget" in Flutter? A widget that can change its state A widget that cannot change its state after creation A widget that uses external APIs A widget that can only be used once None 7. What is the purpose of the "setState" method in Flutter? To build the app's UI To handle user input To update the widget's state and trigger a rebuild To define the app's theme None 8. In Flutter, what is the purpose of the MaterialApp widget? It connects to a server. It provides access to device hardware. It displays the app's logo. It defines the app's structure. None 9. In Flutter, what is the default layout orientation for the "Column" widget? Horizontal Circular Vertical Diagonal None 10. What is Flutter? A bird species A social media platform A mobile app development framework A game development platform None 11. Which package manager is commonly used in Flutter to manage dependencies? npm CocoaPods pub Gradle None 12. What is the purpose of the "Expanded" widget in Flutter's "Column" or "Row" layouts? To make the widget disappear To create a border around the widget To expand the widget to fill the available space To add padding to the widget None 13. How do you define a list of items in Flutter? By creating a separate class With a for loop Using the main() function Using a ListView widget None 14. What is the purpose of the "async" keyword in Dart? To declare a constant value To define a function as a constructor To create an anonymous function To indicate that a function is asynchronous and may return a Future None 15. Which widget is used for routing and navigation in Flutter? RouteNavigator PageView RouteHandler Navigator None 1 out of 15