0% found this document useful (0 votes)
43 views9 pages

CSS Properties and Usage Quiz

The document is a test form containing multiple-choice questions related to CSS and HTML concepts. It covers topics such as CSS properties, HTML tags, and styling techniques. Each question is designed to assess knowledge of web development fundamentals.

Uploaded by

naderbimeen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views9 pages

CSS Properties and Usage Quiz

The document is a test form containing multiple-choice questions related to CSS and HTML concepts. It covers topics such as CSS properties, HTML tags, and styling techniques. Each question is designed to assess knowledge of web development fundamentals.

Uploaded by

naderbimeen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

3/21/25, 9:33 PM Front-R38-Test-6

Front-R38-Test-6
‫‏ تبديل الحساب‬bimeennader@[Link]
.‫تم حفظ المسّو دة‬
‫غير مشترك‬

‫* تشير إلى أّن السؤال مطلوب‬

* / ‫االسم رباعي بالعربي‬

‫بيمن نادر جاد‬

* / id

285222251113

‫نقطة واحدة‬ What is the purpose of the * { padding: 0; margin: 0; box-sizing: border- -1
?box; } rule

A. To increase padding and margin

B. To reset default padding, margin, and apply box-sizing to all elements

C. To apply a shadow to all elements

D. To make all text bold

‫محو التحديد‬

‫نقطة واحدة‬ :The property background-image is used to -2

A. Set the size of an element

B. Apply a background color

C. Display an image as the background

D. Control the text alignment

‫محو التحديد‬

‫نقطة واحدة‬ ?What does rgba(0, 0, 0, 0.7) represent -3

A. Black with 70% opacity

B. Transparent black

C. White with 30% opacity

D. Blue with 70% opacity

‫محو التحديد‬

‫نقطة واحدة‬ ?;What is the purpose of text-transform: uppercase -4

A. Converts all text to lowercase

B. Converts all text to uppercase

C. Adds underline to text

D. Increases font size

‫محو التحديد‬

‫نقطة واحدة‬ :The border-radius property is used for -5

A. Making text bold

B. Adding shadows

C. Rounding corners

D. Adjusting transparency

‫محو التحديد‬

[Link] 1/9
3/21/25, 9:33 PM Front-R38-Test-6

‫نقطة واحدة‬ Which of the following properties is used to control the space between -6
?letters

A. line-height

B. letter-spacing

C. word-spacing

D. text-transform

‫محو التحديد‬

‫نقطة واحدة‬ ?;What is the purpose of cursor: pointer -7

A. Changes the color of the element

B. Adds shadow to the element

C. Changes the cursor to a hand when hovered

D. Resizes the element

‫نقطة واحدة‬ . ............ The default position is -8

a) fixed

b) static

C) absolute

D) relative

‫نقطة واحدة‬ ?What is the range of values for the "opacity" property in CSS -9

0 to 1

b. 10 to 100

c. 1 to 2

d. 1 to 100

‫نقطة واحدة‬ ?What is the purpose of the z-index property in CSS .10

A. To set the transparency of an element

B. To control the stacking order of elements

C. To change the color of the element

D. To add spacing between elements

‫نقطة واحدة‬ .div1 {z-indix : 3; } .div2 {z-indix : 10; } .11

a. div2 will be over div1

b. div1 will be over div2

c. div2 will be over all cause it is last written in code .

d. nothing will happen

‫نقطة واحدة‬ ............ z-index is one of the )12

a. attribute selectors

b. attributes

c. pseudo classes

d. None of the above

[Link] 2/9
3/21/25, 9:33 PM Front-R38-Test-6

‫نقطة واحدة‬ Choose the correct Css Properity for moving the text inside my website -13
.in all directions

margin-top

margin

del

text-align:center

‫نقطة واحدة‬ What will be the output of following CSS code snippet? h1 { -14
background-color: "brown" }

a) background will be brown

b) background for h1 will be brown

c) nothing happen

d) h1 becomes brown

‫نقطة واحدة‬ ?'How do you select elements with class name 'test -15

#test

test

*test

.test

‫نقطة واحدة‬ - CSS stands for -16

a) Cascade style sheets

b) Color and style sheets

c) Cascading style sheets

d) None of the above

‫نقطة واحدة‬ Choose the correct Css Properity for changing the size of tags -17

a)font-style

b)font-size

c)font-weight

D)bolding font

‫نقطة واحدة‬ ? semi colon (;) is obligated to be given to all properities inside element -18

yes

no

‫نقطة واحدة‬ ?What is the correct HTML element for inserting a line break -19

<pr>

<break>

<br>

<lb>

‫نقطة واحدة‬ ?What is the purpose of the div tag .20

a. To create a division in a document.

b. To create a div container

c. To style a division with CSS

d. All of the above

[Link] 3/9
3/21/25, 9:33 PM Front-R38-Test-6

‫نقطة واحدة‬ ?Which of the following is used to read an HTML page and render it -21

Web server

Web browser

Web network

Web matrix

‫نقطة واحدة‬ ?Which element is used to get highlighted text in HTML -22

<u>

<mark>

<highlight>

<b>

‫نقطة واحدة‬ In HTML, which attribute is used to create a link that opens in a new -23
?window tab

src=”_blank”

target=”_blank”

target=”_self”

alt=”_blank”

‫نقطة واحدة‬ ?Which of the following HTML tag is used to create an unordered list -24

<order list>

<unordered list>

<unorder list>

none of all

‫نقطة واحدة‬ ?What is the correct way to add comments in CSS .25

a. a) /* This is a comment */

b. b) // This is a comment //

c. c) // This is a comment

d. d) <!-- This is a comment -->

‫نقطة واحدة‬ ? which of the following measurements represents seconds -26

se

sec

seconds

none of all mentioned

‫نقطة واحدة‬ What is the maximum number of classes you can apply to a single .27
?HTML element

a. One

b. Two

c. Five

d. Unlimited

[Link] 4/9
3/21/25, 9:33 PM Front-R38-Test-6

‫نقطة واحدة‬ ?Which of the following is an example of a valid tag selector .28

a. .header

b. #navbar

c. div

d. [type="text"]

‫نقطة واحدة‬ Which value for the "margin" property is used to center an element .29
horizontally
?within its parent container

a. auto

b. 6

c. 0

d. inherit

‫نقطة واحدة‬ ........................ after is one of the .30

a. Attributes

b. selectors

c. pseudo classes

d. pseudo elements

‫نقطة واحدة‬ ?What is the default value for the "line-height" property in CSS .31

a. 1

b. 1.2

c. normal

d. none

‫نقطة واحدة‬ Which of the following property is used as the shorthand property of .32
?background properties

a. background-image

b. background-color

c. color

d. background

‫نقطة واحدة‬ Which of the following is the correct syntax to display the hyperlinks )33
?without any underline

a {text-decoration : underline;}

a {decoration : no-underline;}

a {text-decoration : none}

None of the above

‫نقطة واحدة‬ How can you apply opacity to only the background of an element, not .34
affecting the
?text and other content

a. background-opacity: 0.5;

b. background-color: rgba(255, 0, 0, 0.5);

c. opacity: 0.5; background: no-opacity;

d. d) text-opacity: 0.5;

[Link] 5/9
3/21/25, 9:33 PM Front-R38-Test-6

‫نقطة واحدة‬ Which value of the "position" property positions an element relative to .35
,the viewport
?even when scrolling

a. position:fixed;

b. relative

c. absolute

d. fixed

‫نقطة واحدة‬ Which value of the "display" property makes an element not be .36
displayed at all on
?the page

a. hidden

b. none

c. invisible

d. display: none;

‫نقطة واحدة‬ ?What is the purpose of the CSS float property .37

a. To create a floating image effect

b. To position an element to the left or right of its container

c. To control the transparency of an element

d. To create a floating navigation menu

‫نقطة واحدة‬ ? CSS property that make the Event take time while happenning .38

a. hover

b. transition

c. active

d. transform

‫نقطة واحدة‬ . To Support Arabic language you have to use ........ tag -39

link

meta

h2

‫نقطة واحدة‬ ? .......... To make a button class in html you can use -40

button

btn

h2

‫نقطة واحدة‬ . ............. dashed is one the values given to -41

outline

border

div

text

[Link] 6/9
3/21/25, 9:33 PM Front-R38-Test-6

‫نقطة واحدة‬ What is the correct CSS syntax to set a margin of 10 pixels for the top .42
and right, and
?pixels for the left and bottom sides of an element 20

a. margin: 10px 20px;

b. margin: 10px 10px 20px 20px;

c. margin: 10px;

d. margin: 10px 20px 10px;

‫نقطة واحدة‬ How do you set a background image to cover the entire element's .43
background area
?without being stretched

a. background-fit: cover;

b. background-size: cover;

c. background: fit cover;

d. background-fill: cover;

‫نقطة واحدة‬ .Block elements are normally displayed without starting a new line .44

True

False

‫نقطة واحدة‬ .Choose the correct HTML tag for a large title -45

<h6>

<h3>

<heading 1>

<P>

‫نقطة واحدة‬ . Choose the correct Css Properity for making text bold -46

a)font-style

b)font-size

c)font-weight

D)bolding font

‫نقطة واحدة‬ ?Which of the following tag is used to embed css in html page -47

a) <css>

b) <!DOCTYPE html>

c) <script>

d) <style>

‫نقطة واحدة‬ Which of the following CSS style property is used to specify an italic -48
?text

a) style

b) bold

c) font-style

d) italic

‫نقطة واحدة‬ Which of the following is the correct syntax to make the background- )49
?color of all paragraph elements to yellow

all {background-color : yellow;}

p {background-color : #yellow;}

all p {background-color : #yellow;}

p {background-color : yellow;}

[Link] 7/9
3/21/25, 9:33 PM Front-R38-Test-6

‫نقطة واحدة‬ What will be the expected output when the following code is executed in -50
?a web browser

B ِِA

D C

E) None of the above choices are


correct.

‫محو النموذج‬ ‫إرسال‬

.‫ مطلًق ا‬Google ‫عدم إرسال كلمات المرور عبر نماذج‬

‫ سياسة الخصوصية‬- ‫ شروط الخدمة‬- .Google ‫لم يتم إنشاء هذا المحتوى وال اعتماده من ِقبل‬

‫? اإلبالغ‬Does this form look suspicious

‫نماذج‬

[Link] 8/9
3/21/25, 9:33 PM Front-R38-Test-6

[Link] 9/9

You might also like