Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

COMPUTER QA 2.0

Total questions: 92

Worksheet time: 56mins

Name
Class
Date
1.

What does CSS stands for?

a)

Cascading Style Sheet

b)

Computer Style Sheet

c)

Creative Style Sheet

d)

Colorful Style Sheet

2.

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

a)

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

b)

<style src="mystyle.css">

c)

<stylesheet>mystyle.css</stylesheet>

3.

Where in an HTML document is the correct place to refer to an external style sheet?

a)

in the <head> section

b)

at the end of the document

c)

in the <body> section

4.

Which HTML tag is used to define an internal style sheet?

a)

<style>

b)

<script>

c)

<css>

5.

Which HTML attribute is used to define inline styles?

a)

styles

b)

font

c)

style

d)

class

6.

Which is the correct CSS syntax?

a)

{body:color=black;}

b)

body:color=black;

c)

{body;color:black}

d)

body {color:black;}

7.

How do you insert a comment in a CSS file?

a)

//this is a comment//

b)

/*this is a comment*/

c)

'this is a comment

d)

// this is a comment

8.

Which property is used to change the background color?

a)

bgcolor

b)

color

c)

background-color

9.

How do you add a background color for all <h1> elements?

a)

h1 {background-color:#FFFFFF;}

b)

all.h1 {background-color:#FFFFFF;}

c)

h1.all {background-color:#FFFFFF;}

d)

<h1>background-color:#FFFFFF;</h1>

10.

Which CSS property is used to change the text color of an element?

a)

text-color

b)

fgcolor

c)

color

11.

Which CSS property controls the text size?

a)

font-size

b)

text-style

c)

font-style

d)

text-size

12.

What is the correct CSS syntax for making all the <p> elements bold?

a)

p {font-weight:bold;}

b)

<p style="text-size:bold;">

c)

p {text-size:bold;}

d)

<p style="font-size:bold;">

13.

How do you display hyperlinks without an underline?

a)

a {text-declaration:none;}

b)

a {text-declaration:no-underline;}

c)

a {decoration:no-underline;}

d)

a {underline:none;}

14.

How do you make each word in a text start with a capital letter?

a)

transform:capitalize

b)

you can't do that with CSS

c)

text-transform:capitalize

d)

text-style:capitalize

15.

Which property is used to change the font of an element?

a)

font-family

b)

font-weight

c)

font-style

16.

How do you make the text bold?

a)

font:bold;

b)

font-weight:bold;

c)

style:bold;

17.

How do you display a border like this:

The top border = 10 pixels

The bottom border = 5 pixels

The left border = 20 pixels

The right border = 1 pixel?

a)

border-width:10px 5px 20px 1px;

b)

border-width:5px 20px 10px 1px;

c)

border-width:10px 20px 5px 1px;

d)

border-width:10px 1px 5px 20px;

18.

Which property is used to change the left margin of an element?

a)

margin-left

b)

padding-left

c)

indent

19.

When using the padding property; are you allowed to use negative values?

a)

no

b)

yes

20.

How do you make a list that lists its items with squares?

a)

list-type:square;

b)

list-style-type:square;

c)

list:square

21.

How do you select an element with id 'demo?

a)

#demo

b)

.demo

c)

*demo

d)

demo

22.

How do you select elements with class name 'test'?

a)

.test

b)

*test

c)

#test

d)

test

23.

How do you select all p elements inside a div element?

a)

div.p

b)

div p

c)

div + p

24.

How do you group selectors?

a)

separate each selector with a comma

b)

separate each selector with a plus sign

c)

separate each selector with a space

25.

What is the default value of the position property?

a)

fixed

b)

relative

c)

static

d)

scroll

26.

Which value of background-repeat ensures the image does not repeat?

a)

no-repeat

b)

repeat-x

c)

repeat-y

d)

none

27.

What is the default behavior of the background-repeat property?

a)

The image repeats only horizontally.

b)

The image repats only vertically.

c)

The image repeats both horizontally and vertically.

d)

The image does not repeat.

28.

When using a background-image, it is important to:

a)

Set the opacity of the image.

b)

Use an image that does not disturb the text.

c)

use RGB values with an alpha channel.

29.

Which of the following is the correct way to set a background image?

a)

background-image: "image.jpg";

b)

background-image: (image.jpg);

c)

background-image: url("image.jpg");

d)

background-image= url(image.jpg);

30.

What is the default behavior of the background-image property?

a)

The image is not repeated.

b)

The image repeats to cover the entire element.

c)

The image is stretched to cover the element.

d)

The image is tiled only horizontally.

31.

What CSS property is used to set a background image?

a)

background-img

b)

background-image

c)

background-url

d)

image-background

32.

Which RGBA value represents a fully transparent green background?

a)

rgba(0, 255, 0, 1)

b)

rgba(0, 255, 0, 0)

c)

rgba(0, 255, 0, 0.5)

d)

rgba(0, 255, 0, 0.3)

33.

What is the valid range for the CSS opacity property?

a)

0.0 to 1.0

b)

0 to 100

c)

1 to 100

d)

0 to 255

34.

Which CSS selector is used to select an element with a specific id?

a)
  • *

b)

.

c)

#

d)

%

35.

Which of the following is the correct syntax to select all <p> elements with the class 'highlight'?

a)

p.highlight

b)

.highlight p

c)

p#highlight

d)

#highlight p

36.

What does the universal selector ( * ) do in CSS?

a)

Selects elements with a specific id.

b)

Selects all HTML elements on the page

c)

Selects elements with a specific class.

d)

Groups multiple selectors together.

37.

Multiple CSS declarations are separated with semicolons ( ; ).

a)

true

b)

false

38.

In CSS, font-size is:

a)

a selector

b)

a value

c)

a property

d)

an element

39.

Which of the following is a valid CSS declaration?

a)

color: red;

b)

text-align red;

c)

font-weight = bold;

d)

backgroundcolor red

40.

What does a 'CSS rule' consist of?

a)

A selector and a declaration block

b)

a declaration block and an attribute

c)

a declaration block and a style

41.

In the following example, which part is the selector?

p {color: red;}

a)

p

b)

{color: red;}

c)

color

d)

red

42.

Two of the following HTML elements makes the text bold, which two?

a)

<em>and<b>

b)

<strong>and<b>

c)

<big>and<b>

d)

<mark>and<b>

43.

Which of the following headers is the largest and most important header?

a)

<h1>

b)

<h2>

c)

<h3>

d)

<h4>

e)

<h5>

44.

Empty elements must have a close tag.

a)

true

b)

false

45.

What is the correct HTML markup for the document type declaration?

a)

<!DOCTYPE html>

b)

DOCTYPE html;

c)

--DOCTYPE html;

46.

Who invented HTML?

a)

Tim Berners-Lee

b)

Brendan Eich

c)

Guido van Rossum

47.

Which of the following is the correct tag to include an external CSS file?

a)

link

b)

style

c)

script

d)

meta

48.

How can you change the look of an entire website by changing just one file?

a)

With an internal style sheet

b)

With an external style sheet

c)

With inline CSS

d)

With browser default styles

49.

Add an external style sheet with the url: "mystyle.css".

a)

<link rel="stylesheet" href="mystyle.css">

b)

<link="stylesheet" href="mystyle.css">

c)

<ref url="stylesheet" href="mystyle.css">

50.

Which of the following methods for inserting a style sheet has the highest priority?

a)

browser default

b)

external CSS

c)

internal CSS

d)

inline CSS

51.

Set the page's background color to red.

(separate your answer with a comma and space)

(a)  

52.

Which of the following is the correct CSS properties to style the <h1> element property?

a)

color

b)

text-align

c)

font-size

d)

red

53.

Set the page's background color to red, by using an inline style.

(a)  

54.

Insert the missing parts to make the CSS code correct.

(separate your anser with a comma and space)

(a)  

55.

Which of the following is a predefined color name in CSS?

a)

RedGreenBlue

b)

blue

c)

RGB

d)

HEX

56.

What is the correct syntax to set a background color in CSS?

a)

background-clr: color;

b)

bg-color: red;

c)

background-color: blue;

d)

color-background: blue;

57.

Which of the following is the correct value to set the background color of <h1> to DodgerBlue.

a)

Tomato

b)

DodgerBlue

c)

MediumSeaGreen

d)

Dodger Blue

58.

Which of the following is the correct property and value to set the text color of <p> to red.

a)

color

b)

text-color

c)

red

d)

bg-color

e)

background-color

59.

Which of the following is the correct property and value to set the border color <p> to green?

a)

bg-color

b)

border

c)

green

d)

line

e)

br

60.

Which of the following is the correct property to set a green background color for a <div> element?

a)

bg-color

b)

color

c)

opacity

d)

background-color

61.

Which of the following are the correct property and value to set a blue background color for a <div>?

a)

background-color

b)

bg-color

c)

rgb(blue)

d)

#blue

e)

blue

62.

Set the background color of the <h1> element to "lightblue".

(a)  

63.

Which of the following are the correct property and value to set a red background color for a <div>?

a)

color

b)

bg-color

c)

#red

d)

background-color

e)

red

64.

Which of the following are the correct property and value to repeat the background image horizontally?

a)

backround-position

b)

packground-image

c)

background-repeat

d)

repeat-y

e)

repeat-x

65.

Make the background image repeat only vertically.

(separate your answer with a comma and space)

(a)  

66.

Which of the following is the correct value to ensure the background image does not repeat?

a)

no-repeat

b)

repeat-x

c)

repeat-y

67.

Specify that the background image should be shown once, in the top right corner.

(separate your answer with a comma and space)

(a)  

68.

Use the correct background property to make the background image NOT scroll with the rest of the page.

(separate your answer with a comma and space)

(a)  

69.

Which of the following are the correct property and value to make the background image scroll with the page?

a)

background-position

b)

background-attachment

c)

fixed

d)

no-scroll

e)

scroll

70.

Which of the following is the correct value to set the background color to red?

a)

red

b)

#red

c)

url

d)

right top

e)

fixed

71.

Which of the following is the correct value to specify the background image?

a)

background-color

b)

no-repeat

c)

img:img_tree.png

d)

url("img_tree.png")

72.

Which of the following is the correct value to make sure the background image does not repeat?

a)

repeat

b)

repeat-x

c)

no-repeat

d)

repeat-y

e)

stop-repeat

73.

Which of the following headers has the correct HTML syntax?

a)

<h1>Welcome</h1>

b)

{{h1}}Welcome{{:h1}}

c)

{h1:Welcome}

74.

What is the correct syntax for an HTML hyperlink?

a)

<a href="/home.htm>Visit W3Schools.com!</a>

b)

<link href="/home.htm">Visit W3Schools.com!</link>

c)

<a link href="/home.htm">Visit W3Schools.com!</alink>

75.

Write TRUE if the statement is correct and if not, change the underlined word/s with the correct answer.

  • CSS STANDS FOR CASTING STYLE SHEETS.



(a)  

76.

Write TRUE if the statement is correct and if not, change the underlined word/s with the correct answer.

CSS HAS GIVEN WEB DESIGNERS MORE CONTROL ON THE DESIGN OF THEIR WEBSITES.

(a)  

77.

Write TRUE if the statement is correct and if not, change the underlined word/s with the correct answer.

tHE EXTERNAL STYLE SHEET APPLIES THE STYLES TO A PARTICULAR WEB PAGE.

(a)  

78.

Write TRUE if the statement is correct and if not, change the underlined word/s with the correct answer.

THE INLINE STYLE SHEET APPLIES STYLES ACROSS ALL WEB PAGES.

(a)  

79.

Write TRUE if the statement is correct and if not, change the underlined word/s with the correct answer.

THE DECLARATIONS OF A SELECTOR ARE SEPARATED BY A COLON (:).

(a)  

80.

The file extension when saving a CSS file is (a)   .

81.

The color purple of the property is applied to the value when a colon (:) is not entered.

a)

true

b)

false

82.

Indenting the declarations affects the output of a web page.

a)

true

b)

false

83.

The Save All command is an efficient way to save opened files.

a)

true

b)

false

84.

The text within the comment tag affects the output of a web page.

a)

true

b)

false

85.

Comments are not displayed in the browser.

a)

true

b)

false

86.

Where can CSS comments be added?

a)

Only at the beginning of a CSS file

b)

Anywhere within the CSS code

c)

Only at the end of CSS declarations

d)

CSS does not support comments

87.

Complete the comment in the CSS code.

a)

/*

b)

#

c)

//

d)

*

e)

*/

88.



(a)  

89.

A text editor like Notepad++ cannot used to create CSS file.

a)

true

b)

false

90.

(a)   are descriptions or simple notes in the source code.

91.

Write TRUE if the statement is correct and if not, change the underlined word/s with the correct answer.

USE ID SELECTOR TO APPLY THE SAME STYLES TO MULTIPLE ELEMENTS.

(a)  

92.

A comma separates the value with the succeeding sets of properties and values.

a)

true

b)

false