Q.No |
Question |
Option A |
Option B |
Option C |
Option D |
Correct Answer |
1 |
HTML stands for: |
Hyper Text Markup Language |
Home Tool Markup Language |
High Text Markup Language |
None of these |
A |
2 | Who is the father of HTML? | Tim Berners-Lee | Brendan Eich | Dennis Ritchie | Rasmus Lerdorf | A |
3 | Which tag is used to create a hyperlink? | <a> | <hyperlink> | <link> | <url> | A |
4 | Which tag is used to insert an image in HTML? | <image> | <photo> | <img> | <pic> | C |
5 | What attribute specifies the destination of a link? | href | src | alt | link | A |
6 | What does <br> tag do in HTML? | Breaks the page | Bold text | Inserts line break | Changes paragraph | C |
7 | Which tag is used for the largest heading? | <h1> | <h6> | <heading> | <title> | A |
8 | Which attribute sets alternate text for images? | alt | title | src | longdesc | A |
9 | HTML is a: | Programming language | Scripting language | Markup language | System language | C |
10 | Which tag is used to define a table row? | <tr> | <td> | <th> | <row> | A |
11 | Which tag is used to define a table header? | <th> | <tt> | <thead> | <td> | A |
12 | Which tag adds a horizontal line in HTML? | <line> | <hr> | <hline> | <hl> | B |
13 | Which HTML tag is used to define an unordered list? | <ul> | <ol> | <list> | <li> | A |
14 | Which tag is used to define an item in a list? | <item> | <li> | <list> | <ol> | B |
15 | Which tag is used to define the document title? | <title> | <head> | <meta> | <heading> | A |
16 | What is the correct HTML element for inserting a line break? | <br> | <lb> | <break> | <hr> | A |
17 | What is the correct syntax to create a checkbox? | <input type="checkbox"> | <check> | <input type="check"> | <checkbox> | A |
18 | Which HTML element is used to specify a footer for a document? | <bottom> | <footer> | <foot> | <end> | B |
19 | HTML5 introduced which new semantic element? | <section> | <div> | <b> | <br> | A |
20 | Which tag defines an HTML form? | <form> | <input> | <textarea> | <fieldset> | A |
21 | Which HTML tag is used to embed a video? | <media> | <video> | <embed> | <movie> | B |
22 | Which attribute controls autoplay in video tag? | autoplay | play | auto | start | A |
23 | Which HTML element is used to play audio files? | <sound> | <audio> | <media> | <mp3> | B |
24 | Which tag defines a drop-down list? | <select> | <dropdown> | <option> | <list> | A |
25 | Which input type is used for email fields? | <input type="mail"> | <input type="email"> | <input type="text"> | <input email> | B |
26 | Which CSS property changes text color? | background-color | color | text-color | font-color | B |
27 | CSS stands for: | Central Style Sheet | Cascading Style Sheet | Coded Style Sheet | Cascading Sheet of Styles | B |
28 | How to add CSS to HTML? | Using <style> tag | Using inline style | External CSS file | All of these | D |
29 | Which property is used to change the background color? | color | background-color | bgcolor | backcolor | B |
30 | Which selector selects all <p> tags? | p | #p | .p | * | A |
31 | Which property sets the font size? | font-style | font-size | text-size | font | B |
32 | Which symbol is used to apply CSS to an ID? | . | # | $ | @ | B |
33 | Which symbol is used for class selector in CSS? | @ | . | # | & | B |
34 | Which property is used for bold text? | font | bold | font-weight | font-style | C |
35 | Which value of position property makes element fixed at top? | static | absolute | fixed | relative | C |
36 | Which unit is not relative in CSS? | px | % | em | rem | A |
37 | Which of the following is not a valid color value? | red | #FF0000 | rgb(255,0,0) | colour=red | D |
38 | Which CSS property controls spacing between letters? | letter-spacing | word-spacing | line-height | text-indent | A |
39 | Which property is used to underline text? | text-decoration | font-style | decoration | text-underline | A |
40 | Which tag is used to link external CSS file? | <link> | <style> | <script> | <css> | A |
41 | Which tag is used to define a JavaScript block? | <js> | <script> | <javascript> | <code> | B |
42 | JavaScript is a _______ side scripting language. | Client | Server | Both | None | A |
43 | Which symbol is used for comments in JavaScript? | # | <!-- | // | ** | C |
44 | How do you write “Hello World” in an alert box? | alert("Hello World"); | msg("Hello World"); | alertBox("Hello World"); | msgBox("Hello World"); | A |
45 | Which keyword declares a variable in JavaScript? | var | int | let | All of these | D |
46 | JavaScript file extension is: | .js | .jsx | .java | .jscript | A |
47 | Which event occurs when the user clicks on an HTML element? | onhover | onchange | onmouse | onclick | D |
48 | Which function is used to get an element by ID in JS? | document.getId() | getElementById() | document.getElementById() | getById() | C |
49 | Which operator is used to assign a value? | = | += | == | != | A |
50 | Which symbol is used to concatenate strings in JS? | + | & | . | # | A |
51 | W3.CSS is a framework for: | CSS | HTML | JS | PHP | A |
52 | W3.CSS is developed by: | W3Schools | Google | Mozilla | HTML5 | A |
53 | Which class adds shadow in W3.CSS? | w3-shadow | w3-card-4 | w3-dark | w3-box-shadow | A |
54 | Which class is used for centered content in W3.CSS? | w3-left | w3-right | w3-center | w3-align | C |
55 | Which class is used to make text bold in W3.CSS? | w3-bold | w3-text-bold | w3-strong | w3-bolder | B |
56 | Which W3.CSS class is used for a responsive image? | w3-image | w3-img-responsive | w3-responsive-img | w3-responsive | A |
57 | Which tag helps make a webpage responsive? | <meta name="viewport"> | <meta responsive> | <link responsive> | <meta page="scale"> | A |
58 | Which attribute is used to open a link in new tab? | target="_new" | target="_blank" | open="_blank" | link="newtab" | B |
59 | What is domain name? | Email address | Unique website name | IP address | URL path | B |
60 | Which one is a correct domain name? | google_com | google@com | google.com | google#com | C |
61 | Which protocol is used to transfer web pages? | HTTP | FTP | SMTP | IP | A |
62 | Which tag defines navigation links in HTML5? | <nav> | <menu> | <links> | <list> | A |
63 | Which tag is used to embed another HTML page inside current one? | <iframe> | <frame> | <window> | <embed> | A |
64 | Which meta tag defines page keywords for search engines? | <meta name="keywords"> | <meta keyword> | <meta content="SEO"> | <meta name="search"> | A |
65 | Which one is not a valid HTML5 element? | <article> | <aside> | <blink> | <footer> | C |
66 | SEO stands for: | Search Easy Optimization | Simple Engine Output | Search Engine Optimization | System Engine Option | C |
67 | What is the full form of URL? | Uniform Resource Locator | Universal Resource Link | Uniform Resource Link | Unique Redirect Link | A |
68 | Which part of the URL is the domain? | www.example.com | https:// | /index.html | ?query=abc | A |
69 | Which of the following is not a search engine? | Bing | Yahoo | Google | Chrome | D |
70 | Which HTML element is used for emphasis? | <em> | <italic> | <b> | <bold> | A |
71 | Which tag defines important text? | <mark> | <important> | <strong> | <imp> | C |
72 | What does the <canvas> tag do? | Draw graphics | Show video | Embed audio | Add scripts | A |
73 | Which tag is used to define a list of options? | <select> | <option> | <dropdown> | <list> | B |
74 | How to create a numbered list? | <ol> | <ul> | <list> | <nl> | A |
75 | Which property sets the height of an element in CSS? | height | line-height | size | block-height | A |
76 | Which CSS property controls visibility? | display | visibility | show | view | B |
77 | How to add a comment in HTML? | <!-- comment --> | ## comment | // comment | ** comment | A |
78 | Which tag is used to define client-side script? | <script> | <js> | <code> | <scripting> | A |
79 | What is the correct format for DOCTYPE declaration? | <!DOCTYPE html> | <DOCTYPE html> | !DOCTYPE HTML | #doctype | A |
80 | Which tag is used to group inline-elements? | <span> | <div> | <p> | <section> | A |
81 | Which tag is used to group block-level elements? | <div> | <span> | <block> | <group> | A |
82 | Which tag is used to define preformatted text? | <code> | <pre> | <text> | <format> | B |
83 | Which CSS property adds space inside an element? | margin | padding | border | width | B |
84 | Which CSS property adds space outside an element? | padding | margin | border-spacing | spacing | B |
85 | Which HTML tag is used to create a checkbox? | <input type="checkbox"> | <check> | <checkbox> | <input checkbox> | A |
86 | Which HTML tag defines a text input field? | <input type="text"> | <text> | <textarea> | <textbox> | A |
87 | Which input type hides the characters typed? | password | hidden | text | email | A |
88 | Which HTML5 element defines self-contained content? | <section> | <aside> | <article> | <nav> | C |
89 | Which attribute is used to define inline CSS? | style | class | id | css | A |
90 | Which attribute is used to link an external CSS file? | href | src | link | rel | A |
91 | Which HTML tag is used to create a radio button? | <input type="radio"> | <radio> | <input radio> | <button type="radio"> | A |
92 | Which HTML tag is used to add a comment? | <!-- comment --> | // comment | ## comment | /* comment */ | A |
93 | Which tag is used to define a line break? | <br> | <hr> | <break> | <lb> | A |
94 | Which HTML attribute defines the tooltip text? | alt | title | tooltip | info | B |
95 | Which attribute makes an input field mandatory? | required | readonly | checked | disabled | A |
96 | Which CSS property changes the mouse pointer? | pointer | cursor | hover | mouse | B |
97 | Which protocol is secure for websites? | http | https | ftp | ssl | B |
98 | Which element defines a table cell? | <td> | <tr> | <th> | <tc> | A |
99 | Which tag is used to define an unordered list? | <ul> | <ol> | <li> | <list> | A |
100 | Which HTML tag is used to define a caption for a table? | <caption> | <legend> | <title> | <tblcaption> | A |
No comments:
Post a Comment