Search Header Logo

1st session

Authored by Menna Khaled

Computers

University

Used 5+ times

1st session
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Dart primarily used for?

Backend development

Mobile app development

Desktop applications

Game development

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid data type in Dart?

int

float

bool

string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a nullable variable in Dart?

int value;

int value!;

int? value;

nullable int value;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the ! operator in Dart?

To declare a nullable variable

To check if a value is null

To negate a boolean value

To force a nullable value to be treated as non-null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code output?
void main() {
var a = 5, b = 3;
print(a ~/ b);
}

1.6666

1

2

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?
void main() {

var x = 10;

print(x is String);

}

true

false

error

null

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add an item to a list in Dart?

addItem()

append()

add()

push()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers