Solved MCQ of CSS set-1

A perfect desktop image for CSS developers
Cascading Style Sheet (CSS) (Photo credit: Wikipedia)

1. Which of the following are the advantages of CSS?

i) CSS saves time ii) Page load faster

iii) Easy maintenance iv) Multiple compatibility


A) i, ii and iii only

B) ii, iii and iv only

C) i, ii and iv only

D) All i, ii, iii and iv


2. A CSS style rule is made up of three parts which are ..

i) Selector ii) Property

iii) Value iv) Attribute

A) i, ii and iii only

B) ii, iii and iv only

C) i, ii and iv only

D) All i, ii, iii and iv


3. Which is not the selector type of CSS?

A) Type selector

B) Universal selector

C) Local selector

D) Descendant selector


4. The correct example of class selector is .

A) h2.type1 {color: #000000;}

B) h2 type1 {color: #000000;}

C) h2 #type1 {color: #000000;}

D) #h2 type1 {color: #000000;}


5. CSS comments are inserted inside .

A) //...................//

B) <!..................>

C) /*..................*/

D) All of the above


6. We can handle old browsers by placing CSS codes inside.

A) //...................//

B) <!..................>

C) /*..................*/

D) None of the above


7. State whether True or False.

i) Any inline style sheet takes highest priority.

ii) Any rule defined in <style> ...........................</style> tag will override rules defined in any external style sheet file.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False


8. ...................... is used to import an external style sheet in a manner similar to the <link> element.

A) @insert

B) @import

C) #import

D) #insert


9. Which of the following is / are the measurement units in CSS?

i) % ii) cm iii) em iv) pc v) px

A) i, ii, iii and iv only

B) i, ii, iii and v only

C) i, ii, iv and v only

D) All i, ii, iii, iv and v


10. The possible formats of CSS colors are.

i) Hex code - #RRGGBB

ii) Short Hex Code - #RGB

iii) RGB% - rgb(rrr%, ggg%, bbb%)

iv) Keyword - teal, blue, black

A) i, ii and iv only

B) ii, iii and iv only

C) i, iii and iv only

D) All i, ii, iii and iv

Answers:

1.  D) All i, ii, iii and iv
2.  A) i, ii and iii only
3.  C) Local selector
4.  A) h2.type1 {color: #000000;}
5.  C) /*..................*/
6.  B) <!..................>
7.  C) i-True, ii-True
8.  B) @import
9   D) All i, ii, iii, iv and v
10 D) All i, ii, iii and iv


You Might also view the following Related Posts

شاب أردني عمري 16 سنة أحب كل جديد في عالم الانترنت من مواقع وبرامج واحب التدوين ودائما ابحث عن الجديد لتطوير مهاراتي في مختلف الميادين التي تعجبني لكي انقل لكم وانا مدون واعمل فى مجال التدوين منذ فترة واحب معرفة الجديد والتعرف على الصدقاء .

شارك المقالة

مقالات ذات صلة