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 9 of 11

Q81.
Guess output of the following code.
<!DOCTYPE html>
<html>
    <body>
        <script>
            var num1 = 1;
            var num2 = 1;
            var num3 = "1" + num1 + num2;
            document.write(num1 + "<br>");
            document.write(num2 + "<br>");
            document.write(num3 + "<br>");
        </script>
    </body>
</html>
Discuss
Answer: (c).1 1 111
Q82.
In the following code, value of Z is
<html>
    <body>
        <script>
            var x = 12.45;
            var y = 1;
            var z = '8' + x + y;
            document.write(z + "<br>");
        </script>
    </body>
</html>
Discuss
Answer: (c).812.451
Q83.
Variable declared without a value will have the value ______________.
Discuss
Answer: (b).undefined
Q84.
When you assign a text value to a variable, we put text value in the pair of _________.
Discuss
Answer: (d).Both a and b
Q85.
Non Initialized Variable have value "undefine", What value be printed in following case -
var carname="Volvo";
var carname;
Discuss
Answer: (c).Volvo
Q86.
What will be the value of Variable - "num3" ?
var num1;
var num2 = 10;
var num3 = num1 + num2;
Discuss
Answer: (c).undefine
Q87.
What will be the output of the following code ?
<html>
    
    <body>
        <script>
            var x = 5;
            var y = 6;
            document.write((x + y) + "<br>");
        </script>
    </body>

</html>
Discuss
Answer: (d).11
Discuss
Answer: (a).Inside the function in which it is declared
Q89.
Local Variables are Destroyed as soon as ______________.
Discuss
Answer: (c).control comes outside the method
Q90.
What will be the output of the following ?
<script type="text/javascript">
    var name;
    name = "Pritesh";
</script>
<script type="text/javascript">
    document.write(name);
</script>
Discuss
Answer: (b).Pritesh

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!