Javascript Basics-2

Javascript Basics-2

Professional Development

15 Qs

quiz-placeholder

Similar activities

Morning Duty

Morning Duty

KG - Professional Development

10 Qs

Downstream Stock Outbound Assessment - Warehouse Users

Downstream Stock Outbound Assessment - Warehouse Users

Professional Development

10 Qs

Batch 2 Post Test 1 Analyzing Data Using Ms. Excel

Batch 2 Post Test 1 Analyzing Data Using Ms. Excel

Professional Development

20 Qs

Medication Order Shelf Life - Pre Test

Medication Order Shelf Life - Pre Test

Professional Development

10 Qs

BINTARO Thermal Insulation Coating

BINTARO Thermal Insulation Coating

Professional Development

10 Qs

Post Test MCU SCB

Post Test MCU SCB

Professional Development

10 Qs

EXCEL BASIC - 02

EXCEL BASIC - 02

Professional Development

10 Qs

GK_Marathon-02 Quiz

GK_Marathon-02 Quiz

10th Grade - Professional Development

15 Qs

Javascript Basics-2

Javascript Basics-2

Assessment

Quiz

Other

Professional Development

Practice Problem

Hard

Created by

SUNDARESAN K

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

<script type="text/javascript"> a = 5 + "9"; document.write(a); </script>

Compilation Error

14

Run Time Error

59

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


What will be the output for the following code snippet?

<p id="example"></p> <script> function Func() { document.getElementById("example").innerHTML=Math.sqrt(81); } </script>

9

81

Error

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

var a = 1; var b = 0; while (a <= 3) { a++; b += a * 2; print(b); }

4 10 18

1 2 3

1 4 7

4 10 16

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

var a = Math.max(); var b = Math.min(); print(a); print(b);

-Infinity Infinity

-Infinity -Infinity

Infinity -Infinity

Infinity Infinity

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

var a = Math.max() < Math.min(); var b = Math.max() > Math.min(); print(a); print(b);

true true

true false

false true

false false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

var a = true + true + true * 3; print(a)

3

0

Error

5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

var a = "hello"; var sum = 0; for(var i = 0; i < a.length; i++) { sum += (a[i] - 'a'); } print(sum);

47

NaN

0

None of these

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?