Super 15 batch quiz

Super 15 batch quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

Excel 2016 - The Comeback

Excel 2016 - The Comeback

Professional Development

10 Qs

Data Structure

Data Structure

Professional Development

13 Qs

Just Excel!

Just Excel!

Professional Development

10 Qs

Sorting2

Sorting2

Professional Development

13 Qs

PreTrainingScannerLoops

PreTrainingScannerLoops

Professional Development

10 Qs

Data Structure

Data Structure

Professional Development

13 Qs

Kuis Array

Kuis Array

Professional Development

10 Qs

PythonDS

PythonDS

Professional Development

13 Qs

Super 15 batch quiz

Super 15 batch quiz

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Gnaneshwar Reddy

Used 3+ times

FREE Resource

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)

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?