web technology
web technology
11. What is the correct syntax for referring to an external CSS file?
a) <stylesheet> style.css </stylesheet>
b) <style src="style.css">
c) <link rel="stylesheet" type="text/css" href="style.css">
d) <css> style.css </css>
Answer: c) <link rel="stylesheet" type="text/css" href="style.css">
3. JavaScript
5. Web Security
30. Which of the following is the correct file extension for an HTML file?
a) .htm
b) .html
c) Both a and b
d) .web
Answer: c) Both a and b
35. Which of the following is the correct file extension for an HTML file?
a) .htm
b) .html
c) Both a and b
d) .web
Answer: c) Both a and b
40. Which of the following is the correct file extension for an HTML file?
a) .htm
b) .html
c) Both a and b
d) .web
Answer: c) Both a and b
48. How can you make a list not display bullet points?
a) list-style-type: none;
b) text-decoration: none;
c) display: none;
d) remove-bullets: true;
Answer: a) list-style-type: none;
55. Which protocol is used for secure communication over the web?
a) HTTP
b) HTTPS
c) FTP
d) SMTP
Answer: b) HTTPS
60. Which protocol is used for secure communication over the web?
a) HTTP
b) HTTPS
c) FTP
d) SMTP
Answer: b) HTTPS
72. What is the default file extension for an HTML document? a) .doc
b) .html
c) .css
d) .js
Answer: b) .html
76. The <title> tag must be placed inside which HTML element? a) <head>
b) <body>
c) <footer>
d) <title>
Answer: a) <head>
79. What is the correct syntax for referring to an external CSS file? a) <stylesheet> style.css
</stylesheet>
b) <style src="style.css">
c) <link rel="stylesheet" type="text/css" href="style.css">
d) <css> style.css </css>
Answer: c) <link rel="stylesheet" type="text/css" href="style.css">
80. Which property is used to change the font color of text? a) font-color
b) text-color
c) color
d) font-style
Answer: c) color
84. What is the correct syntax for a JavaScript alert box? a) alert("Hello!");
b) msg("Hello!");
c) alertBox("Hello!");
d) message("Hello!");
Answer: a) alert("Hello!");
85. What is the correct way to write a JavaScript array? a) var colors = "red", "green", "blue";
b) var colors = ["red", "green", "blue"];
c) var colors = (1:"red", 2:"green", 3:"blue");
d) var colors = "red"; "green"; "blue";
Answer: b) var colors = ["red", "green", "blue"];
88. Which of the following is not a valid JavaScript data type? a) Number
b) Boolean
c) String
d) Character
Answer: d) Character