An ordered set of instructions. It reads input, follows rules, and produces output.
Workspace
Dart
Flutter apps cross platform UI and client logic
Definition first
What Dart means
Dart is a programming language for writing exact instructions, often used for Flutter apps cross platform UI and client logic. Start with one mental model: input goes through steps and becomes output.
main.dartRun dart run main.dartHabit Keep widgets small and test plain Dart logic separatelyA value is data. A variable is the name you use to hold and reuse that data.
A named piece of work. It takes input, does one job, and can return a result.
Dart SDK is the place that actually runs code from main.dart.
First readable code
Program output
entry point output syntax printprint(42);
Output 42Language lineage
Dart family tree
See where Dart comes from, which languages feel close, and what to learn next.
Flutter apps, client state, and cross platform UI
Zero base path
Question bank
Search before practice
Pick a stage or search across the open programming bank. Jump straight to the matching drill.
Dart practice 1
Dart question 1. Choose the statement that matches printing a value.
Dart practice 2
Dart question 2. Choose the statement that matches naming a value.
Dart practice 3
Dart question 3. Choose the statement that matches reusable function.
Dart practice 4
Dart question 4. Choose the statement that matches basic collection.
Dart practice 5
Dart question 5. Choose the statement that matches printing a value.
Dart practice 6
Dart question 6. Choose the statement that matches naming a value.
Dart practice 7
Dart question 7. Choose the statement that matches reusable function.
Dart practice 8
Dart question 8. Choose the statement that matches basic collection.
Dart practice 9
Dart question 9. Choose the statement that matches printing a value.
Dart practice 10
Dart question 10. Choose the statement that matches naming a value.
Dart practice 11
Dart question 11. Choose the statement that matches reusable function.
Dart practice 12
Dart question 12. Choose the statement that matches basic collection.
Dart practice 13
Dart question 13. Choose the statement that matches printing a value.
Dart practice 14
Dart question 14. Choose the statement that matches naming a value.
Dart practice 15
Dart question 15. Choose the statement that matches reusable function.
Dart practice 16
Dart question 16. Choose the statement that matches basic collection.
Dart practice 17
Dart question 17. Choose the statement that matches printing a value.
Dart practice 18
Dart question 18. Choose the statement that matches naming a value.
Multiple choice
Dart practice 1
Dart question 1. Choose the statement that matches printing a value.
print(42);
Reference
Patterns for main.dart
dart run main.dartentry point output syntax print
Program output
print(42);
- Run the smallest file first
- Print one known value
- Check the output before adding more code
variables assignment types final
Values and names
final total = 42; print(total);
- Give values readable names
- Keep one idea per line while learning
- Trace the value before changing it
function collection List
Functions and collections
int add(int a, int b) {
return a + b;
}
final scores = <int>[40, 2];
print(scores.length);- Keep functions small
- Return useful values
- Use the common collection before reaching for frameworks