1
1
1
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>
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
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
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
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
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- 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.
2.
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>
10.
11.
12.
13.
14.
Answer Key: A
16.
17.
B. id selector as #
18.
C. id selector as @
19.
D. id selector as $
20.
Answer Key: B
22.
23.
24.
25.
26.
Answer Key: A
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
34.
A. Navigator
35.
B. Microsoft
36.
C. LiveWire
37.
D. Native
38.
Answer Key: C
The following code would allow you to set background with CSS:
40.
<style type=text/css>
41.
42.
</style>
43.
True
44.
False
45.
47.
48.
B. para1.nodeValue=New Text;
49.
C. New Text?
50.
D. para1.value=New Text;
51.
Answer Key: D
53.
54.
55.
56.
57.
Answer Key: C
59.
60.
61.
62.
63.
Answer Key: D
64.
66.
67.
68.
69.
70.
Question 2 of 10 10.0 Points
71.
72.
A. <script>
73.
B. <style>
74.
76.
77.
78.
79.
80.
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.
Which of the following popup boxes would you use when you want a
value from the user before opening a page?
87.
88.
89.
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.
102.
B. para1.nodeValue=New Text;
103.
C. para1.value=New Text;
104.
Among the following options, select the command that you can use
107.
108.
C. <a href=\page.htm\?
phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e
0b88acea2d2a393515f6bf38f2 ></a>
109.
111.
112.
113.
114.
D. None
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
A. <div> </div>
122.
B. None
123.
C. <p>
124.
D. <span></span>
125.
127.
128.
129.
130.
Which of the following event fires when the form element loses the focus: <button>,
<input>, <label>, <select>, <textarea>?
A. onblur
1.What is the correct syntax of the declaration which defines the XML version?
Option: a. < ? xml version="1.0" ? >
2.What is the correct syntax for referring to an external script called "xxx.js"?
option: a. None
What is the correct HTML for referring to an external style sheet? option : a. <
stylesheet>mystyle.css
What can you use to replace like with hate in I like Eminem? Option : a.
preg_replace("/like/", "/hate/", "I like Eminem")
img=file
img src=file
src=image
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?
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" />
ans c
Among the following options, select the command that you can use to link a page with an
HTML page?
<a
href=\"page.htm\"?phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e0b88a
cea2d2a393515f6bf38f2 ></a>
ans- c
Ans- c
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?
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