CoderMantra

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

jscript-test-jan2025

0%
15

jscript-test-jan2025

1 / 29

1. The basic purpose of the toLocaleString() is to _________

2 / 29

2. What will be the output of the following JavaScript code?
var grade='A';
var result=0;
switch(grade)
{
case 'A':
result+=10;
case 'B':
result+=9;
case 'C':
result+=8;
default:
result+=0;
}
document.write(result);

3 / 29

3. A conditional expression is also called a _______________

4 / 29

4. A function definition expression can be called as __________

5 / 29

5. What is the command to run the node programs?

6 / 29

6. The method that can be used to create new properties and also to modify the attributes of existing properties is _________

7 / 29

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

8 / 29

8. What will be the role of the continue keyword in the following JavaScript code snippet?
while (a != 0)
{
if (a == 1)
continue;
else
a++;
}

9 / 29

9. What is the code to print hello one second from now?

10 / 29

10. The keyword or the property that you use to refer to an object through which they were invoked is _________

11 / 29

11. What will be the output of the following JavaScript code?
let size = 5;
let a = 5;
for (let j = size; j >= 0; j=a) {
document.write(a);
a = a - 2;
}

12 / 29

12. What will be the output of the following JavaScript code?
const object1 = {};
Object.defineProperties(object1,
{
property1:
{
value: 10
}
});
console.log(object1.property1);

13 / 29

13. Among the keywords below, which one is not a statement?

14 / 29

14. What is the command used for debugging output in Node?

15 / 29

15. Why does the Node rely on event handlers?

16 / 29

16. The method that performs the search-and-replace operation to strings for pattern matching is _______

17 / 29

17. Consider the following JavaScript statement containing regular expressions and check if the pattern matches?
var text = "testing: 1, 2, 3";
var pattern = /d+/g;

18 / 29

18. The unordered collection of properties, each of which has a name and a value is called _________

19 / 29

19. The snippet that has to be used to check if “a” is not equal to “null” is _________

20 / 29

20. What will be the output of the following JavaScript code?
var string2Num=parseInt("123xyz");

21 / 29

21. The behaviour of the instances present of a class inside a method is defined by __________

22 / 29

22. JavaScript is a _______________ language.

23 / 29

23. Among the following, which one is a ternary operator?

24 / 29

24. The object has three object attributes namely ________

25 / 29

25. The meaning for Augmenting classes is that ___________

26 / 29

26. What are the three important manipulations done in a for loop on a loop variable?

27 / 29

27. Will the following JavaScript code work?
var tensquared = (function(x) {return x*x;}(10));

28 / 29

28. What will be the output of the following JavaScript code?
var o = new F();
o.constructor === F

29 / 29

29. What is a block statement in JavaScript?

Your score is

LinkedIn Facebook VKontakte
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
  • Interview
  • Java Programming
  • Java Programs
  • Java-Assignments
  • node js questions
  • nodejs assignments
  • nodejs Projects
  • Practice Questions
  • Productivity
  • Pygame Tutorial
  • 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
Keep Player Inside the Screen in Pygame June 26, 2026
Move Image in Pygame – Beginner Tutorial June 26, 2026
Pygame Images Tutorial for Beginners June 25, 2026
Pygame Keyboard Input Tutorial for Beginners – Lesson 4 June 25, 2026
Contact Us

info@codermantra.com

admin@codermantra.com

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