Flutter Quizzes Flutter Beginner Quiz Dr AJ August 21, 2024 3 Flutter Beginner Quiz 1. What is Flutter? A) A backend framework B) A programming language C) A UI toolkit for building natively compiled applications D) A database management system 2. Which programming language is used to write Flutter apps? A) Python B) Dart C) JavaScript D) Swift 3. What is the command to create a new Flutter project? A) flutter create new B) flutter init project C) flutter create projectname D) flutter start new 4. Which widget is used for creating a button in Flutter? A) Button B) GestureDetector C) FlatButton D) Text 5. What is a StatefulWidget in Flutter? A) A widget that never changes B) A widget that can rebuild itself when the state changes C) A widget used only for styling D) A widget used for displaying text 6. Which of the following is true about the `build` method in Flutter? A) It is called only once when the widget is created. B) It is called every time the widget's state changes. C) It is called only when the widget is destroyed. D) It is never called explicitly by the developer. 7. Which widget is used to align a child widget within a container in Flutter? A) Align B) Center C) Padding D) Stack 8. How do you create a vertical scrollable list in Flutter? A) Using a Column widget B) Using a Row widget C) Using a ListView widget D) Using a GridView widget 9. What is the main function of the `MaterialApp` widget in Flutter? A) It provides basic UI components like buttons and text fields. B) It is used to display a grid layout. C) It manages routes and themes for the application. D) It is used to handle HTTP requests. 10. Which widget is used to display an image in Flutter? A) ImageView B) Picture C) Image D) ImageWidget 11. Which method is used to get the current state of a StatefulWidget in Flutter? A) setState() B) initState() C) currentState() D) build() 12. What is the purpose of the `pubspec.yaml` file in a Flutter project? A) It contains the project’s dependencies, assets, and metadata. B) It is used for styling the application. C) It contains the main code logic of the application. D) It manages the application’s database. 13. What does the `Navigator` widget do in Flutter? A) It handles navigation between different screens. B) It manages the app’s database. C) It is used for animation. D) It displays images. 14. Which widget is used to create a flexible layout in Flutter? A) Row B) Column C) Flex D) Expanded 15. Which function is called first when a StatefulWidget is created? A) build() B) initState() C) dispose() D) setState() 16. How do you handle user input in a Flutter form? A) Using TextEditingController B) Using GestureDetector C) Using a FocusNode D) Using a Button 17. Which command is used to create a new Flutter project? A) flutter create project_name B) flutter init project_name C) flutter start project_name D) flutter new project_name 18. What is the purpose of the `Expanded` widget in a Flutter layout? A) It forces a widget to occupy all the available space. B) It forces a widget to be aligned to the top. C) It shrinks the widget to its minimum size. D) It centers the widget on the screen. 19. Which widget is used to apply padding around a child widget? A) Container B) Padding C) Align D) Spacer 20. How do you define a key for a widget in Flutter? A) new Key("value") B) key: Key("value") C) key = "value" D) key: "value" 21. Which widget is used to create a grid layout in Flutter? A) ListView B) GridView C) Column D) Row 22. What does the `setState` method do in a StatefulWidget? A) It permanently changes the state of the widget. B) It rebuilds the widget with the updated state. C) It deletes the widget. D) It reinitializes the widget. 23. Which of the following is not a type of Flutter animation? A) Tween Animation B) Physics-based Animation C) Keyframe Animation D) Rigid-body Animation 24. What does the `flutter run` command do? A) It installs Flutter on your system. B) It creates a new Flutter project. C) It compiles and runs the Flutter application. D) It updates the Flutter SDK. 25. Which widget is commonly used to display a scrollable list of items in Flutter? A) ListView B) ScrollView C) GridView D) PageView 26. How do you create an infinite scrolling list in Flutter? A) Using a ListView with a custom scroll controller B) Using a ListView with a fixed item count C) Using a GridView with dynamic item count D) Using a Column with a large number of widgets 27. Which widget is used to create an overlay in Flutter? A) Overlay B) Stack C) Positioned D) CustomPaint 28. What is the use of the `flutter clean` command? A) It removes build cache and cleans up the project. B) It resets the Flutter SDK to default settings. C) It deletes the project's source code. D) It reinstalls the Flutter dependencies. 29. Which widget is used to create a clickable button in Flutter? A) GestureDetector B) InkWell C) ElevatedButton D) All of the above 30. Which method is used to stop an animation in Flutter? A) animation.stop() B) animation.cancel() C) animation.end() D) animation.pause() 31. Which widget is used to create a navigation drawer in Flutter? A) Drawer B) NavigationRail C) AppBar D) BottomNavigationBar 32. What is the purpose of the `ModalRoute.of` method in Flutter? A) To navigate to a new page. B) To retrieve the arguments passed to a route. C) To close the current route. D) To add a new route to the stack. 33. Which Flutter widget is used to display a progress indicator? A) CircularProgressIndicator B) LinearProgressIndicator C) RefreshIndicator D) All of the above 34. How do you change the color of the status bar in a Flutter app? A) Using the AppBar backgroundColor property B) Using the SystemChrome.setSystemUIOverlayStyle method C) Using the ThemeData brightness property D) Using the Scaffold backgroundColor property 35. Which widget is used to handle user gestures in Flutter? A) GestureDetector B) InkWell C) Listener D) All of the above 36. Which command is used to build a release APK in Flutter? A) flutter build apk --release B) flutter run --release C) flutter build appbundle --release D) flutter deploy apk --release 37. What is the use of the `AnimatedContainer` widget in Flutter? A) To create animations for state changes B) To apply transition effects to a widget C) To control the visibility of a widget D) To create animations for scrolling lists 38. Which Flutter widget is used to add a vertical divider between items? A) Divider B) VerticalDivider C) SizedBox D) Border 39. Which Flutter widget is used to add a horizontal divider between items? A) Divider B) HorizontalDivider C) SizedBox D) Border 40. How do you specify a circular shape for an image in Flutter? A) Using the `shape` property B) Using the `BoxDecoration` with `borderRadius` property C) Using the `CircleAvatar` widget D) Using the `ClipOval` widget 41. Which widget is used to create a scrollable list in Flutter? A) ListView B) SingleChildScrollView C) ScrollView D) PageView 42. How do you add a shadow to a container in Flutter? A) Using the `elevation` property B) Using the `BoxDecoration` with `boxShadow` property C) Using the `shadowColor` property D) Using the `Shadow` widget 43. What is the difference between `Future` and `Stream` in Dart? A) `Future` returns a single value, `Stream` returns multiple values over time. B) `Future` is used for synchronous code, `Stream` for asynchronous code. C) `Future` is for synchronous code, `Stream` is for parallel processing. D) `Future` is immutable, `Stream` is mutable. 44. How do you create a rounded button in Flutter? A) Using `RoundedRectangleBorder` in the `shape` property B) Using `BoxDecoration` with `borderRadius` C) Using the `borderRadius` property directly D) Using the `shape` property directly 45. Which widget is commonly used for creating a responsive layout in Flutter? A) MediaQuery B) LayoutBuilder C) Expanded D) Flexible 46. How can you detect when a user has reached the end of a list in Flutter? A) Using a ScrollController B) Using a Listener widget C) Using the ListView onEndReached callback D) Using the onScrollEnd method 47. Which widget is used to create a card in Flutter? A) Card B) Container C) Box D) Pane 48. How do you add padding inside a Flutter widget? A) Using the Padding widget B) Using the margin property C) Using the padding property D) Using the EdgeInsets widget 49. Which widget is used to make a widget scrollable in Flutter? A) SingleChildScrollView B) ScrollView C) ListView D) GridView Submit Continue Reading Previous: Flutter for BeginnersNext: Flutter Experts Quiz 3 thoughts on “Flutter Beginner Quiz” Good Reply thank you for your interest we will publish our basics to advance flutter course keep visiting our site. Reply Pingback: Flutter Experts Quiz - Coders ICU Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Related Stories Flutter Flutter Quizzes Flutter Tutorial for Beginners Card in Flutter Ahmar Afridi August 29, 2024 Flutter Flutter Quizzes Flutter Tutorial for Beginners Image in Flutter Ahmar Afridi August 29, 2024 Flutter Flutter Quizzes Flutter Tutorial for Beginners AppBar in Flutter Ahmar Afridi August 28, 2024
thank you for your interest we will publish our basics to advance flutter course keep visiting our site. Reply
Good
thank you for your interest we will publish our basics to advance flutter course keep visiting our site.