
Quiz 2 6/8/2025
Authored by Veena Gs
Engineering
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following best describes a function in Dart?
a) A variable that stores a string
b) A loop used for iteration
c) A block of code that performs a specific task
d) A built-in data type in Dart
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In Dart, what are 10 and 20 called in the following function call?
add(10, 20);
a) Parameters
b) Arguments
c) Variables
d) Return values
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the syntax of an anonymous function in Dart?
a) function() => {}
b) function() => expression;
c ) () { /* code */ }
d) { function() }
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will happen if you pass positional parameters in the wrong order in Dart?
a) It may produce wrong results
b) It gives a syntax error
c) Dart automatically reorders them
d) The program crashes
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the purpose of the super keyword in Dart?
a) To initialize default values
b) To create a new instance of a class
c) To access properties and methods of a parent class
d) To define private methods
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What type of inheritance is NOT supported in Dart?
a) Multiple Inheritance
b) Multilevel Inheritance
c) Hierarchical Inheritance
d) Single Inheritance
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is TRUE about constructors in Dart?
Which of the following is TRUE about constructors in Dart?
a) Constructor names must be different from class names
b) Constructors return a string by default
c) Dart does not support constructors
d) Constructors are automatically called when an object is created
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?