Session6

Session6

University

20 Qs

quiz-placeholder

Similar activities

Qualifier Set B

Qualifier Set B

University

25 Qs

Quiz Master's 2.0

Quiz Master's 2.0

University

15 Qs

Programming Lab Quiz

Programming Lab Quiz

University

25 Qs

QUIZ

QUIZ

University

23 Qs

NEXUS'25

NEXUS'25

University

20 Qs

AVINYA 2K25

AVINYA 2K25

University

19 Qs

Python History & Evolution Quiz

Python History & Evolution Quiz

University

20 Qs

NASSCOM-QUIZ-DEVOPS

NASSCOM-QUIZ-DEVOPS

University

20 Qs

Session6

Session6

Assessment

Quiz

Engineering

University

Medium

Created by

Nada Asraf

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What will be the result of the following expression? (Select all that apply)

console.log(2 + "2" - 1 + true);

"221"

22

21

NaN

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet?
var x = 10;

function foo() { var x = 5; console.log(x); }

foo();

console.log(x);

10 , 10

10 , 5

5 , 10

5 , 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var name = "John";

function sayName() { console.log(name); var name = "Jane"; }

sayName();

John 

Jane

JohnJane

Undefined

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert a string "123" to a number in JavaScript?

parseInt("123") 

convertNumber("123") 

toNumber("123") 

number("123") 

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

1

15

10

[1,2,3,4,5]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

...(1)...Function-scoped and .

....(2)....Block-scoped

(1) let , (2) var

(1) var , (2) let

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which document property will return all the img elements?

document.links

document.doctype

document.images

document.documentMode

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?