wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

IMSD_Week-3_CSE-1

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the correct syntax to select all <p> elements inside a <div> only?

a)

div p { ... }

b)

p div { ... }

c)

div > p { ... }

d)

div + p { ... }

2.

Which selector targets a <p> that is a direct child of a <div>?

a)

div p

b)

div > p

c)

div + p

d)

div ~ p

3.

Which CSS property controls the space inside an element’s border?

a)

margin

b)

border-spacing

c)

padding

d)

gap

4.

Which CSS unit is relative to the viewport height?

a)

em

b)

vh

c)

%

d)

rem

5.

What is the difference between visibility: hidden; and display: none;?

a)

Both hide element and remove space

b)

hidden hides element but keeps its space

c)

none keeps space visible

d)

No difference

6.

What is the output of the following rule?

p::first-letter {

font-size: 200%;

color: green;

}

a)

First word becomes green

b)

First letter becomes large and green

c)

Entire paragraph green

d)

Invalid syntax

7.

Which CSS selector will select all elements that are hovered?

a)

:hover

b)

hover()

c)

onhover

d)

.hover

8.

Which of the following correctly centers an element horizontally with CSS Flexbox?

a)

align-items: center;

b)

justify-content: center;

c)

text-align: center;

d)

margin: center;

9.

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

a)

<css>

b)

<style>

c)

<script>

d)

<design>

10.

What does CSS stand for?

a)

Creative Style Sheets

b)

Colorful Style Sheets

c)

Cascading Style Sheets

d)

Computer Style Sheets