98
73.8k
Chapter:

40+ CSS Solved MCQs

in Web Technology

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Computer Applications (BCA) , Bachelor of Business Administration in Computer Applications (BBA [CA]) .

Chapters

Chapter: CSS
1.

----stands for Cascading Style Sheets.

A. CSS
B. inline
C. internal
D. external
Answer» A. CSS
2.

-----describes how HTML elements are to be displayed on screen, paper, or in other
media.

A. CSS
B. inline
C. internal
D. external
Answer» A. CSS
3.

------saves a lot of work. It can control the layout of multiple web pages all at once.

A. CSS
B. inline
C. internal
D. external
Answer» A. CSS
4.

An------CSS is used to apply a unique style to a single HTML element

A. CSS
B. inline
C. internal
D. external
Answer» B. inline
5.

An-----CSS is defined in the <head> section of an HTML page, within
a <style> element:

A. CSS
B. inline
C. internal
D. external
Answer» C. internal
6.

With an--------style sheet, you can change the look of an entire web site, by
changing one file!

A. CSS
B. inline
C. internal
D. external
Answer» D. external
7.

An external style sheet can be written in any text editor. The file must not contain
any HTML code, and must be saved with a -------extension.

A. .CSS
B. .TXT
C. .JS
D. .XLS
Answer» A. .CSS
8.

The CSS-------property defines the text color to be used.

A. color
B. font-family
C. font -size
D. border
Answer» A. color
9.

The CSS------property defines the font to be used.

A. color
B. font-family
C. font -size
D. border
Answer» B. font-family
10.

The CSS---------property defines the text size to be used.

A. color
B. font-family
C. font -size`
D. border
Answer» C. font -size`
11.

The CSS-------property defines a border around an HTML element:

A. color
B. font-family
C. font -size`
D. border
Answer» D. border
12.

The CSS--------property defines a margin (space) outside the border

A. color
B. font-family
C. font -size`
D. Margin
Answer» D. Margin
13.

To define a style for special types of elements, add a-----attribute is apply to the
element

A. color
B. font-family
C. font -size`
D. class
Answer» D. class
14.

-------are used to explain the code, and may help when you edit the source code at
a later date.

A. color
B. font-family
C. font -size`
D. comments
Answer» D. comments
15.

------are ignored by browsers.

A. color
B. font-family
C. font -size`
D. comments
Answer» D. comments
16.

------stands for -

A. Cascade style sheets
B. Color and style sheets
C. Cascading style sheets
D. None of the above
Answer» A. Cascade style sheets
17.

Which of the following is the correct syntax for referring the external style sheet?

A. <style src = example.css>
B. <style src = "example.css" >
C. <stylesheet> example.css </stylesheet>
D. <link rel="stylesheet" type="text/css" href="example.css">
Answer» B. <style src = "example.css" >
18.

The property in CSS used to change the---------of an element is -

A. bgcolor
B. color
C. background-color
D. All of the above
Answer» C. background-color
19.

The property in CSS used to change the text-----of an element is
Sol:
-

A. bgcolor
B. color
C. background-color
D. All of the above
Answer» B. color
20.

The CSS property used to control the element's------is -

A. text-style
B. text-size
C. font-size
D. None of the above
Answer» C. font-size
21.

The HTML attribute used to define the inline------is -

A. style
B. styles
C. class
D. None of the above
Answer» A. style
22.

The HTML attribute used to define the internal style sheet is ------

A. <style>
B. style
C. <link>
D. <script>
Answer» B. style
23.

Which of the following CSS property is used to set the background image of an
element?

A. background-attachment
B. background-image
C. background-color
D. None of the above
Answer» B. background-image
24.

Which of the following is the correct syntax to make the background-color of all
paragraph elements to yellow?

A. p {background-color : yellow;}
B. p {background-color : #yellow;}
C. all {background-color : yellow;}
D. all p {background-color : #yellow;}
Answer» A. p {background-color : yellow;}
25.

Which of the following is the correct syntax to display the hyperlinks without any underline?

A. a {text-decoration : underline;}
B. a {decoration : no-underline;}
C. a {text-decoration : none;}
D. None of the above
Answer» C. a {text-decoration : none;}
26.

Which of the following property is used as the shorthand property for the padding properties?

A. padding-left
B. padding-right
C. padding
D. All of the above
Answer» C. padding
27.

The CSS property used to make the-------is -

A. font-weight : bold
B. weight: bold
C. font: bold
D. style: bold
Answer» C. font: bold
28.

Are the negative values allowed in padding property?

A. Yes
B. No
C. Can't say
D. May be
Answer» A. Yes
29.

Which of the following property is used as the shorthand property of margin
properties?

A. margin-left
B. margin-right
C. margin
D. None of the above
Answer» C. margin
30.

The CSS property used to specify the transparency of an element is

A. opacity
B. filter
C. visibility
D. overlay
Answer» C. visibility
31.

Which of the following is used to specify the subscript of text using CSS?

A. vertical-align: sub
B. vertical-align: super
C. vertical-align: subscript
D. None of the above
Answer» A. vertical-align: sub
32.

The-----CSS is also a method to insert style sheets in HTML document. This
method mitigates some advantages of style sheets so it is advised to use this method sparingly.

A. CSS
B. inline
C. internal
D. external
Answer» B. inline
33.

-----style sheet is generally used when you want to make changes on multiple pages. It is ideal for this condition because it facilitates you to change the look of the entire web site by changing just one file.

A. CSS
B. inline
C. internal
D. external
Answer» B. inline
34.

-----tag is used to display the list in order wise like 1,2 3.. or A,B,C..

A. <meta>
B. <ul>
C. <ol>
D. <map>
Answer» C. <ol>
35.

----tag is used to display the bullet wise list in unordered wise.

A. <meta>
B. <ul>
C. <ol>
D. <map>
Answer» A. <meta>
36.

-----tag is used to specify the page description ,keyword, author name, it is
additional information about the information.

A. <meta>
B. <ul>
C. <ol>
D. <map>
Answer» A. <meta>
37.

-----tag is used to define the list item.

A. <li>
B. <ul>
C. <ol>
D. <map>
Answer» A. <li>
38.

-----is used to define the width of border while cellpadding define distance between
cell border and content within it .

A. <cellspacing>
B. <ul>
C. <ol>
D. <map>
Answer» A. <cellspacing>
39.

cellspacing is used to define the width of border while------define distance
between cell border and content within it .

A. <cellspacing>
B. <cellpadding>
C. <ol>
D. <map>
Answer» B. <cellpadding>
40.

------tag is used to declaring the title or name of the html document.

A. <body>
B. <title>
C. <head>
D. <center>
Answer» B. <title>
41.

-----tag is used to for indicating the head section of the html document.

A. <body>
B. <title>
C. <head>
D. <center>
Answer» C. <head>
42.

------tag is used to define the document body.

A. <body>
B. <title>
C. <head>
D. <center>
Answer» A. <body>
43.

-----tag is used to center align text.

A. <body>
B. <title>
C. <head>
D. <center>
Answer» D. <center>
44.

-----tag is used to give the space in between to word or character .

A. <&nbps>
B. <title>
C. <head>
D. <center>
Answer» A. <&nbps>

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.