
Dart Programming Flashcard
Flashcard
•
Computers
•
12th Grade
•
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.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Python Pygame
Flashcard
•
12th Grade
15 questions
F732 Flashcard
Flashcard
•
KG - University
19 questions
Electric Charges and Fields
Flashcard
•
12th Grade
17 questions
Philippine History
Flashcard
•
University
10 questions
R2.3 How Far? Le Chatelier's Principle
Flashcard
•
12th Grade
10 questions
Procedure Text
Flashcard
•
12th Grade
16 questions
G12- Selection and Decision Making- Flash cards
Flashcard
•
12th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade