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/12Score 0

How do you declare a variable with an explicit type in Dart?

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

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka