HTML RGB MCQs
HTML RGB MCQs : This section focuses on color "RGB" of Html. These Multiple Choice Questions (mcq) should be practiced to improve the Html skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.
1. In HTML, colors can be specified by-
A. RGB
B. RGBA
C. HEX
D. All of the above
View Answer
Ans : D
Explanation: All the three can be used for determining the color in HTML.
2. What does R,G and B in RGB value of HTML color mean?
A. Red,Green,Blue
B. Red,Grey,Black
C. Red,Grey,Blue
D. Red,Green,Black
View Answer
Ans : A
Explanation: RGB means the three basic colors Red, Blue, Green
3. Each of RGB has its value from-
A. 0 to 256
B. 0 to 254
C. 0 to 255
D. 1 to 256
View Answer
Ans : C
Explanation: Each color of RGB has its value ranging from 0 to 255. The more the value, the darker is its intensity.
4. Which color do RGB(0,0,0) represent?
A. White
B. Black
C. Red
D. Blue
View Answer
Ans : B
Explanation: When all the three values are 0, it gives Black color.
5. Which color do RGB(255,255,255) represent?
A. White
B. Black
C. Red
D. Blue
View Answer
Ans : A
Explanation: When all the three values are 255, it gives White color.
6. Choose the correct option.
A. In rgba, a stands for alpha.
B. Its value ranges from 0 to 1.
C. Both a and b are correct.
D. None of the above
View Answer
Ans : C
Explanation: In rgba, a stands for alpha which measures the degree of transparency.
7. Which color will rgba(255,0,0,0) give?
A. red
B. black
C. tomato
D. white
View Answer
Ans : D
Explanation: Since, here a=0, so it will be completely transparent i.e. white.
8. Which color will rgb(0,255,0) give?
A. red
B. green
C. tomato
D. blue
View Answer
Ans : B
Explanation: Since all the other two values are 0, so it will give the green color.
9. Which one of the following colors will be darkest?
A. rgb(30,30,30)
B. rgb(90,90,90)
C. rgb(120,120,120)
D. rgb (200,200,200)
View Answer
Ans : A
Explanation: All the above four represent different shades of grey color. The one having the lowest intensity will be the darkest.
10. Which one of the following colors will be darkest?
A. rgba(255,99,71,0)
B. rgba(255,99,71,0.5)
C. rgba(255,99,71,0.8)
D. rgba(255,99,71,0.2)
View Answer
Ans : C
Explanation: The higher the value of a parameter in rgba, the less transparent the color will be. Hence rgba(255,99,71,0.8) will be the darkest among the four.
Also check :
Discussion