adplus-dvertising

Welcome to the Javascript MCQs Page

Dive deep into the fascinating world of Javascript with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Javascript, a crucial aspect of Web Technologies. In this section, you will encounter a diverse range of MCQs that cover various aspects of Javascript, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Web Technologies.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Javascript. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Web Technologies.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Javascript. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Javascript MCQs | Page 7 of 11

Q61.
If the values on either side of '+' operator are numerical values then ___________.
Discuss
Answer: (b).values are added together
Q62.
What will be printed ?
<html>
    
    <head>
        <title>A Simple Page</title>
        <script language="JavaScript">
            <!--
            var A = "Compile ",
                B = "Error";
            C = A + B;
            alert(C);
            //  -->
        </script>
    </head>
    
    <body></body>

</html>
Discuss
Answer: (a)."Compile Error" will be printed
Q63.
What will be the value of Variable 'output' ?
var str = "Str";
var num = 10;

var output = str + num;
Discuss
Answer: (b).Str10
Q64.
During addition of two numbers , suppose one of the number is NaN then output of the following code will be ?
Discuss
Answer: (a).NaN
Q65.
+Infinity in JS gets added with +Infinity then output of the code will be
Discuss
Answer: (b).+Infinity
Q66.
-Infinity in JS gets added with -Infinity then output of the code will be
Discuss
Answer: (c).-Infinity
Q67.
-Infinity in JS gets added with +Infinity then output of the code will be
Discuss
Answer: (a).NaN
Q68.
Variable can hold ________ value at a time.
Discuss
Answer: (c).Single
Q69.
Integer Variable is declared using following syntax in JavaScript.
Discuss
Answer: (b).var num;
Q70.
We can declare ___________ at a time. Select most appropriate option.
Discuss
Answer: (b).One or more Variables

Suggested Topics

Are you eager to expand your knowledge beyond Web Technologies? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!