Online Exam Quiz

questionQuestion  1 to 30

How do you create a switch in Flutter?

  • Using the Switch widget
  • Using the Toggle widget
  • Using the SwitchButton widget
  • Using the SwitchControl widget
Mark for review

How do you display a snackbar in Flutter?

  • Scaffold.of(context).showSnackbar
  • ScaffoldMessenger.of(context).showSnackbar
  • ScaffoldState.showSnackbar
  • Scaffold.showSnackbar
Mark for review

How do you create a grid layout in Flutter?

  • Using the GridView
  • Using the Column and Row
  • Using the Grid widget
  • Using the GridLayout
Mark for review

Which widget is used to create a simple text in Flutter?

  • TextField
  • Text
  • Label
  • TextBox
Mark for review

Mark for review

What does the Navigator.pop method do in Flutter?

  • Navigate to the previous screen
  • Close the app
  • Open a new screen
  • Refresh the current screen
Mark for review

What is the pubspec.yaml file used for in a Flutter project?

  • To define the app's dependencies
  • To define the app's routes
  • To define the app's state
  • To define the app's UI
Mark for review

What is the primary language used to write Flutter apps?

  • Dart
  • Kotlin
  • Swift
  • JavaScript
Mark for review

Who developed Flutter?

  • Microsoft
  • Google
  • Facebook
  • Apple
Mark for review

What is the purpose of the build() method in a StatefulWidget?

  • Initialize state
  • Define the widget's UI
  • Handle user interactions
  • Manage app lifecycle
Mark for review

How do you create an animation in Flutter?

  • Using the AnimationController
  • Using the AnimationBuilder
  • Using the AnimationWidget
  • Using the AnimationContainer
Mark for review

How do you handle gestures in Flutter?

  • Using the GestureDetector widget
  • Using the GestureHandler
  • Using the GestureListener
  • Using the GestureController
Mark for review

What does the Scaffold widget do?

  • Displays text
  • Creates a button
  • Implements basic material design layout structure
  • Provides app routing
Mark for review

Which widget is used to create an image in Flutter?

  • Picture
  • Image
  • Photo
  • Img
Mark for review

What is the purpose of the SafeArea widget in Flutter?

  • To add padding
  • To avoid system UI intrusions
  • To manage state
  • To handle user input
Mark for review

How do you make an HTTP request in Flutter?

  • Using the HttpClient
  • Using the http package
  • Using the Request package
  • Using the HttpRequest package
Mark for review

What is the purpose of the main.dart file in a Flutter project?

  • To define the app's UI
  • To define the app's entry point
  • To define the app's routes
  • To define the app's theme
Mark for review

What is the command to create a new Flutter project?

  • flutter create
  • flutter new
  • flutter init
  • flutter start
Mark for review

What is the use of the setState() method in a StatefulWidget?

  • Update the state
  • Initialize the state
  • Build the widget tree
  • Dispose of resources
Mark for review

Mark for review

What does the async keyword do in Dart?

  • Make a function run faster
  • Make a function run concurrently
  • Make a function run synchronously
  • Make a function run immediately
Mark for review

How do you navigate to a new screen in Flutter?

  • Navigator.push
  • Navigator.goTo
  • Navigator.moveTo
  • Navigator.open
Mark for review

What is Flutter?

  • A web development framework
  • A database management system
  • An open-source UI toolkit
  • A programming language
Mark for review

How do you listen to changes in a text field in Flutter?

  • Using the onChanged property
  • Using the onInput property
  • Using the onChange property
  • Using the onUpdate property
Mark for review

Which widget is used to create a progress indicator in Flutter?

  • ProgressIndicator
  • LinearProgress
  • CircularProgressIndicator
  • ProgressBar
Mark for review

How do you define a route in Flutter?

  • routes in main.dart
  • routes in pubspec.yaml
  • routes in config.json
  • routes in settings.dart
Mark for review

What is the purpose of the dispose() method in a StatefulWidget?

  • Initialize the state
  • Clean up resources
  • Update the state
  • Build the widget tree
Mark for review

How do you define a constant in Dart?

  • final keyword
  • const keyword
  • static keyword
  • var keyword
Mark for review

Mark for review

Which widget is used to create a slider in Flutter?

  • SliderWidget
  • Slide
  • Slider
  • SlideControl
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review