wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

W4 session 1 knowledge check

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which widget is used to display text in a flutter app

a)
Label
b)
Button
c)
Image
d)
Text
2.

Which widget is used to display an image in a flutter app?

a)

Container

b)

Icon

c)

Row

d)
Image
3.

Which widget is used to group widgets, allowing them to be displayed horizontally?

a)

Row

b)

Column

c)
Stack
d)

Container

4.

Which widget is used to group widgets, allowing them to be displayed vertically?

a)

Container

b)

Row

c)

Column

d)

Text

5.

What widget is used to create a scrollable list of items in a Flutter app?

a)
Row
b)
Column
c)
ListView
d)
GridView
6.

What is the primary purpose of the runApp() function in a Flutter application?

a)
To manage state in a Flutter application.
b)
To create a new widget in Flutter.
c)
To initialize and run a Flutter application.
d)
To handle user input in a Flutter app.
7.

Which widget is typically used as the root widget of a Flutter application?

a)

BuildContext

b)

StatefulWidget

c)
MaterialApp
d)

StatelessWidget

8.

What does the BuildContext parameter represent in the build() method of a widget?

a)
The BuildContext is a method for rendering images in the widget.
b)
The BuildContext is used to define the size of a widget.
c)
The BuildContext holds the state of the widget only.
d)
The BuildContext represents the location of a widget in the widget tree and provides access to its parent and properties.
9.

In which scenario would you prefer using a StatefulWidget over a StatelessWidget?

a)

When you need to update the UI based on user interactions or data changes during runtime.

b)

When you need to display static content that does not change over time.

c)

When you want to improve performance by avoiding unnecessary rebuilds.

d)

When you want to create a simple layout without any dynamic behaviour.

10.

When using MaterialApp, which of the following is NOT a typical property you can set?

a)

title

b)

theme

c)

context

d)

home