CoderMantra

Menu
  • Home
  • Tutorial
    • Core Java
    • Python Tutorial
    • Data Structures
    • C Programming
  • AI Tools
  • Career & Skills
  • Coding & Career
  • Quiz
  • Blog

javascript-july-quiz

0%
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

javascript-july-quiz

1 / 50

How to get a particular value using the tagged name?

3

2 / 50

Which method converts JSON to a JavaScript object?

3

3 / 50

What is the correct syntax for referring to an external script called "LFC.js"?

1

4 / 50

Which of the following is a valid variable name in JavaScript?

2

5 / 50

What will be the output of this code?
let age = 18;
if (age < 18) { console.log("Minor"); } else if (age === 18) { console.log("Just became adult"); } else { console.log("Adult"); }

2

6 / 50

Which of the following is not a valid JavaScript variable name?

1

7 / 50

If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

3

8 / 50

What if you use parseInt() to convert a string containing decimal value?

3

9 / 50

The _______ method of an Array object adds and/or removes elements from an array.

4

10 / 50

Syntax for creating a RegExp object:
1. var txt=new RegExp(pattern,attributes);
2. var txt=/pattern/attributes;
Which of the above mentioned syntax will correct?

3

11 / 50

Which company developed JavaScript?

1

12 / 50

Why so JavaScript and Java have similar name?

2

13 / 50

Find output of below Javascript addition code
document.write("1 plus 1 is " + 1 + 1);

3

14 / 50

What if we put ++ operator inside if condition? find the output

4

15 / 50

Find output of below Javascript addition code
document.write("1 plus 1 is " + 1 + 1);

3

16 / 50

The _______ method of an Array object adds and/or removes elements from an array.

4

17 / 50

Which of the following is block scoped?

4

18 / 50

What will be the output of: console.log(typeof NaN);

2

19 / 50

What is defination of an undefined value in JavaScript?

4

20 / 50

What will be the output of the following JavaScript code?
num1=5;
function cal() {
num1=10;
num2=5;
num3=num2*num1;
console.log(num3);
}
cal();

2

21 / 50

What will be the output if we compare "ten" and 10 with less then comparison operator( "ten" <10)?

2

22 / 50

What is defination of an undefined value in JavaScript?

4

23 / 50

What if we put ++ operator inside if condition? find the output

4

24 / 50

Why so JavaScript and Java have similar name?

2

25 / 50

Which of the following is an array method?

4

26 / 50

What will be the output if we compare "ten" and 10 with less then comparison operator( "ten" <10)?

2

27 / 50

Which of the following is block-scoped?

4`

28 / 50

How to get a particular value using the tagged name?

3

29 / 50

Syntax for creating a RegExp object:
1. var txt=new RegExp(pattern,attributes);
2. var txt=/pattern/attributes;
Which of the above mentioned syntax will correct?

3

30 / 50

What is the correct syntax for referring to an external script called "LFC.js"?

1

31 / 50

Which symbol is used for comments in Javascript?

3

32 / 50

Which of the following method checks if its argument is not a number?

1

33 / 50

Which of the following are the errors in JavaScript?

2

34 / 50

Which of the following is an array method?

4

35 / 50

Which of the following are the errors in JavaScript?

2

36 / 50

Which operator is known as the strict equality operator, which checks whether its two operators are identical or not?

3

37 / 50

Variable declared is example of ________________ Variable.
function message() {
var varname = "Rajiv";
alert(name);
}

1

38 / 50

What will be the output of the following JavaScript code?
num1=5;
function cal() {
num1=10;
num2=5;
num3=num2*num1;
console.log(num3);
}
cal();

2

39 / 50

Variable declared is example of ________________ Variable.
function message() {
var varname = "Rajiv";
alert(name);
}

1

40 / 50

Which of the following is not a valid JavaScript variable name?

1

41 / 50

. Which of the following is a primitive data type in JavaScript?

2

42 / 50

Which of the following method checks if its argument is not a number?

1

43 / 50

The pop() method of the array does which of the following task ?

1

44 / 50

Which of the following is block scoped?

4

45 / 50

What if you use parseInt() to convert a string containing decimal value?

3

46 / 50

What is the result of: [] + [] in JavaScript?

4

47 / 50

Which operator is known as the strict equality operator, which checks whether its two operators are identical or not?

3

48 / 50

If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

3

49 / 50

The pop() method of the array does which of the following task ?

1

50 / 50

Which of the following is not JavaScript Data Types?

4

Your score is

The average score is 2%

0%

By Wordpress Quiz plugin

Category

  • AI
  • AI Tools
  • Assignments
    • C Language Assignments
    • C++ Assignments
    • Java Assignments
    • Python Assignments
  • C Programming
  • c-plus-plus-Assignments
  • C++
  • Career & Skills
  • Coding & Career
  • Coding + AI
  • Core Java
  • Data Structure
  • Data Structure In C++
  • Data Structures
  • Freelancing & Career
  • How To
  • Java Programming
  • Java Programs
  • Java-Assignments
  • node js questions
  • nodejs assignments
  • nodejs Projects
  • Practice Questions
  • Productivity
  • Python Tutorial
  • Python-Assignments
  • Questions
  • Quiz
  • sql-functions
  • SQL-Tutorial
  • Tkinter Tutorial
  • Uncategorized
  • What Is
  • Why

Archives

  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • July 2025
  • April 2025
  • October 2024
  • September 2024
  • June 2024
  • April 2024
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • May 2022
  • November 2021
  • May 2021
  • March 2021
  • November 2020
  • October 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • September 2019
  • August 2019
  • May 2019
  • March 2019
  • February 2019
  • January 2019
About CoderMantra

Coder Mantra is a unique e-learning website, offers a tutorial of different popular programming languages with examples. The code on this popular tutorial website is tested and executed.

Latest Posts
25 Java Pattern Programs with Output for Beginners June 10, 2026
50 Java String Programs for Beginners with Examples and Solutions June 8, 2026
50 Java Array Programs for Practice with Solutions June 5, 2026
100 Java Programs for Beginners with Output (2026 Practice Guide) June 1, 2026
Contact Us

info@codermantra.com

admin@codermantra.com

© 2020 Coder Mantra . All Rights Reserved
About | Privacy Policy | Terms | Contact