Question
<!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>
a.
1 1 3
b.
1 1 12
c.
1 1 111
d.
None of these
Posted under Web Technologies
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Guess output of the following code.
Similar Questions
Discover Related MCQs
Q. Variable declared without a value will have the value ______________.
View solution
Q. When you assign a text value to a variable, we put text value in the pair of _________.
View solution
Q. Non Initialized Variable have value "undefine", What value be printed in following case -
var carname="Volvo";
var carname;
View solution
Q. What will be the value of Variable - "num3" ?
var num1;
var num2 = 10;
var num3 = num1 + num2;
View solution
Q. Variables declared inside function are visible _______________.
View solution
Q. Local Variables are Destroyed as soon as ______________.
View solution
Q. Assignment Operators is following type of operator ______________.
View solution
Q. "Add and Assignment" operator is shown by this symbol.
View solution
Q. "===" operator is _______________.
View solution
Q. "+=" operator can operate on following data values.
View solution
Q. Which of the following is not an logical operator ?
View solution
Q. Which of the following operator is used to concatenate two strings.
View solution
Q. What type of value gets printed if we add following two variables ?
var a = "1";
var b = 5;
View solution
Q. "++" is __________ type of operator.
View solution
Q. "++" can operate only on ________________.
View solution
Q. Integer Variable + Character Variable + Undefined Variable = ______________ Value
View solution
Q. Which of the following is not a comparison operator ?
View solution
Q. Adding String and Integer always results in _________.
View solution
Q. JavaScript contains a _________________ that assigns a value to a variable based on some condition.
View solution
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!