ad

Wednesday, January 29, 2025

Top 25 HTML MCQ With Answers(part 4)

 Top 20 HTML  MCQ With Answers

Top 20 HTML  MCQ With Answers (part 4)


1] Which of the following is not a valid HTTP method?

a) GET
b)DELETE
c) FETCH
d)  POST 

Answer: c) FETCH

2] What is the primary purpose of a firewall?

a) To block unauthorized access
b) To increase browsing speed
c) To filter email spam
d) To optimize search results

Answer: a) a) To block unauthorized access

3]  What is "phishing"?

a) A method to steal personal information
b) A tool to browse the web
c) A way to protect sensitive data
d) A program for managing emails

Answer: a) A method to steal personal information

4] Which device connects a local network to the Internet?

a) Router
b) Firewall
c) Modem
d) Switch
  

Answer: a) Router

5] What is the purpose of the <frame> tag in HTML?

a) To create hyperlinks
b) To divide the browser window into multiple sections
c) To add images to a web page
d) To embed videos in a web page 

Answer: b)   To divide the browser window into multiple sections


6]  Which tag is used to define a frameset in HTML?

a) <frameset>
b) <border> 
c) <iframe>
d) <frame>

Answer: a) <frameset>

7] Can the <frame> tag be used in HTML5?

a)  Only with JavaScript
b) No, it is obsolete in HTML5
c) Only in specific browsers
d) Yes, it is fully supported

Answer: b) No, it is obsolete in HTML5


8]What is the correct attribute to specify the URL of a document in a <frame>?

a) src
b) target
c) link
d) 
href 

Answer: a)  src


9] Which element replaces <frame> in HTML5?

a) <section>
b) <div>  
c) <iframe>
d) <main>

Answer: c)  <iframe>


10] What does the <frameset> tag replace in an HTML document?

a) <html>
b) <head>
c) <body>
d) <footer>

Answer: c) <body>

11] How do you define the number of columns in a frameset?

a) Using the cols attribute 
b) Using the rows attribute
c) Using the columns attribute
d) Using the span attribute

Answer: a ) Using the cols attribute 

12] How do you specify the size of frames in a frameset?

a) Using percentages or pixel values in the rows and cols attributes
b) Using CSS only
c) Using the width and height attributes
d) Using the size attribute

Answer: a) Using percentages or pixel values in the rows and cols attributes


13] What is the purpose of the noresize attribute in the <frame> tag?

a) To prevent resizing of the frame by the user
b) To disable the frame
c) To hide the frame
d) To prevent content loading

Answer: a)  To prevent resizing of the frame by the user


14] What attribute is used to specify the spacing between frames in a frameset?

a)  margin
b) framespacing
c)frameborder 
d) border

Answer: b) framespacing


15] Which attribute is used to add a border to a frame?

a) frameborder
b) border
c) style
d) style

Answer: a) frameborder

16] Can <frame> tags be nested inside other <frame> tags?

a) Yes, they can be nested
b) No, nesting is not allowed
c) Only in specific browsers
d) Only with an <iframe> tag

Answer: a) Yes, they can be nested


17] What does the scrolling attribute in a <frame> do?

a) Enables or disables scrollbars in the frame
b) Adds vertical scrollbars only
c) Adds horizontal scrollbars only
d) Locks the frame content

Answer: a) Enables or disables scrollbars in the frame


18] How do you provide alternative content for browsers that do not support frames?

a) Use the <noframes> tag
b) Use the <iframe> tag  
c) Use the <alt> tag
d) Use the <fallback> tag

Answer: a)  Use the <noframes> tag

 19] Which of the following is a valid value for the scrolling attribute in a <frame>?

a) auto, yes, or no
b) on or off
c) enable or disable 
d) true or false

Answer: a)  autoyes, or no

20] Which attribute is used to give a frame a unique identifier?

a) name
b) id
c) title
d) target

Answer: a) name

21] What is the default value of the frameborder attribute?

a) 1
b) 0
c) true
d) auto

Answer: a


22] Which attribute is used to specify the name of a frame?

a) name
b) id
c) title
d) target

Answer: a

 23] What is the purpose of the <noframes> tag?

a) To provide alternative content for non-frame-supporting browsers
b) To create nested frames
c) To hide frames
d) To add scrollbars to frames

Answer: a


24] Which HTML version deprecated the <frame> tag?

a) HTML 4.0
b) HTML 5
c) XHTML 1.0
d) HTML 3.2

Answer: b

25] What does the target="_blank" attribute in a link do?

a) Opens the link in a new tab or window
b) Opens the link in the same frame
c) Redirects the user to a blank page
d) Prevents the link from opening

Answer: a

26] What happens if the cols and rows attributes are not specified in a <frameset>?

a) The browser displays a blank page
b) Frames take up equal space by default
c) Frames do not appear
d) Frames are automatically hidden

Answer: b

27) How do you make a frame load a default web page?

a) By using the src attribute
b) By using the href attribute
c) By using the load attribute
d) By using the default attribute

Answer: a) By using the src attribute

Tuesday, January 28, 2025

Top 20 HTML MCQ With Answers(part 3)

 

Top 20 HTML  MCQ With Answers



Top 20 HTML  MCQ With Answers


1] What does "WWW" stand for?

a) World Wide Web
b) World Wide Windows
c) Web Wide World
d) Web World Wide

Answer: a]  World Wide Web

2] Which protocol is used to retrieve emails?

a) POP3
b) SMTP
c) IMAP
d) a) and c)

Answer: d] a and c

3] Who is credited as the inventor of the World Wide Web?

a) Bill Gates
b) Tim Berners-Lee
c) Steve Jobs
d) Larry Page

Answer: b]  Tim Berners-Lee

4] What is the primary protocol used by the World Wide Web?

a) HTTP
b) FTP
c) SMTP
d) POP3

Answer: a]  HTTP

5] Which device connects a local network to the Internet?

a) Router
b) Switch
c) Modem
d) Firewall

Answer: a] Router

6] Which organization governs the development of web standards?

a) ISO
b) W3C
c) IEEE
d) ICANN

Answer: b) W3C

7] Which of the following is a valid domain extension?

a) .web
b) .com
c) .doc
d) .exe

Answer: b) .com

8] What does "DNS" stand for?

a) Domain Name System
b) Data Network System
c) Domain Network Service
d) Distributed Name Server

Answer: a) Domain Name System

9] What is the default port number for HTTP?

a) 20
b) 80
c) 31
d) 443

Answer: b) 80

10] What is a hyperlink?

a) A highlighted word or phrase that links to another web page
b) A search engine feature
c) A link to a local file
d) A command used to open a browser

Answer: a) 
a) A highlighted word or phrase that links to another web page


11] Which of the following is a search engine?

a) Bing
b) Edge
c)Firefox
d) Windows

Answer: a)  Bing

12] Which of the following is an IP address format?

a) 192.168.1.1
b) www.example.com
c) 257.257.256.257
d) http://192.168.1.17

Answer: a)  a) 192.168.1.1

13]  What is  IPv6 ?

a)  A type of URL
b) A protocol for file transfer
c)  web browser
d) The newest version of the Internet Protocol 

Answer: d] The newest version of the Internet Protocol 

14]  What does "VPN" stand for?

a) Virtual Private Network
b) Virtual Personal Node
c) Virtual Public Network
d)Verified Private Network
 

Answer: a] Virtual Private Network

15]  What is web hosting ?

a) Storing and serving websites
b)  Securing web traffic
c) Designing web pages
d) Managing search engines

Answer: a] Storing and serving websites

16]  What does SSL  stand for?

a) Secure Sockets Layer
b) Secure System Link
c) Secure Search Link
d) System Secure Layer

Answer: a) Secure Sockets Layer

17] What is  HTTP 404 ?

a) File not found
b) Connection timeout  
c) Server not responding
d) Server not responding

Answer: a) File not found

18]  What is a web server?

a) A device for connecting to the internet
b) A type of search engine
c) A protocol for transferring data
d) A program that hosts and serves web pages

Answer: d)  A program that hosts and serves web pages

19]  Which tool is used to analyze and debug a website?

a)Firewall
b) FTP Client
c)  Browser Developer Tools
d) Search Engine

Answer: c) Browser Developer Tools

20] What does "ICANN" stand for?

a) Internet Corporation for Assigned Names and Numbers
b) International Corporation for Accessing Network Names
c) Internet Company for Allocation of Network Names
d) International Committee for Assigned Names

Answer: a)  Internet Corporation for Assigned Names and Numbers


Related Post :-

features of javascript

css column gap property program

alphabet triangle pattern

Monday, January 27, 2025

Top 20 HTML MCQ With Answers(part 2)

 Top 20 HTML  MCQ With Answers



TOP  20 HTML MCQ with Answers


1)    which of the following is used to create web pages?


    a] c++
    b] php
    c] JVM
    d] HTML

 Answer :-  d] HTML

2)  HTML language is a set markup .....

 
   a] HTML 
   b] Tags 
   c] sets
   d] attributes

Answer :-  b] Tages

3) HTML is considered a .... language

  
 a] Markup language 
 b] programming  langauge 
 c] Markup language
 d] plain text

Answer :-   c] Markup language

4)  HTML  Document contain
 

 a] plain text
 b] tags
 c] Attributes
 d] all  of these

Answer :- d] all  of these

5) html tags are use to describe document
 

 a] definition 
 b] content 
 c] languaage 
 d] plain text

Answer :-  b] content 

6) page designed  in html is called .... 
 

  a]  web page 
  b] server page 
  c] front page 
  d]  blue page

Answer :-   a]  web page 

7)  write html code using ..... select appropriate option(S).


   a] microsoft power  point 
   b] notepad 
   c]  google 
   d] none of these
   
   Answer :- b] notepad 

8)  html document is saved   using ... extension 

  
  a]  html
  b]  .html
  c]  .php 
  d]  .xml 

 Answer :-  .html

9) Basic fundamental block is called ------ 

 
  a] html body 
  b] html tag
  c] html element 
  d] html attribute

Answer :- html tag 

10)  Which of the following is not  difference between HTML and XHTML?

    a] Charset in both html and xhtml is “text/html”
   b] Tags and attributes are case-insensitive in HTML but not in XHTML
   c] Special characters must be escaped using character entities in XHTML unlike HTML
   d] Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”

   Answer:  a]  Charset in both html and xhtml is “text/html”

  11)  What is DOM in HTML?

    a] Language dependent application programming
    b] Hierarchy of objects in ASP.NET
    c] Application programming interface
    d] Convention for representing and interacting with objects in html documents

       Answer: d]  Convention for representing and interacting with objects in html documents

   12) Which of the following tag is use for inserting the largest heading in HTML

     a] head
     b] <h1>
     c] <h6>
     d] heading
         

        Answer: b] <h1>

  13) which part of  HTML metadata is contained

  a] head tag
  b] title tag
  c] html tag
 d] body tag
 

 Answer: a] head tag

 14)  What is DOM in HTML

   a] Language dependent application programming
   b] Hierarchy of objects in ASP.NET
   c] Application programming interface
   d] Convention for representing and interacting with objects in html documents

      Answer: d] Convention for representing and interacting with objects in html documents

  18)  Which element is use to get highlighted text in HTML5

    a] <u>
    b] <mark>
    c] <highlight>

      Answer: b] <mark>

  19)  Which of the elements in HTML5 defines video or movie conten

     a) <video>
     b) <movie>
     c)<media>
     d)  <audio>

    Answer: a] <video>

  20) Which of the following is not a HTML5 tag?

     a] <track>
     b] <video>
     c] <slider>
    d] <source>
    

    Answer: c]  <slider>


Related Post :-

html head tag