Question
<script type="text/javascript">
{
document.Write("<h1>This is a heading</h1>");
}
</script>
a.
"This is a heading" will be printed in H1 heading
b.
Just "This is a heading" will be printed because HTML tags are not allowed
c.
Will not print anything
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. Below Code contain one executive Statement. Guess the Output of the Code.
Similar Questions
Discover Related MCQs
Q. Group of JavaScript Statements is called as _________.
View solution
Q. Single Line Comment in JavaScript Starts with _________ Symbol.
View solution
Q. Which of the following is considered as End of Single line comment ?
View solution
Q. Comments in JS are ignored by ____________.
View solution
Q. Comment Statement is _________________ type of statement.
View solution
Q. JS Comment can be used for following purposes -
View solution
Q. Which of the statement will be neglected by Browser ?
View solution
Q. Person XYZ wrote his name and date of code creation at the start , What kind of comment he has written ?
View solution
Q. In multiple line comment , End of the comment is specified by ________ Symbol.
View solution
Q. Which of the following is not a compound assignment operator ?
View solution
Q. If a string cannot be converted to a number __________ will be returned.
View solution
Q. If the values on either side of '+' operator are numerical values then ___________.
View solution
Q. During addition of two numbers , suppose one of the number is NaN then output of the following code will be ?
View solution
Q. +Infinity in JS gets added with +Infinity then output of the code will be
View solution
Q. -Infinity in JS gets added with -Infinity then output of the code will be
View solution
Q. -Infinity in JS gets added with +Infinity then output of the code will be
View solution
Q. Variable can hold ________ value at a time.
View solution
Q. Integer Variable is declared using following syntax in JavaScript.
View solution
Q. We can declare ___________ at a time. Select most appropriate option.
View solution
Q. We can declare all type of variables in JavaScript with the keyword _____________.
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!