Loading...
QUIZ

Certification Test

 
Que No. 1 ) In Flutter, what is the purpose of the BuildContext parameter in a widget's build method?

A.) To access the device's context
B.) To define a class
C.) To rebuild the widget tree
D.) To declare a variable


Que No. 2 ) What is the Dart syntax for creating a function?

A.) function myFunction() { }
B.) def myFunction { }
C.) void myFunction() { }
D.) func myFunction { }


Que No. 3 ) In Flutter, what is a "stateless" widget?

A.) A widget that cannot be updated after creation
B.) A widget without a name
C.) A widget with no child widgets
D.) A widget without properties


Que No. 4 ) What is the primary purpose of the build() method in a Flutter widget?

A.) To create a widget
B.) To update the widget's properties
C.) To initialize variables
D.) To define a class


Que No. 5 ) Which widget is commonly used for creating scrollable lists in Flutter?

A.) Text
B.) Container
C.) ListView
D.) Row


Que No. 6 ) What is the Dart syntax for declaring a constant?

A.) let myConst = 10;
B.) final myConst = 10;
C.) constant myConst = 10;
D.) var myConst = const 10;


Que No. 7 ) In Flutter, what is the purpose of the Navigator widget?

A.) To create animations
B.) To manage navigation and route transitions
C.) To define a class
D.) To declare a variable


Que No. 8 ) Which data type represents a sequence of characters in Dart?

A.) int
B.) bool
C.) String
D.) double


Que No. 9 ) In Flutter, what is the purpose of the FlatButton widget?

A.) To create a button with rounded corners
B.) To create a button with a flat appearance
C.) To define a class
D.) To declare a variable


Que No. 10 ) What is the Flutter syntax for adding padding to a widget?

A.) padding: EdgeInsets(16)
B.) margin: EdgeInsets.all(16)
C.) padding: 16px
D.) padding: 16