Quiz 2 6/8/2025

Quiz 2 6/8/2025

University

20 Qs

quiz-placeholder

Similar activities

SOME REVIEW ABOUT PHASE 1

SOME REVIEW ABOUT PHASE 1

University

22 Qs

UTS_

UTS_

University

25 Qs

Idioms Unveiled: Understanding Everyday Expressions

Idioms Unveiled: Understanding Everyday Expressions

4th Grade - University

15 Qs

Workshop Safety

Workshop Safety

University

20 Qs

C++ OOPs Concepts & Inheritance Quiz

C++ OOPs Concepts & Inheritance Quiz

University

20 Qs

Manufacturing Technology Quiz

Manufacturing Technology Quiz

11th Grade - University

20 Qs

Difusão e propriedades mecânicas

Difusão e propriedades mecânicas

University

20 Qs

Repaso teórico

Repaso teórico

University

15 Qs

Quiz 2 6/8/2025

Quiz 2 6/8/2025

Assessment

Quiz

Engineering

University

Hard

Created by

Veena Gs

Used 3+ times

FREE Resource

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

  1. Which of the following is TRUE about constructors in Dart?

  1. a) Constructor names must be different from class names

  1. b) Constructors return a string by default

  1. c) Dart does not support constructors

  1. d) Constructors are automatically called when an object is created

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?