0% found this document useful (0 votes)
9 views

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)
9 views

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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy