Search Header Logo

Dart Programming Quiz

Authored by Mina Romany

Professional Development

Professional Development

Used 1+ times

Dart Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

100 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does print('Hello Dart'); do?

Compiles the program only

Prints Hello Dart to stdout

Saves text to a file

Throws an exception

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a boolean literal in Dart?

'true'

True

true

1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of an uninitialized top-level variable in Dart?

0

""

null

false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(3.14);?

3.14

'3.14'

314

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword allows any type at runtime in Dart?

var

dynamic

Object

const

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is num in Dart?

A supertype of int and double

A subtype of double only

Used only for decimals

Not a Dart type

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? var s = 'dart'; print('Hi $s');

dart

Hi dart

Hi s

Error

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 Professional Development