Search Header Logo

Literals, Variables & Comments Quiz

Authored by Vikas Mongia

Computers

Professional Development

Used 1+ times

Literals, Variables & Comments Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is valid identifier?

1var

var_1

var-1

var 1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which literal is in quotes?

String

Numeric

Boolean

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is boolean literal?

TRUE

False

0

Yes

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword means empty?

none

null

None

nil

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is type of 10.0?

int

float

complex

str

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is type of 10?

int

float

complex

bool

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which comment is correct?

# comment

// comment

/* comment */

-- comment

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?