Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What is an image sprite in CSS?
A. Animated image
B. Multiple images combined into one file
C. Floating image
D. Background image
Direction: Choose the correct option

Q2.

.icon {
width: 32px;
height: 32px;
background: url('sprite.png');
}
What is the main benefit of using sprites?
A. Easier coding
B. Smaller images
C. Better quality
D. Fewer HTTP requests
Direction: Choose the correct option

Q3.

.home-icon { background-position: 0 0; }
.about-icon { background-position: -32px 0; }
.contact-icon { background-position: -64px 0; }
How do you display different icons from the same sprite?
A. By changing background-position
B. By changing height
C. By changing image source
D. By changing width
Direction: Choose the correct option

Q4.

.nav-item {
background: url('nav-sprite.png');
}
.nav-item:hover {
background-position: 0 -40px;
}
What effect does this create?
A. Fade effect
B. Hover effect showing different sprite part
C. Animation
D. Color change
Direction: Choose the correct option

Q5.

If icons in a sprite are 50px each and arranged horizontally, what is the background-position for the third icon?
A. 0 -100px
B. -50px 0
C. -100px 0
D. 100px 0