Search Header Logo

Super 15 batch quiz

Authored by Gnaneshwar Reddy

Professional Development

Professional Development

Used 3+ times

Super 15 batch quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write an if statement that executes some code if "i" is not equal to 5?

a) if (i != 5)

b) if i <> 5

c) if i =! 5

d) if (i <> 5)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to handle multiple conditions in an if statement?

a) if (i < 5 && i > 0)

b) if i < 5 and i > 0

c) if (i < 5) and (i > 0)

d) if (i < 5 & i > 0)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does a for loop start?

a) for (i = 0; i <= 5)

b) for (i <= 5; i++)

c) for i = 1 to 5

d) for (i = 0; i <= 5; i++)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a for...in loop?

a) Iterating over array elements

b) Iterating over object properties

c) Iterating over both arrays and objects

d) None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a for...of loop iterate over?

a) Object properties

b) Array-like objects, iterables, and strings

c) Numbers

d) None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct syntax for a for...in loop?

a) for (let i in array)

b) for (let i of array)

c) for let i in array

d) for (i in array)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an array in JavaScript?

a) var array = "1,2,3,4"

b) var array = 1,2,3,4

c) var array = [1,2,3,4]

d) var array = (1,2,3,4)

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