0% found this document useful (0 votes)
13 views2 pages

HTML JavaScript MCQ BSC Practice Set 3

This document contains a set of multiple-choice questions (MCQs) related to HTML and JavaScript. It includes questions about HTML tags for tables and images, JavaScript methods for writing content, and syntax for changing HTML element content. Each question is followed by the correct answer indicated.

Uploaded by

rehansingh1239
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

HTML JavaScript MCQ BSC Practice Set 3

This document contains a set of multiple-choice questions (MCQs) related to HTML and JavaScript. It includes questions about HTML tags for tables and images, JavaScript methods for writing content, and syntax for changing HTML element content. Each question is followed by the correct answer indicated.

Uploaded by

rehansingh1239
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

HTML & JavaScript MCQ Practice - Set 3

11. Which tag is used to define a table in HTML?

A. <table>

B. <tbl>

C. <td>

D. <tab>

Answer: A

12. Which method is used to write content in the browser using JavaScript?

A. document.output()

B. document.write()

C. console.log()

D. window.write()

Answer: B

13. Which HTML tag is used to display a picture on a webpage?

A. <pic>

B. <src>

C. <image>

D. <img>

Answer: D

14. What will the following code output: console.log(typeof NaN);

A. number

B. NaN

C. undefined

D. object

Answer: A
15. Which of the following is the correct syntax to change the content of an HTML element with id

'demo'?

A. document.getElement('demo').innerHTML = 'Hello';

B. document.getElementByName('demo').innerHTML = 'Hello';

C. document.getElementById('demo').innerHTML = 'Hello';

D. document.querySelector('demo').text = 'Hello';

Answer: C

You might also like