
Week 2 : CSS

Quiz
•
Computers
•
University
•
Hard
Ibrahim Ibrahim
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 3 pts
What is the purpose of the z-index property in CSS?
To control the size of an element
To control the stacking order of elements
To change the color of an element
To set the transparency of an element
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which of the following CSS properties is used to change the text color inside an element?
background-color
text-color
color
font-color
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What will be the result of the following CSS code?
p {
margin: 20px;
padding: 20px;
}
A paragraph with a 20px space inside the content and a 20px space outside the border.
A paragraph with a 20px space outside the content and a 20px space inside the border.
A paragraph with a 20px space inside the border but no space outside
A paragraph with only a 20px space outside the content.
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Given the following CSS, which elements will be affected by the styles?
div > p {
color: blue;
}
All p elements nested inside any div element
All p elements that are direct children of a div element
All p elements
The first p element inside a div element
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What is the difference between position: absolute and position: fixed?
absolute positions relative to the viewport, while fixed positions relative to the nearest positioned ancestor.
absolute positions relative to its original location, while fixed stays in one place relative to the viewport.
absolute positions relative to the nearest positioned ancestor, while fixed positions relative to the viewport.
absolute is used for background images, while fixed is used for content.
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
If you want a flex container to display its items in a vertical column, which property would you use?
flex-direction: row;
align-items: center;
flex-direction: column;
justify-content: center;
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What is the effect of the display: none; property?
It hides an element but still takes up space in the layout.
It hides an element and removes it from the layout flow.
It makes an element transparent.
It changes the element to a block-level element.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
BSC AG-IV 3D TEXTURING AND LIGHTING

Quiz
•
University
11 questions
Array

Quiz
•
University
15 questions
Stack??

Quiz
•
University
14 questions
Data Structure

Quiz
•
University
7 questions
CSS Rules Quiz-unit 4 CodeHS

Quiz
•
7th Grade - University
15 questions
Kuizi 13 - Web

Quiz
•
10th Grade - University
12 questions
CSS and HTML Styling

Quiz
•
University
10 questions
Lec04 - Quiz02: Object and Embed

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University