
Flutter Prague #5

Quiz
•
Computers
•
Professional Development
•
Medium
Honza Bittner
Used 2+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following code do in Flutter?
Creates a container with a width of 100, a height of 200 and a blue color
Causes a compilation error
Creates an empty widget without any effect
Throws a runtime exception
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the difference between final x = ...; and late final x = ...; in Dart?
final requires immediate initialization, while late final allows initialization only on first use if the value is not assigned immediately
late final cannot be initialized on declaration
late final must be initialized explicitly by a function
late final allows you to change the value once, while final does not
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What happens when you call setState() within StatelessWidget?
Causes a runtime or compilation error because StatelessWidget does not have a setState method
Revives the widget because all widgets can have a state
It does nothing because StatelessWidget has no state
Forces Flutter to rebuild the widget tree
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code:
The code fails to compile
The code runs successfully
The code compiles, but it throws a runtime exception
Answer explanation
Feature: Statically checked declaration-site variance
https://github.com/dart-lang/language/issues/524
covariance: safe for reading (current Dart)
contravariance: safe for writing
invariance: safe for both reading and writing
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code, after calling foo() :
It prints "Caught an error: Exception: oopsie"
Throws a runtime exception
The code does not compile
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code, after calling foo() :
It prints "Caught an error: Exception: oopsie"
Throws a runtime exception
The code does not compile
Similar Resources on Wayground
5 questions
After Group Activity

Quiz
•
Professional Development
10 questions
QR Code

Quiz
•
Professional Development
9 questions
Quizz Analyse Stacktrace et debugging

Quiz
•
KG - Professional Dev...
8 questions
GO4! quiz zeriuz day 22

Quiz
•
Professional Development
10 questions
QR code

Quiz
•
Professional Development
11 questions
Error Codes 28-39 in Device Manager in Windows (resolutions)

Quiz
•
Professional Development
10 questions
Certification Course (Batch-01) | Quiz-03

Quiz
•
Professional Development
11 questions
Programación Java. Cadenas

Quiz
•
Professional Development
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