PGDCA topic test

Web Technology MCQ Test

67 Web Technology multiple-choice questions with answers, from the PGDCA syllabus. Instant score, full answer review, free and no signup.

Advertisement

Each attempt picks 25 questions at random from the 67 in this topic.

40% off

Score 50% or more? Get a certificate at 40% off

Finish any PGDCA test on this site with a score of 50% or above and you can claim a course certificate from Alien Institute of Computer at a 40% discount. Your score appears on the result screen with a WhatsApp button that carries it across for you.

Ask about the certificate
Advertisement

All 67 Web Technology questions with answers

1. What does HTML stand for?

  • A. Hyper Text Markup Language
  • B. High Level Text Machine Language
  • C. Hyperlink Text Management Language
  • D. Home Tool Markup Language

Answer: Hyper Text Markup Language

2. Which tag is the root element of an HTML document?

  • A. <head>
  • B. <html>
  • C. <body>
  • D. <doc>

Answer: <html>

3. Which tag contains the visible page content?

  • A. <head>
  • B. <body>
  • C. <main>
  • D. <content>

Answer: <body>

4. Which tag defines the largest heading in HTML?

  • A. <h6>
  • B. <h1>
  • C. <head>
  • D. <big>

Answer: <h1>

5. Which tag creates a hyperlink?

  • A. <link>
  • B. <a>
  • C. <href>
  • D. <url>

Answer: <a>

6. Which attribute of the <a> tag specifies the destination URL?

  • A. src
  • B. href
  • C. link
  • D. target

Answer: href

7. Which tag inserts an image into a page?

  • A. <picture>
  • B. <img>
  • C. <image>
  • D. <src>

Answer: <img>

8. Which attribute provides alternative text for an image?

  • A. title
  • B. alt
  • C. desc
  • D. caption

Answer: alt

9. Which tag creates an unordered (bulleted) list?

  • A. <ol>
  • B. <ul>
  • C. <li>
  • D. <dl>

Answer: <ul>

10. Which tag creates a numbered list?

  • A. <ul>
  • B. <ol>
  • C. <nl>
  • D. <list>

Answer: <ol>

11. Which tag defines an item inside a list?

  • A. <item>
  • B. <li>
  • C. <dt>
  • D. <opt>

Answer: <li>

12. Which tag creates a table row?

  • A. <td>
  • B. <tr>
  • C. <th>
  • D. <table>

Answer: <tr>

13. Which tag defines a table header cell?

  • A. <td>
  • B. <th>
  • C. <thead>
  • D. <header>

Answer: <th>

14. Which tag creates a line break?

  • A. <break>
  • B. <br>
  • C. <lb>
  • D. <newline>

Answer: <br>

15. Which tag creates a horizontal rule?

  • A. <line>
  • B. <hr>
  • C. <rule>
  • D. <div>

Answer: <hr>

16. Which HTML tag is used to create a form?

  • A. <input>
  • B. <form>
  • C. <field>
  • D. <submit>

Answer: <form>

17. Which form attribute specifies where the data is sent?

  • A. method
  • B. action
  • C. target
  • D. url

Answer: action

18. Which HTTP method sends form data in the URL query string?

  • A. POST
  • B. GET
  • C. PUT
  • D. PATCH

Answer: GET

19. Which HTTP method is preferred for sending sensitive form data?

  • A. GET
  • B. POST
  • C. HEAD
  • D. OPTIONS

Answer: POST

20. Which input type creates a password field?

  • A. type="secret"
  • B. type="password"
  • C. type="hidden"
  • D. type="text"

Answer: type="password"

21. Which input type creates a set of options where only one can be chosen?

  • A. checkbox
  • B. radio
  • C. select
  • D. option

Answer: radio

22. Which input type allows multiple selections from a set?

  • A. radio
  • B. checkbox
  • C. button
  • D. range

Answer: checkbox

23. What does CSS stand for?

  • A. Computer Style Sheets
  • B. Cascading Style Sheets
  • C. Creative Styling System
  • D. Central Style Source

Answer: Cascading Style Sheets

24. What is CSS mainly used for?

  • A. Adding interactivity
  • B. Controlling the presentation and layout of HTML
  • C. Storing data
  • D. Handling server requests

Answer: Controlling the presentation and layout of HTML

25. Which CSS selector targets an element by its id?

  • A. .name
  • B. #name
  • C. name
  • D. *name

Answer: #name

26. Which CSS selector targets elements by class?

  • A. #name
  • B. .name
  • C. name
  • D. @name

Answer: .name

27. Which CSS property changes the text colour?

  • A. text-color
  • B. color
  • C. font-color
  • D. foreground

Answer: color

28. Which CSS property changes the background colour?

  • A. bgcolor
  • B. background-color
  • C. back-color
  • D. color-bg

Answer: background-color

29. Which CSS property sets the space inside an element's border?

  • A. margin
  • B. padding
  • C. spacing
  • D. border-space

Answer: padding

30. Which CSS property sets the space outside an element's border?

  • A. padding
  • B. margin
  • C. gap
  • D. offset

Answer: margin

31. Which CSS property controls the size of text?

  • A. text-size
  • B. font-size
  • C. size
  • D. font-height

Answer: font-size

32. Which CSS type has the highest priority in the cascade?

  • A. External stylesheet
  • B. Internal stylesheet
  • C. Inline style
  • D. Browser default

Answer: Inline style

33. Which tag links an external CSS file to an HTML document?

  • A. <style>
  • B. <link>
  • C. <css>
  • D. <script>

Answer: <link>

Advertisement

34. Which CSS display value places elements in a flexible row or column?

  • A. block
  • B. flex
  • C. inline
  • D. table

Answer: flex

35. Which CSS position value positions an element relative to the viewport?

  • A. relative
  • B. fixed
  • C. static
  • D. absolute

Answer: fixed

36. Which CSS feature applies different styles at different screen sizes?

  • A. Media queries
  • B. Pseudo-classes
  • C. Transitions
  • D. Selectors

Answer: Media queries

37. What is the CSS box model made up of?

  • A. Content, padding, border, margin
  • B. Header, body, footer
  • C. Width and height only
  • D. Rows and columns

Answer: Content, padding, border, margin

38. Which scripting language runs in the browser to add interactivity?

  • A. Java
  • B. JavaScript
  • C. PHP
  • D. Python

Answer: JavaScript

39. Which HTML tag embeds JavaScript in a page?

  • A. <js>
  • B. <script>
  • C. <code>
  • D. <java>

Answer: <script>

40. Is JavaScript the same language as Java?

  • A. Yes, they are identical
  • B. No, they are entirely different languages
  • C. Java is a subset of JavaScript
  • D. They differ only in syntax

Answer: No, they are entirely different languages

41. Which JavaScript keyword declares a block-scoped variable?

  • A. var
  • B. let
  • C. int
  • D. define

Answer: let

42. Which JavaScript keyword declares a value that cannot be reassigned?

  • A. let
  • B. const
  • C. final
  • D. static

Answer: const

43. Which JavaScript method writes a message to the browser console?

  • A. print()
  • B. console.log()
  • C. alert()
  • D. write()

Answer: console.log()

44. Which JavaScript method finds an element by its id?

  • A. getElement()
  • B. document.getElementById()
  • C. findById()
  • D. querySelectorId()

Answer: document.getElementById()

45. What does DOM stand for?

  • A. Document Object Model
  • B. Data Output Method
  • C. Dynamic Object Manager
  • D. Domain Object Map

Answer: Document Object Model

46. Which JavaScript operator checks value and type equality?

  • A. ==
  • B. ===
  • C. =
  • D. !=

Answer: ===

47. Which JavaScript function displays a pop-up message box?

  • A. message()
  • B. alert()
  • C. popup()
  • D. show()

Answer: alert()

48. What is an event in JavaScript?

  • A. A syntax error
  • B. An action such as a click that a script can respond to
  • C. A variable type
  • D. A loop

Answer: An action such as a click that a script can respond to

49. Which JavaScript data type holds true or false?

  • A. String
  • B. Boolean
  • C. Number
  • D. Object

Answer: Boolean

50. What does JSON stand for?

  • A. JavaScript Object Notation
  • B. Java Source Object Name
  • C. Joint Standard Object Network
  • D. JavaScript Online Node

Answer: JavaScript Object Notation

51. What does URL stand for?

  • A. Universal Reference Link
  • B. Uniform Resource Locator
  • C. Unified Routing Language
  • D. User Registered Location

Answer: Uniform Resource Locator

52. What does HTTP stand for?

  • A. Hyper Text Transfer Protocol
  • B. High Transfer Text Protocol
  • C. Hyperlink Transmission Text Process
  • D. Host Transfer Test Protocol

Answer: Hyper Text Transfer Protocol

53. What is the main difference between HTTP and HTTPS?

  • A. HTTPS is faster
  • B. HTTPS encrypts the connection with TLS
  • C. HTTP supports images
  • D. There is no difference

Answer: HTTPS encrypts the connection with TLS

54. Which HTTP status code means 'Not Found'?

  • A. 200
  • B. 301
  • C. 404
  • D. 500

Answer: 404

55. Which HTTP status code means the request succeeded?

  • A. 200
  • B. 302
  • C. 404
  • D. 503

Answer: 200

56. Which HTTP status code indicates a permanent redirect?

  • A. 200
  • B. 301
  • C. 404
  • D. 403

Answer: 301

57. Which HTTP status code indicates an internal server error?

  • A. 400
  • B. 403
  • C. 500
  • D. 404

Answer: 500

58. What is a web browser?

  • A. A server that hosts websites
  • B. Software that requests and displays web pages
  • C. A search engine
  • D. A database

Answer: Software that requests and displays web pages

59. What is a web server?

  • A. A program that stores and delivers web pages to clients
  • B. A web browser
  • C. A modem
  • D. A search engine

Answer: A program that stores and delivers web pages to clients

60. Which of these is a popular open-source web server?

  • A. Chrome
  • B. Apache
  • C. Photoshop
  • D. MySQL

Answer: Apache

61. Which language is commonly used for server-side scripting with MySQL?

  • A. CSS
  • B. PHP
  • C. HTML
  • D. XML

Answer: PHP

62. What is the purpose of a cookie in a web browser?

  • A. Speeding up the CPU
  • B. Storing small pieces of data about a user's session
  • C. Blocking ads
  • D. Compressing images

Answer: Storing small pieces of data about a user's session

63. What does XML stand for?

  • A. Extensible Markup Language
  • B. Extended Machine Language
  • C. External Media Link
  • D. Executable Markup Layer

Answer: Extensible Markup Language

64. What is the main difference between HTML and XML?

  • A. HTML displays data, XML describes and carries data
  • B. XML is older
  • C. HTML cannot use tags
  • D. They are identical

Answer: HTML displays data, XML describes and carries data

65. What is responsive web design?

  • A. A site that loads quickly
  • B. A design that adapts its layout to different screen sizes
  • C. A site with animations
  • D. A site that uses only images

Answer: A design that adapts its layout to different screen sizes

66. Which tag defines the title shown in the browser tab?

  • A. <head>
  • B. <title>
  • C. <header>
  • D. <h1>

Answer: <title>

67. Which meta tag is essential for mobile responsive pages?

  • A. charset
  • B. viewport
  • C. description
  • D. robots

Answer: viewport

Frequently asked questions

How many Web Technology questions are in this test?

This page has 67 Web Technology MCQs with answers. Each attempt picks 25 of them at random.

Is the Web Technology test free?

Yes — it is free, needs no signup, and you can retake it as many times as you like.

Can I get a certificate for this test?

Score 50% or more and you can claim a certificate from Alien Institute of Computer at 40% off. The WhatsApp button appears on your result screen.

Advertisement
Advertisement