Flutter Test 1

Quiz
•
Computers
•
University
•
Hard
Pradeep S
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary role of the Flutter Engine?
A) Handling HTTP requests
B) Rendering the UI using the Skia graphics library
C) Managing app state and navigation
D) Integrating with third-party libraries
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
During Flutter installation on Windows, which of the following commands is used to verify the installation and setup?
A) `flutter verify`
B) `flutter check`
C) `flutter analyze`
D) `flutter doctor`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When you create a new Flutter project, which directory contains the main entry point of the application?
A) `lib/`
B) `src/`
C) `assets/`
D) `test/'
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Dart, what is the correct way to declare a variable that can hold a null value?
A) `int number = null;
B) `int? number;
C) `nullable int number;
D) `optional int number;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Dart code snippets correctly implements a switch-case statement to print "Hello" when greeting is "hi"?
- A)
dart
switch (greeting) {
case "hi":
print("Hello");
break;
}
- B)
dart
switch (greeting) {
case "hi":
print("Hello");
break;
}
- C)
dart
switch (greeting) {
if ("hi"):
print("Hello");
break;
}
- D)
dart
switch (greeting) {
if (greeting == "hi"):
print("Hello");
break;
}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Dart code?
int count = 0;
for (int i = 0; i < 5; i++) {
count += i;
}
print(count);
- A) 5
- B) 10
- C) 15
- D) 20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you define a function in Dart that takes an optional named parameter age with a default value of 25?
- A)
dart
void printAge({int age: 25}) {
print(age);
}
- B)
dart
void printAge([int age = 25]) {
print(age);
}
- C)
dart
void printAge(int age = 25) {
print(age);
}
- D)
dart
void printAge({int age = 25}) {
print(age);
}
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Bahasa Pemrograman Python

Quiz
•
University
10 questions
Python debugging

Quiz
•
University
13 questions
Ciclos Python

Quiz
•
University
15 questions
Quiz 2 - Workshop Flutter 2024

Quiz
•
University
10 questions
Flutter Quiz

Quiz
•
University
10 questions
exception

Quiz
•
University
15 questions
Python Basics

Quiz
•
KG - University
13 questions
C programming-1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University