Flutter MCQ Questions and Answers
Q. What programming language is Flutter primarily written in?
A. JavaB. Dart
C. Kotlin
D. Swift
Q. What is a Widget in Flutter?
A. A database connectionB. A network request
C. Everything in Flutter is a widget
D. A design pattern
Q. What is the primary difference between StatelessWidget and StatefulWidget?
A. PerformanceB. Ability to change state
C. Rendering speed
D. Memory usage
Q. What is the purpose of the build method in Flutter?
A. Database constructionB. Network configuration
C. Creating and returning widget trees
D. Managing app lifecycle
Q. What does setState() do in Flutter?
A. Reset the applicationB. Create a new state
C. Trigger a rebuild of the widget
D. Stop the application
Q. What is a Navigator in Flutter?
A. A database managerB. A widget for routing and navigation
C. A performance optimization tool
D. A state management solution
Q. What is the purpose of the pubspec.yaml file?
A. Define UI layoutB. Configure database connections
C. Manage project dependencies and metadata
D. Create network configurations
Q. What is a key in Flutter?
A. A cryptographic security elementB. A unique identifier for widgets
C. A database primary key
D. A navigation parameter
Q. What is hot reload in Flutter?
A. A performance optimizationB. A database refresh mechanism
C. Quickly update code without restarting the app
D. A security feature
Q. What does the async keyword indicate in Dart?
A. A synchronous functionB. A function that can run asynchronously
C. A database connection
D. A network protocol
Q. What is a stream in Flutter?
A. A video playback featureB. A continuous flow of asynchronous data
C. A network connection type
D. A user interface component