Priciples of Programming QP
Priciples of Programming QP
Priciples of Programming QP
PRINCIPLES OF PROGRAMMING
I (45*1=45)
2. Which of the following element is responsible for making the text bold in HTML?
a. <pre>
b. <a>
c. <b>
d. <br>
3. Which of the following tag is used for inserting the largest heading in HTML?
a. <h3>
b. <h1>
c. <h5>
d. <h6>
a. <br>
b. <a>
c. <pre>
d. <b>
5. How to create an unordered list (a list with the list items in bullets) in HTML?
a. <ul>
b. <ol>
c. <li>
d. <i>
a. \
b. !
c. /
d. .
8. Which of the following element is responsible for making the text italic in HTML?
a. <i>
b. <italic>
c. <it>
d. <pre>
11. Which of the following tag is used to make the underlined text?
a. <i>
b. <ul>
c. <u>
d. <pre>
13. Which of the following tag is used to define options in a drop-down selection list?
a. <select>
b. <list>
c. <dropdown>
d. <option>
a. # and #
b. { and }
c. ! and ?
d. < and >
a. new line
b. vertical ruler
c. new paragraph
d. horizontal ruler
16. Which of the following HTML tag is used to display the text with scrolling effect?
a. <marquee>
b. <scroll>
c. <div>
d. None of the above
17. Which of the following is the container for <tr>, <th>, and <td> ?
a. <data>
b. <table>
c. <group>
d. All of the above
a. Using ## and #
b. Using <!-- and -->
c. Using </-- and -/->
d. Using <! -- and -!>
20. Which HTML tag is used to display the power in expression, i.e., (x2 - y2)?
a. <sup>
b. <sub>
c. <p>
d. None of the above
22. The property in CSS used to change the background color of an element is -
a. bgcolor
b. color
c. background-color
d. All of the above
a. text-style
b. text-size
c. font-size
d. None of the above
a. style
b. styles
c. class
d. None of the above
25. Which of the following CSS property is used to set the background image of an
element?
a. background-attachment
b. background-image
c. background-color
d. None of the above
26. Which of the following property is used as the shorthand property for the padding
properties?
a. padding-left
b. padding-right
c. paddingAll of the above
27. Which of the following CSS property is used to add shadows to the text?
a. text-shadow
b. text-stroke
c. text-overflow
d.text-decoration
a. Inline CSS
b. Internal CSS
c. External CSS
d. None of the above
29. The CSS property used to set the indentation of the first line in a block of text is -
a. text-indent property
b. text-stroke property
c. text-decoration property
d. text-overflow property
30. The CSS property used to set the indentation of the first line in a block of text is -
a. text-indent property
b. text-stroke property
c. text-decoration property
d. text-overflow property
31. Which CSS property is used to change the color of the text?
a. Color
b. font-color
c. text-colour
d. TextColor
a. <style>…</style>
b. <css>…</css>
c. <stylesheet>…</stylesheet>
d. Both A. and B.
a. //
b. /* and */
c. <* and *>
d. <! And !>
a. Yes
b. No
37. Which property is used to define the font of the element's text?
a. font
b. font-family
c. font-style
d. All of the above
38. Which CSS property is used to style the hyperlinks on hover (Mouse over)?
a. a:mouseover
b. a:move
c. a:mover
d. a:hover
a. Keywords
b. Data types
c. Declaration statements
d. Prototypes
40. Which keyword is used for declaring a variable in JavaScript that can be
reassigned?
a. Var
b. Static
c. Let
d. Const
41. Which CSS property is used to specify the space between the characters in a text?
a. text-space
b. letter-space
c. letter-spacing
d. letter-distance
a. One
b. Two
c. Three
d. Infinite
b) use strict
c) with
d) if
b) \\
c) \**\
d) /**/
45. In case a value of an operator is NULL, then the unary operator would return the
type of.
a) Object
b) Boolean
c) String
d) Undefined
II (8*3=24)
49. Which HTML tag is used to display the data in the tabular form?
52. What is the difference between inline, embedded and external style sheets?
54. Match the following HTML tags with their functions. (1*5=5)
Column - I Column - II
(i) <I>.......</I> (a) To strike a line through the middle of the text.
(ii)
(b) To italicize text.
<STRIKE>..........</STRIKE>
(iv) <SUB> .......</SUB> (d) To define the start and end of a paragraph.
(e) To make text appear slightly above the normal line of
(v) <P> .......</P>
text.
55. (1*6=6)