Priciples of Programming QP

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

WHRDE

World Human Recourse Development Education


Diploma in Computer Application (DCA)

PRINCIPLES OF PROGRAMMING

Time: 2.30 Hrs TOTAL MARK=100

I (45*1=45)

1. HTML stands for -

a. High Text Machine Language


b. Hyper Text and links Markup Language
c. Hyper Text Markup Language
d. None of these

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>

4. Which of the following tag is used to insert a line-break in HTML?

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>

6. Which character is used to represent the closing of a tag in HTML?

a. \
b. !
c. /
d. .

7. How to create a hyperlink in HTML?

a. <a href = "www.javatpoint.com"> javaTpoint.com </a>


b. <a url = "www.javatpoint.com" javaTpoint.com /a>
c. <a link = "www.javatpoint.com"> javaTpoint.com </a>
d. <a> www.javatpoint.com <javaTpoint.com /a>

8. Which of the following element is responsible for making the text italic in HTML?

a. <i>
b. <italic>
c. <it>
d. <pre>

9. How to insert an image in HTML?

a. <img href = "jtp.png" />


b. <img url = "jtp.png" />
c. <img link = "jtp.png" />
d. <img src = "jtp.png" />

10. How to add a background color in HTML?


a. <marquee bg color: "red">
b. <marquee bg-color = "red">
c. <marquee bgcolor = "red">
d. <marquee color = "red">

11. Which of the following tag is used to make the underlined text?

a. <i>
b. <ul>
c. <u>
d. <pre>

12. How to create a checkbox in HTML?


a. <input type = "checkbox">
b. <input type = "button">
c. <checkbox>
d. <input type = "check">

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>

14. HTML tags are enclosed in-

a. # and #
b. { and }
c. ! and ?
d. < and >

15. The <hr> tag in HTML is used for -

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

18. What are the types of unordered or bulleted list in HTML?

a. disc, square, triangle


b. polygon, triangle, circle
c. disc, circle, square
d. All of the above

19. Which is the correct way to comment out something in HTML?

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

21. CSS stands for -

a. Cascade style sheets


b. Color and style sheets
c. Cascading style sheets
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

23. The CSS property used to control the element's font-size is -

a. text-style
b. text-size
c. font-size
d. None of the above

24. The HTML attribute used to define the inline styles is -

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

28. Which type of CSS is used in the below code?


<p style = "border:2px solid red;">

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

32. What CSS describes?

a. CSS describes how calculation performs on button click.


b. CSS describes how HTML elements are to be displayed on screen, paper, or in
other media
c. Both A. and B.
d. None of the above
33. What is the correct syntax for referring an external CSS?

a. <link rel="stylesheet" type="text/css" href="mystyle.css">


b. <stylesheet rel="stylesheet" type="text/css" href="mystyle.css">
c. <style rel="stylesheet" type="text/css" href="mystyle.css">
d. All of the above

34. Internal styles are written within the _____ element.

a. <style>…</style>
b. <css>…</css>
c. <stylesheet>…</stylesheet>
d. Both A. and B.

35. CSS comments are placed within the ______.

a. //
b. /* and */
c. <* and *>
d. <! And !>

36. Can comments also span multiple lines?

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

39. The "function" and " var" are known as:

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

42. In how many ways can CSS be added to HTML?

a. One
b. Two
c. Three
d. Infinite

43. Which of these is not a keyword?


a) debugger

b) use strict

c) with

d) if

44. Which of these symbols is used to create comments in JavaScript?


a) //

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)

46. Explain different data types in JavaScript?

47. How to create a hyperlink in HTML? ...

48. How many types of heading does an HTML contain?

49. Which HTML tag is used to display the data in the tabular form?

50. Do all HTML tags have an end tag?

51. What is Embedded Style Sheet?

52. What is the difference between inline, embedded and external style sheets?

53. What are Tags? ..

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>

(c) To make text appear slightly below the normal line of


(iii) <SUP> .......</SUP>
text.

(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)

56. Write an HTML program to create the following list (2*10=20)

57. Write an HTML program to create the following Table.

You might also like