
Flutter Prague #5
Authored by Honza Bittner
Computers
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
ISC2 - Chapter 1 - Module 5
Quiz
•
Professional Development
11 questions
5. Echo - Query And ORM
Quiz
•
Professional Development
10 questions
Table relationships, SQL and Pandas joins
Quiz
•
Professional Development
7 questions
Review Class 11
Quiz
•
Professional Development
8 questions
Windows Updates
Quiz
•
9th Grade - Professio...
10 questions
Python Basics
Quiz
•
Professional Development
10 questions
FP2: 02 - STRINGS
Quiz
•
Professional Development
11 questions
XBOX Modding
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...