All quizzes
Free quiz · 25 questions in the bank

Dart quiz

Test your Dart knowledge with a free interactive quiz — 25 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is the purpose of the `final` keyword in Dart, and how does it differ from `const`?

Questions in this quiz
  1. What is the purpose of the `final` keyword in Dart, and how does it differ from `const`?
  2. What does the `async`/`await` syntax do in Dart, and what type does an `async` function typically return?
  3. What is a Dart "named parameter," and how is it declared in a function signature?
  4. What does the `??` (null-coalescing) operator do in Dart, e.g. `String name = userInput ?? "default";`?
  5. What is a Dart "enum," and what is it typically used for?
  6. How do you define a simple function in Dart that adds two integers and returns the result?
  7. What does Dart's null safety feature (`String?` vs. `String`) provide?
  8. What is Dart?
  9. What is a Dart "class," and how do you create a basic one with a constructor?
  10. What does the `Map<K, V>` type represent in Dart?
  11. What does the `Widget` class represent in the context of Dart/Flutter development?
  12. What does the try/catch construct look like in Dart for handling exceptions?
Gaps to close?
Read the curated Dart notes — core concepts, patterns, interview prep.
Dart notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web