CSS Quiz | Set-2

  • Last Updated : 06 Oct, 2021

Question 1
Which CSS property will we use to wrap a block of text with an image ?
Cross
Wrap
Cross
Push
Tick
Float
Cross
Align


Question 1-Explanation: 
Float is a property in CSS which is used to style an element. It defines the flow of content. There are many types of floating properties like float: left, float: right, etc.
Question 2
Which css selector is used to defining the style for unique elements ?
Tick
id
Cross
text
Cross
class
Cross
name


Question 2-Explanation: 
The id selector is used to set the style of the given id The id attribute is unique in an HTML document.
Question 3
Which properties in CSS used to selects an animation defined in the keyframes rule ?
Cross
animation
Tick
animation-name
Cross
animation-element
Cross
None of the mentioned


Question 3-Explanation: 
The animation-name property in CSS is used to specify the name of the @keyframes that describing the animation-name property. There are 5 values: initially, inherit, keyframe name, and none.
Question 4
Which of the below CSS property should run in reverse on some cycles in animation ?
Cross
animation
Cross
animation-run
Cross
animation-repeat
Tick
animation-direction


Question 4-Explanation: 
The animation-direction in CSS is used to run in reverse on some cycles in animation.
Question 5
Which function in CSS is used to insert a value for the custom property ?
Cross
calc()
Cross
hsla()
Cross
hsl()
Tick
var()


Question 5-Explanation: 
The var() function in CSS is used to insert a value for a custom property. The syntax is var( custom_property, value ) where it takes the two property custom_property and the value.
Question 6
Which of the below CSS properties determine that the element of x-coordinate convert the position of the mask ?
Cross
mask-x-origin
Cross
mask-y-origin
Tick
mask-position-x
Cross
mask-origin-y


Question 6-Explanation: 
The mask-position-x is CSS is a property that determines whether the element of x-coordinate convert the position of the mask is not.
Question 7
Which of the below is correct way for write comment in CSS code ?
Tick
/* content goes here */
Cross
// content goes here //
Cross
/ content goes here /
Cross
<'content goes here'>


Question 7-Explanation: 
Comment is the way that tells which line of code performs what type of function.
Question 8
Which of the below property in CSS is used to apply visual effects ?
Cross
Alpha
Cross
BasicImage
Cross
Blur
Tick
Filter


Question 8-Explanation: 
The filter property is used to set the visual effect of an element in CSS This property is mainly responsible for changing the content of an image.
Question 9
Which function in CSS is used to set the linear gradient as the background image ?
Cross
absolute-gradient()
Cross
relative-gradient()
Tick
linear-gradient()
Cross
custom-gradient()


Question 9-Explanation: 
The linear-gradient() function is an inbuilt function in CSS that is set used to set the linear gradient as the background image of the web pages. It takes two parameters one is the direction and another one is color.
Question 10
Which property of CSS is used to animate the width of search input when the element gets focus ?
Cross
Focus
Tick
Transition
Cross
Outline
Cross
Color


Question 10-Explanation: 
Transitions in CSS are used to animate the width of search input when the element gets focus to allow us to control the way in which transition takes place between the given two states of the element.
12
There are 15 questions to complete.