
Dart Programming Flashcard
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which keyword is used to declare a compile-time constant in Dart? Options: var, final, const, dynamic
Back
const
Answer explanation
In Dart, the keyword 'const' is used to declare compile-time constants. Unlike 'final', which allows for runtime constants, 'const' ensures that the value is determined at compile time.
2.
FLASHCARD QUESTION
Front
A while loop in Dart runs as long as the condition is true.
Back
True
Answer explanation
True. In Dart, a while loop continues to execute as long as the specified condition evaluates to true. Once the condition becomes false, the loop terminates.
3.
FLASHCARD QUESTION
Front
The var keyword in Dart is used to declare a variable whose __________ is inferred automatically.
Back
data type
Answer explanation
The var keyword in Dart allows for variable declaration without explicitly stating the data type. The type is inferred automatically based on the assigned value, making it flexible and convenient for developers.
4.
FLASHCARD QUESTION
Front
What will this code print? Options: 5, 10, 25, 7
Back
10
Answer explanation
The code initializes x to 5, then multiplies it by 2 using the *= operator. This results in x being updated to 10. Therefore, the code will print 10.
5.
FLASHCARD QUESTION
Front
Which of the following data types is used to represent floating-point numbers? int, double
Back
double
Answer explanation
The 'double' data type is used to represent floating-point numbers, allowing for decimal values and greater precision than 'int', which is used for whole numbers. Therefore, 'double' is the correct choice.
6.
FLASHCARD QUESTION
Front
The final keyword allows you to assign a value only once, but the value can be set at runtime.
Back
True
7.
FLASHCARD QUESTION
Front
What is the output of this loop? Options: Count: 0, Count: 1, Count: 2, Count: 1, Count: 2, Count: 3, Count: 1, Count: 3, No output
Back
Count: 1, Count: 2, Count: 3
Answer explanation
The loop starts counting from 1 and increments until it reaches 3. Therefore, the output will be 'Count: 1, Count: 2, Count: 3', which matches the correct answer choice.
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
16 questions
Beowulf Vocabulary
Flashcard
•
11th - 12th Grade
15 questions
¡Flashcardz en español!
Flashcard
•
University
12 questions
Mare Paula
Flashcard
•
KG - University
10 questions
I Wandered Lonely As A Cloud By William Wordsworth
Flashcard
•
12th Grade
20 questions
Readings Philippine History
Flashcard
•
KG - University
11 questions
HISTORIA 3ERO AÑO
Flashcard
•
11th Grade - University
15 questions
Mitigasi Bencana
Flashcard
•
KG
18 questions
8A REGLEMENTATION UDPS-83 EXAMEN BLANC FLASH
Flashcard
•
KG
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