wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSCC 106 Application Development Quiz 3

Total questions: 70

Worksheet time: 35mins

Name
Class
Date
1.

Flutter was developed by which company and released in what year?

a)

Microsoft, 2018

b)

Facebook, 2016

c)

Apple, 2015

d)

Google, 2017

2.

What programming language is primarily used to develop Flutter applications?

a)

Swift

b)

Java

c)

Kotlin

d)

Dart

3.

Which function serves as the entry point of a Flutter application?

a)

runApp()

b)

start()

c)

build()

d)

main()

4.

Flutter source code files commonly use which file extension?

a)

.dart

b)

.kt

c)

.java

d)

.flutter

5.

Which terminal command is used to add Flutter dependencies automatically?

a)

dart pub install

b)

flutter install

c)

flutter pub get

d)

flutter get

6.

What do you call functions that are defined inside a class?

a)

Widgets

b)

Packages

c)

Methods

d)

Variables

7.

Which keyword is used in Dart when the data type of a variable is uncertain?

a)

dynamic

b)

var

c)

final

d)

const

8.

Which statement correctly imports the Material library in Flutter?

a)

require material.dart;

b)

include material.dart;

c)

import 'package:flutter/material.dart';

d)

import 'flutter/material.dart';

9.

What symbol is used as a prefix to make a variable private in Dart?

a)

$

b)

@

c)

#

d)

_ (underscore)

10.

Which annotation is used to override a method from a parent class?

a)

@override

b)

@overrideMethod

c)

@extends

d)

@inherit

11.

An immutable class is best described as a class that:

a)

Has no constructor

b)

Cannot be modified after creation

c)

Can be changed at any time

d)

Contains no methods

12.

A mutable class is best described as a class that:

a)

Cannot be changed

b)

Extends StatelessWidget

c)

Has no properties

d)

Can be modified after creation

13.

Which keyword is used to extend a StatelessWidget or StatefulWidget?

a)

inherit

b)

extends

c)

implement

d)

with

14.

Which keyword is used to define a class in Dart?

a)

new

b)

define

c)

object

d)

class

15.

Which built-in method is responsible for building the widget tree?

a)

constructor()

b)

dispose()

c)

build()

d)

initState()

16.

A widget containing the word “Button” usually requires which property to function?

a)

text

b)

color

c)

child

d)

onPressed

17.

Which of the following are common named parameters used in widget constructors?

a)

var, final

b)

child, children, onPressed

c)

main, build

d)

static, dynamic

18.

In Flutter programming, everything is considered a:

a)

Object

b)

Function

c)

Widget

d)

Class

19.

If a widget property starts with the prefix “on,” the value should be a:

a)

Function (callback)

b)

String

c)

Boolean

d)

Widget

20.

A Flutter widget must always have a matching pair of:

a)

Quotes

b)

Brackets

c)

Semicolons

d)

Parentheses

21.

A widget property must always be followed by which symbol?

a)

.

b)

;

c)

=

d)

:

22.

Which widget is designed for the vertical alignment of child widgets?

a)

Column

b)

Row

c)

Stack

d)

Expanded

23.

Which widget is designed for the horizontal alignment of child widgets?

a)

Wrap

b)

Row

c)

Column

d)

ListView

24.

What is the official online repository for Flutter and Dart packages?

a)

Stack Overflow

b)

Firebase

c)

pub.dev

d)

GitHub

25.

Which file is used to configure Flutter project dependencies manually?

a)

config.yaml

b)

pubspec.yaml

c)

main.dart

d)

build.gradle

26.

Which framework is a cross-platform UI toolkit developed by Google?

a)

Ionic

b)

Flutter

c)

React Native

d)

Xamarin

27.

A parameter list in Dart is enclosed by which symbols?

a)

[ ]

b)

{ }

c)

( )

28.

Which terminal command cleans a Flutter project?

a)

flutter reset

b)

flutter clean

c)

flutter remove

d)

flutter clear

29.

Which command runs a Flutter app in the Chrome browser?

a)

flutter run web

b)

flutter build chrome

c)

flutter chrome

d)

flutter run -d chrome

30.

Which terminal command downloads all required Flutter dependencies?

a)

flutter pub get

b)

dart pub clean

c)

flutter fetch

d)

flutter install

31.

Which command is used to add the sqflite dependency?

a)

flutter pub add sqflite

b)

dart pub add sqflite

c)

flutter install sqflite

d)

flutter add sqflite

32.

Which syntax correctly navigates to the Dashboard screen?

a)

Navigator.go(Dashboard);

b)

Navigator.push(Dashboard());

c)

Navigator.push(context, MaterialPageRoute(builder: (_) => Dashboard()));

d)

Navigator.route(Dashboard);

33.

In Dart, every statement must end with which symbol?

a)

;

b)

:

c)

.

d)

,

34.

Given the list below, which statement prints “Doe”? var data = [ {'id': 1, 'name': 'John'}, {'id': 2, 'name': 'Jane'}, {'id': 13, 'name': 'Doe'} ];

a)

print(data[2]['name']);

b)

print(data.name);

c)

print(data['Doe']);

d)

print(data.name[2]);

35.

Which syntax correctly sets the font weight of a Text widget to bold?

a)

Text("Hi", bold: true)

b)

Text.bold("Hi")

c)

Text("Hi", style: TextStyle(fontWeight: FontWeight.bold))

d)

Text("Hi", style: FontWeight.bold)

36.

What is the proper naming convention for variables in Dart?

a)

PascalCase

b)

camelCase

c)

snake_case

d)

kebab-case

37.

What is the proper naming convention for class names in Dart?

a)

snake_case

b)

PascalCase

c)

kebab-case

d)

camelCase

38.

Which syntax is used to access a method outside its class?

a)

method.ClassName()

b)

ClassName->method()

c)

method(ClassName)

d)

ClassName.method()

39.

When retrieving a specific record from an SQLite table, which clause is used?

a)

UPDATE

b)

SELECT

c)

WHERE

d)

INSERT

40.

What is the root widget of a Material Design Flutter app?

a)

Container

b)

MaterialApp

c)

Scaffold

d)

Column

41.

Which property connects one screen to another in Flutter navigation?

a)

body

b)

child

c)

home

d)

Navigator

42.

Which widget is commonly used to fix a RenderFlex overflow error?

a)

SingleChildScrollView

b)

Center

c)

Container

d)

Padding

43.

If a widget property is plural, widgets must be separated by what and wrapped in what?

a)

Semicolon, parentheses

b)

Colon, brackets

c)

Comma, square brackets [ ]

d)

Period, braces

44.

If a method returns a Widget, which keyword must be used?

a)

return

b)

void

c)

yield

d)

dynamic

45.

Which properties are REQUIRED for an ElevatedButton widget?

a)

color and text

b)

onPressed and child

c)

padding and margin

d)

style and icon

46.

Which widget allows swipe-from-edge navigation?

a)

TabBar

b)

AppBar

c)

Drawer

d)

BottomNavigationBar

47.

Which widget appears at the top of the screen and displays the app title?

a)

AppBar

b)

Header

c)

Container

d)

Toolbar

48.

Which property holds the main UI content inside a Scaffold?

a)

Child

b)

body

c)

children

d)

content

49.

Which is the correct SQLite database name for a student database?

a)

studentDatabase

b)

student.sqlite

c)

studentDB

d)

students.db

50.

Which is the proper Flutter project naming convention for a POS system?

a)

pos system

b)

pos_system

c)

PosSystem

d)

POS-System

51.

Which method is used to create a new instance of a StatefulWidget?

a)

build()

b)

setState()

c)

initState()

d)

createState()

52.

What is the purpose of the 'pubspec.yaml' file in a Flutter project?

a)

To define the app's UI

b)

To manage project dependencies

c)

To store user preferences

d)

To configure the database

53.

Which widget is used to display a list of items in a scrollable view?

a)

Row

b)

Column

c)

ListView

d)

Stack

54.

Which of the following is a valid way to declare a constant variable in Dart?

a)

let x = 10;

b)

var x = 10;

c)

const int x = 10;

d)

final int x = 10;

55.

What is the purpose of the 'main()' function in a Dart application?

a)

To handle user input

b)

To create UI components

c)

To initialize the database

d)

To define the entry point of the application

56.

Which widget is used to create a horizontal layout in Flutter?

a)

ListView

b)

Stack

c)

Row

d)

Column

57.

What is the primary function of the 'build()' method in a Flutter widget?

a)

To initialize the widget

b)

To render the widget's UI

c)

To dispose of the widget

d)

To create the widget's state

58.

Which widget is used to create a vertical layout in Flutter?

a)

Column

b)

Row

c)

Stack

d)

GridView

59.

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

a)

To create a new instance of the widget

b)

To rebuild the widget with new data

c)

To initialize the widget's state

d)

To dispose of the widget

60.

Which widget is used to create a vertical layout in Flutter?

a)

Stack

b)

Column

c)

Row

d)

ListView

61.

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

a)

To initialize the widget's state

b)

To clean up resources when the widget is removed

c)

To create a new instance of the widget

d)

To rebuild the widget with new data

62.

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

a)

AssetImage

b)

ImageView

c)

Image

d)

Picture

63.

Which method is used to navigate to a new screen in Flutter?

a)

push()

b)

navigate()

c)

moveTo()

d)

goTo()

64.

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

a)

To dispose of resources

b)

To update the widget's state

c)

To build the widget tree

d)

To initialize the widget's state

65.

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

a)

Stack

b)

ScrollView

c)

ListView

d)

GridView

66.

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

a)

To initialize the widget's state

b)

To create the widget's layout

c)

To update the widget's state

d)

To dispose of resources

67.

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

a)

ListView

b)

Stack

c)

GridView

d)

Column

68.

What is the purpose of the 'Future' class in Dart?

a)

To create a new widget

b)

To handle asynchronous operations

c)

To define a constant value

d)

To manage state in a StatefulWidget

69.

What is the role of the 'initState()' method in a StatefulWidget?

a)

To initialize the widget's state

b)

To build the widget's UI

c)

To dispose of resources

d)

To update the widget's state

70.

Which widget is used to create a vertical layout of child widgets?

a)

Stack

b)

Column

c)

Row

d)

ListView