Sunteți pe pagina 1din 22

Which of the following sequences of HTML tags is correct?

A. <html><head><title></<title><body></body></head></html>
B. <html><title></<title><head></head><body></body></html>
C. <html><head></head><body><title></<title></body></html>
D. <html><head><title></<title></head><body></body></html>
Answer Key: D
Feedback: <html><head><title></<title></head><body></body></html>

Question 2 of 10 10.0 Points


What does CSS stand for?
A. Cascading Style Sheets
B. Common Style Sheets
C. Central Style Sheets
D. Control Style Sheets
Answer Key: A

Question 3 of 10 10.0 Points


How would you define id selector?
A. None of the above
B. id selector as #
C. id selector as @
D. id selector as $
Answer Key: B

Question 4 of 10 10.0 Points


In an HTML document, which is the correct place to refer to an external
style sheet?
A. In the <head> section
B. At the end of the document
C. At the beginning of the document
D. In the <body> section
Answer Key: A

Question 5 of 10 10.0 Points

Which of the following tags would you use to insert JavaScript in an HTML
page?
A. <script type=text/javascript></script>
B. <HTMLScript type=text/javascript></HTMLScript>
C. <JScript type=text/javascript></JScript>
D. <JavaScript type=text/javascript></JavaScript>
Answer Key: A

Question 6 of 10 10.0 Points


The JavaScript is also known as server-side JavaScript.
A. Navigator
B. Microsoft
C. LiveWire
D. Native
Answer Key: C

Question 7 of 10 10.0 Points


The following code would allow you to set background with CSS:
<style type=text/css>
body {background-color: yellow}
</style>
True
False
Answer Key: True

Question 8 of 10 10.0 Points


If para1 is the DOM object for a paragraph, what is the correct syntax to
change the text within the paragraph?
A. para1.firstChild.nodeValue= New Text;
B. para1.nodeValue=New Text;
C. New Text?
D. para1.value=New Text;
Answer Key: D

Question 9 of 10 10.0 Points


How does JavaScript store date in a date object?
A. None of the above
B. The number of seconds since Netscapes public stock offering.
C. The number of milliseconds since January 1st, 1970
D. The number of days since January 1st, 1900
Answer Key: C

Question 10 of 10 10.0 Points


How would you define First-line pseudo-element in CSS?
A. None of the above
B. selector:pseudo-elements {property: values}
C. select:pseudo-element {property: value}
D. selector:pseudo-element {property: value}
Answer Key: D

Question 1 of 10 10.0 Points


What does CSS define in HTML?
A. How to display HTML elements
B. How to send HTML elements
C. How to made HTML elements
D. How to save HTML elements Reset Selection

Question 2 of 10 10.0 Points


Which of the following HTML tags is used to define an internal style sheet?
A. <script>
B. <style>
C. <css> Reset Selection

Question 3 of 10 10.0 Points


What does CSS stand for?
A. Common Style Sheets
B. Central Style Sheets
C. Cascading Style Sheets
D. Control Style Sheets

Question 4 of 10 10.0 Points


Which of the following event fires when the form element loses the focus:
<button>, <input>, <label>, <select>, <textarea>?
A. onblur
B. ondblclick
C. onclick
D. onfocus Reset Selection

Question 5 of 10 10.0 Points


Which of the following popup boxes would you use when you want a value
from the user before opening a page?
A. alert(Write some text here)
B. prompt(Write here some text,Write default value here)
C. confirm(Write some text here) Reset Selection

Question 6 of 10 10.0 Points


Among the following optionsl, which is the correct syntax as per w3c
standard?
a.<br><p>Welcome to tcs</br></p>
b.<p>Welcome to tcs</p>
c.<br><p>Welcome to tcs</p></br>
d.<b><p>Welcome to tcs</p></b>
e.<b><p>Welcome to tcs</b></p>
A. a,e
B. c,e
C. b,d
D. a,c

If para1 is the DOM object for a paragraph, what is the correct syntax to
change the text within the paragraph?
A. para1.firstChild.nodeValue= New Text;
B. para1.nodeValue=New Text;
C. para1.value=New Text;
D. New Text? Reset Selection

Question 8 of 10 10.0 Points


Among the following options, select the command that you can use to link
a page with an HTML page?
A. <a attach=\page.htm\ ></a>
B. <a connect=\page.htm\ ></a>
C. <a href=\page.htm\?
phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d
4e0b88acea2d2a393515f6bf38f2 ></a>
D. <a link=\page.htm\ ></a>

Question 10 of 10 10.0 Points


Why would you use variables in JavaScript programs?
A. For Varying randomly
B. For storing numbers, dates, or other values
C. For causing high-school algebra flashbacks
D. None

Question 9 of 10 10.0 Points


Which of the following tags would you use to insert JavaScript in an HTML
page?
A. <script type=text/javascript></script>
B. <HTMLScript type=text/javascript></HTMLScript>
C. <JavaScript type=text/javascript></JavaScript>
D. <JScript type=text/javascript></JScript>
Q: You used CSS class into your html, but divided your page without break
line. Which of following would you have to use?
A. <div> </div>
B. None
C. <p>
D. <span></span>

In an HTML document, which is the correct place to refer to an external


style sheet?
A. In the <body> section

B. In the <head> section


C. At the end of the document
D. At the beginning of the document

Question 1 of 10 10.0 Points


How would you define First-line pseudo-element in CSS?
A. select:pseudo-element {property: value}
B. selector:pseudo-elements {property: values}
C. selector:pseudo-element {property: value}
D. None of the options

Question 4 of 10 10.0 Points


Among the following options, choose the correct syntax used for external
CSS?
A. <style type=text/css>
body {background-color: red}
</style>
B. None
C. <link rel=stylesheet type=text/css href=r4rcss.css>
Here r4rcc.css is in to same directory .
D. Both

1.What is the correct syntax of the declaration which defines the XML
version?
Option:
a. < ? xml version=1.0 ? >
b. < xml version=1.0 />
c. < xml version=1.0? />
d. None of the above
e. < ? xml version=1.0 ? />
Ans: a

2.What is the correct syntax for referring to an external script called


xxx.js?
option: a. None
b. < script type=text/javascript name=xxx.js >
c. < script type=text/javascript href=xxx.js >
d. < script type=text/javascript src=xxx.js >
ans: d

3. What is the correct HTML for referring to an external style sheet?


option : a. < stylesheet>mystyle.css
b. None of the above
c. < style src=mystyle.css />
d. < link =stylesheet type=text/css/script href=mystyle.css >
e. < link rel=stylesheet type=text/css href=mystyle.css />
Ans: e

4. What can you use to replace like with hate in I like Eminem?
Option : a. preg_replace(/like/, /hate/, I like Eminem)
b. preg_replace(hate, like, I like Eminem)
c. preg_replace(/like/, hate, I like Eminem)
d. None of the above
e. preg_replace(like, hate, I like Eminem)
ans: e

5. What are the genral syntax for inline image?


Option: a. None of the above
b. img=file
c. img src=file
d. src=image
e. image src=file
Ans: c

Q: How does JavaScript store date in a date object?


A. The number of seconds since Netscapes public stock offering.

B. None of the options


C. The number of milliseconds since January 1st, 1970
D. The number of days since January 1st, 1900
ans c

Q: What does CSS define in HTML?


A. How to send HTML elements
B. How to save HTML elements
C. How to made HTML elements
D. How to display HTML elements
ANS- D

Among the following options, select the command that you can use to link
a page with an HTML page?
A. <a link=\page.htm\ ></a>
B. <a connect=\page.htm\ ></a>
C. <a href=\page.htm\?
phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d
4e0b88acea2d2a393515f6bf38f2 ></a>
D. <a attach=\page.htm\ ></a>
ans- c

QSTN-How would you set a CSS comment?


ANS- /*, */,

QSTN-How would you define CSS padding?


ANS-p {padding: 2%; border: 1px solid black; }
h5{padding: 0px; border: 1px solid red;}

QSTN- Which of the following popup boxes would you use to get some
information from the user?
ANS-prompt
Only Answers, no ques
. td.test1 {padding: 2.0cm}
Case incensitive
B. <script type=text/javascript></script>
E. Is used to break a line.
D. <script src= abc.js>
B. How to display HTML elements
True
C. id selector as #
B. prompt(Write here some text,Write default value here)
:P

1.

Question 1 of 10 10.0 Points

2.

Which of the following sequences of HTML tags is correct?

3.

A.
<html><head><title></<title><body></body></head></html>

4.

B.
<html><title></<title><head></head><body></body></html>

5.

C.
<html><head></head><body><title></<title></body></html>

6.

D.
<html><head><title></<title></head><body></body></html>

7.
8.

Answer Key: D
Feedback:
<html><head><title></<title></head><body></body></html>

Question 2 of 10 10.0 Points


9.

What does CSS stand for?

10.

A. Cascading Style Sheets

11.

B. Common Style Sheets

12.

C. Central Style Sheets

13.

D. Control Style Sheets

14.

Answer Key: A

Question 3 of 10 10.0 Points


15.

How would you define id selector?

16.

A. None of the above

17.

B. id selector as #

18.

C. id selector as @

19.

D. id selector as $

20.

Answer Key: B

Question 4 of 10 10.0 Points


21.

In an HTML document, which is the correct place to refer to an


external style sheet?

22.

A. In the <head> section

23.

B. At the end of the document

24.

C. At the beginning of the document

25.

D. In the <body> section

26.

Answer Key: A

Question 5 of 10 10.0 Points


27.

Which of the following tags would you use to insert JavaScript in an


HTML page?

28.

A. <script type=text/javascript></script>

29.

B. <HTMLScript type=text/javascript></HTMLScript>

30.

C. <JScript type=text/javascript></JScript>

31.

D. <JavaScript type=text/javascript></JavaScript>

32.

Answer Key: A

Question 6 of 10 10.0 Points


33.

The JavaScript is also known as server-side JavaScript.

34.

A. Navigator

35.

B. Microsoft

36.

C. LiveWire

37.

D. Native

38.

Answer Key: C

Question 7 of 10 10.0 Points


39.

The following code would allow you to set background with CSS:

40.

<style type=text/css>

41.

body {background-color: yellow}

42.

</style>

43.

True

44.

False

45.

Answer Key: True

Question 8 of 10 10.0 Points


46.

If para1 is the DOM object for a paragraph, what is the correct


syntax to change the text within the paragraph?

47.

A. para1.firstChild.nodeValue= New Text;

48.

B. para1.nodeValue=New Text;

49.

C. New Text?

50.

D. para1.value=New Text;

51.

Answer Key: D

Question 9 of 10 10.0 Points


52.

How does JavaScript store date in a date object?

53.

A. None of the above

54.

B. The number of seconds since Netscapes public stock offering.

55.

C. The number of milliseconds since January 1st, 1970

56.

D. The number of days since January 1st, 1900

57.

Answer Key: C

Question 10 of 10 10.0 Points


58.

How would you define First-line pseudo-element in CSS?

59.

A. None of the above

60.

B. selector:pseudo-elements {property: values}

61.

C. select:pseudo-element {property: value}

62.

D. selector:pseudo-element {property: value}

63.

Answer Key: D

64.

Question 1 of 10 10.0 Points


65.

What does CSS define in HTML?

66.

A. How to display HTML elements

67.

B. How to send HTML elements

68.

C. How to made HTML elements

69.

D. How to save HTML elements Reset Selection

70.
Question 2 of 10 10.0 Points
71.

Which of the following HTML tags is used to define an internal style


sheet?

72.

A. <script>

73.

B. <style>

74.

C. <css> Reset Selection

Question 3 of 10 10.0 Points


75.

What does CSS stand for?

76.

A. Common Style Sheets

77.

B. Central Style Sheets

78.

C. Cascading Style Sheets

79.

D. Control Style Sheets

80.

Question 4 of 10 10.0 Points

81.

Which of the following event fires when the form element loses the
focus: <button>, <input>, <label>, <select>, <textarea>?

82.

A. onblur

83.

B. ondblclick

84.

C. onclick

85.

D. onfocus Reset Selection

Question 5 of 10 10.0 Points


86.

Which of the following popup boxes would you use when you want a
value from the user before opening a page?

87.

A. alert(Write some text here)

88.

B. prompt(Write here some text,Write default value here)

89.

C. confirm(Write some text here) Reset Selection

Question 6 of 10 10.0 Points


90.

Among the following optionsl, which is the correct syntax as per w3c
standard?

91.

a.<br><p>Welcome to tcs</br></p>

92.

b.<p>Welcome to tcs</p>

93.

c.<br><p>Welcome to tcs</p></br>

94.

d.<b><p>Welcome to tcs</p></b>

95.

e.<b><p>Welcome to tcs</b></p>

96.

A. a,e

97.

B. c,e

98.

C. b,d

99.

D. a,c

100.

If para1 is the DOM object for a paragraph, what is the correct

syntax to change the text within the paragraph?


101.

A. para1.firstChild.nodeValue= New Text;

102.

B. para1.nodeValue=New Text;

103.

C. para1.value=New Text;

104.

D. New Text? Reset Selection

Question 8 of 10 10.0 Points


105.

Among the following options, select the command that you can use

to link a page with an HTML page?


106.

A. <a attach=\page.htm\ ></a>

107.

B. <a connect=\page.htm\ ></a>

108.

C. <a href=\page.htm\?

phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e
0b88acea2d2a393515f6bf38f2 ></a>
109.

D. <a link=\page.htm\ ></a>

Question 10 of 10 10.0 Points


110.

Why would you use variables in JavaScript programs?

111.

A. For Varying randomly

112.

B. For storing numbers, dates, or other values

113.

C. For causing high-school algebra flashbacks

114.

D. None

Question 9 of 10 10.0 Points


115.

Which of the following tags would you use to insert JavaScript in an

HTML page?
116.

A. <script type=text/javascript></script>

117.

B. <HTMLScript type=text/javascript></HTMLScript>

118.

C. <JavaScript type=text/javascript></JavaScript>

119.

D. <JScript type=text/javascript></JScript>

120.

Q: You used CSS class into your html, but divided your page without

break line. Which of following would you have to use?


121.

A. <div> </div>

122.

B. None

123.

C. <p>

124.

D. <span></span>

125.

In an HTML document, which is the correct place to refer to an

external style sheet?


126.

A. In the <body> section

127.

B. In the <head> section

128.

C. At the end of the document

129.

D. At the beginning of the document

130.

default value here)

Which of the following event fires when the form element loses the focus: <button>,
<input>, <label>, <select>, <textarea>?
A. onblur

Web technology -Quiz1

1.What is the correct syntax of the declaration which defines the XML version?
Option: a. < ? xml version="1.0" ? >

< xml version="1.0" />

< xml version="1.0"? />

None of the above

< ? xml version="1.0" ? /> Ans: a

2.What is the correct syntax for referring to an external script called "xxx.js"?
option: a. None

< script type="text/javascript" name="xxx.js" >

< script type="text/javascript" href="xxx.js" >

< script type="text/javascript" src="xxx.js" > ans: d

What is the correct HTML for referring to an external style sheet? option : a. <
stylesheet>mystyle.css

b. None of the above

c. < style src="mystyle.css" />

d. < link ="stylesheet" type=text/css/script href="mystyle.css" > e. < link


rel="stylesheet" type="text/css" href="mystyle.css" /> Ans: e

What can you use to replace like with hate in I like Eminem? Option : a.
preg_replace("/like/", "/hate/", "I like Eminem")

b. preg_replace("hate", "like", "I like Eminem") c. preg_replace("/like/", "hate",


"I like Eminem") d. None of the above

e. preg_replace("like", "hate", "I like Eminem") ans: e

What are the genral syntax for inline image?

Option: a. None of the above

img=file

img src=file

src=image

image src=file Ans: c

What are the general syntax for inline image? Ans: img src=file

What is the correct syntax for referring to an external script called "xxx.js"?
Ans: <script type="text/javascript" src="xxx.js">

What is the correct syntax of the declaration which defines the XML version?

Ans: <? xml version="1.0" ?>

What can you use to replace like with hate in i like eminem? Ans: preg_replace("like", "hate", "i
like eminem")

What is the correct HTML for referring to an external style sheet? Ans: <link rel="stylesheet"
type=text/css" href="mystyle.css" />

How does JavaScript store date in a date object?

The number of seconds since Netscape's public stock offering.

None of the options

The number of milliseconds since January 1st, 1970

The number of days since January 1st, 1900

ans c

What does CSS define in HTML?

How to send HTML elements

How to save HTML elements

How to made HTML elements

How to display HTML elements ANS- D

Among the following options, select the command that you can use to link a page with an
HTML page?

A. <a link=\"page.htm\" ></a>

<a connect=\"page.htm\" ></a>

<a

href=\"page.htm\"?phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0b88a
cea2d2a393515f6bf38f2 ></a>

<a attach=\"page.htm\" ></a>

ans- c

QSTN-__ JavaScript is also called server-side JavaScript. A. Microsoft B. Navigator C. LiveWire D.


Native

Ans- c

QSTN- The <BR> Tag

ANS-Reset margins

QSTN-You used CSS class into your html, but divided your page without break line. Which of
following would you have to use?

Ans-The <div> tag

QSTN-How would you set a CSS comment?

ANS- "/*", "*/",

QSTN-How would you define CSS padding?' ANS-p {padding: 2%; border: 1px solid black; }
h5{padding: 0px; border: 1px solid red;}

QSTN- Which of the following popup boxes would you use to get some information from the user?
ANS-prompt

S-ar putea să vă placă și