This test is designed to assess a student's knowledge of the basics of technology and the Dart programming language. It will cover topics such as data types, variables, functions, classes, and other fundamental concepts. The test will also include questions about the syntax and semantics of Dart code. The goal is to evaluate a student's understanding of the fundamentals of technology and Dart programming.
Example Question:
void fetchData() {
for (int i = 0; i < 1e8; ++i) {}
print('Data fetched');
}
void main() {
print('Fetching data...');
fetchData();
print('Done.');
}
Future<void> fetchData() async {
await Future.delayed(Duration(seconds: 2));
print('Data fetched');
}
void main() async {
print('Fetching data...');
await fetchData();
print('Done.');
}