
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
Kubernetes
Quiz
•
Professional Development
8 questions
Quiz Time! Internet of Things
Quiz
•
Professional Development
10 questions
Android Application
Quiz
•
Professional Development
10 questions
CSS, SCSS, Animation and Responsive
Quiz
•
Professional Development
10 questions
การใช้ Padlet รายงานผลงานของครู
Quiz
•
Professional Development
10 questions
Quiz Webinar Flutter 29-04-2021
Quiz
•
Professional Development
10 questions
Sesión 07 : Diccionarios
Quiz
•
Professional Development
10 questions
MATLAB Envinronment Intro
Quiz
•
Professional Development
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...