Quiz 2 6/8/2025

Quiz 2 6/8/2025

University

20 Qs

quiz-placeholder

Similar activities

Pneumatik Hidrolik

Pneumatik Hidrolik

University

25 Qs

Human Factors in Medical Devices

Human Factors in Medical Devices

University

18 Qs

Dive in SQL

Dive in SQL

University

20 Qs

Pre-Test Praktikum PLC 2024

Pre-Test Praktikum PLC 2024

University

25 Qs

Combinational Logic Circuits

Combinational Logic Circuits

University

20 Qs

quiz3_07/08/2025

quiz3_07/08/2025

University

20 Qs

Basic Level Assessment React Native

Basic Level Assessment React Native

University

20 Qs

UAS PEMODELAN TI E

UAS PEMODELAN TI E

University

20 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?