wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Computer Science Discoveries Assessment 6/7/21 & 6/8/21

Total questions: 20

Worksheet time: 39mins

Name
Class
Date
1.

Which is the correct CSS property to change the font color of a paragraph to blue?

a)

{p

color: blue;

}

b)

p {

blue: color;

}

c)

<p>

color: blue;

</p>

d)

p {

color: blue;

}

e)

None of the above

2.

An image with a border that consist of dashes can be expressed as

a)

img {

dashed: border-style;

}

b)

img {

border-style: dashed;

}

c)

img {

border-dashed: style;

}

d)

img {

border: dashed-style;

}

e)

None of the above

3.

Which is the correct CSS property to move an image?

a)

img {

left: float;

}

b)

img {

move: left;

}

c)

img {

float: left;

}

d)

img {

style: left;

}

e)

None of the above

4.

Which is the correct attribute tag for a photo on a html page?

a)

<p>John Smith - Pixabay</p>

b)

<p>Pixabay</p>

c)

<p>John Smith</p>

d)

</p>John Smith - Pixabay<p>

e)

None of the above

5.

Adding an attribute gives credit to the original author of a photo

a)

True

b)

False

6.

Which item below is an CSS property?

a)

<p>John Smith</p>

b)

p {

color: blue;

}

c)

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

d)

<img src="photo.jpg" alt="photo description">

e)

None of the above

7.

Which CSS property would the border of your image to bend into a circular shape?

a)

img {

border-radius: 70px;

}

b)

img {

70px: border-radius;

}

c)

img {

border-radius 70

}

d)

img {

border-70: radius;

}

e)

None of the above

8.

Which html tag should be used to link the Cascading Style Sheet to a webpage,

a)

<link rel="stylesheet" href"style.html">

b)

<rel="stylesheet" href"style.html">

c)

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

d)

<link rel="style.css" href"style.html">

e)

None of the above

9.

What is the correct CSS property to make the border of an image bigger?

a)

img {

border: 10px;

}

b)

img {

width: 10px;

}

c)

img {

width-border: 10px;

}

d)

img {

border-width; 10px;

}

e)

None of the above

10.

A h1 heading with a font size of 50 would be written as

a)

h1 {

font-size: 50;

}

b)

h1 {

font-size: 50px;

}

c)

h1 {

50px: font-size;

}

d)

h1 {

font-50px: size;

}

e)

None of the above

11.

An image that is 250 pixels from left to right can be express by

a)

img {

width: 250

}

b)

img {

250; width:

}

c)

img {

width: 250px;

}

d)

img {

250px; width

}

e)

None of the above

12.

Which is the selector in the following CSS property:

h1 {

background-color: red;

color: blue

}

a)

background-color

b)

h1

c)

red

d)

color

e)

blue

13.

Which is a good filename for an image?

a)

red12345789.jpg

b)

red_car.jpg

c)

red_car_new_vehicle.jpg

d)

R!d3+t7&lov.jpg

e)

None of the above

14.

What is the correct CSS property to change the background color?

a)

body {

background: color-red;

}

b)

body {

red: background-color;

}

c)

body {

background-color: red;

}

d)

<body>

background-color: red

</body>

e)

None of the above

15.

20 pixels of space around all sides of an image can be written as

a)

img {

margin: 20px

}

b)

img {

margin 20

}

c)

img {

20px; margin

}

d)

img {

20 margin

}

e)

None of the above

16.

Which is a bad filename for an image?

a)

red-car.jpg

b)

blue.jpg

c)

new_car1.jpg

d)

1235783.jpg

e)

None of the above

17.

Which is the "rule set" of the following CSS property:

p {

text-align: right;

}

a)

p

b)

text-align:

c)

right;

d)

text-align: right;

18.

The border of an image with the color of green can be expressed as

a)

img {

border-color greenpx

}

b)

img {

green: border-color;

}

c)

img {

border-green: color;

}

d)

img {

border-color: green;

}

e)

None of the above

19.

What is the correct HTML tag for inserting an image file onto a webpage?

a)

<img src="photo.jpg" href="photo description">

b)

<img src="photo.jpg" alt="photo description">

c)

<img alt="photo.jpg" src="photo description">

d)

<"photo.jpg" "photo description">

e)

None of the above

20.

A image that is 200 pixels from top to bottom uses the CSS property

a)

img {

200px: height;

}

b)

img {

height: 200px;

}

c)

img {

height: 200;

}

d)

img {

200; height:

}

e)

None of the above