CSCI 1103 PROGRAMMING EXAM 2025 STUDY
GUIDE QUESTIONS AND ANSWERS
◉Which CSS layout method is best suited to achieve this layout? .
Answer: flex
◉Which css grid property establishes a 3 equal column layout?
columns: .33 .33 .33
row: 3 3 3
grid-template-columns: 1fr 1fr 1fr
child: 1em 1em 1em . Answer: grid-template-columns: 1fr 1fr 1fr
◉Website colors can be specified in
______
format as a 6 digit
______
number . Answer: RGB
hex
,◉The following css:
.special {
color: green;
margin: 0 0 0 12px;
}
Makes all paragraphs green with 12px margin bottom
Makes paragraphs green with an optional 12px margin.
Makes class special elements green with 12px left margin.
Makes id special elements green with 12 px margin bottom . Answer:
Makes class special elements green with 12px left margin.
◉Which of the following CSS selects all links that are nested inside a
list item?
ul .a {...}
a:hover ul.li {...}
a:link list-item {...}
li a {....} . Answer: li a {....}
◉In CSS which selectors allow you to target multiple elements on the
page?
,ids
classes
RFDs
properties . Answer: classes
◉The CSS Box Model consists of the following elements in (inside-out)
order:
padding
margin
border
content . Answer: __2__padding
__4__margin
__3__border
__1__content
◉Which of the following are block elements?
links
images
paragraphs
, headers
lists . Answer: paragraphs
headers
lists
◉To horizontally center block elements use:
padding-left-right: auto
padding: auto
margin: 0 auto
block: center . Answer: margin: 0 auto
◉Which of the following are css selectors?
element
class
tag
id . Answer: id
element
class
◉html tags used to create sections of the page
GUIDE QUESTIONS AND ANSWERS
◉Which CSS layout method is best suited to achieve this layout? .
Answer: flex
◉Which css grid property establishes a 3 equal column layout?
columns: .33 .33 .33
row: 3 3 3
grid-template-columns: 1fr 1fr 1fr
child: 1em 1em 1em . Answer: grid-template-columns: 1fr 1fr 1fr
◉Website colors can be specified in
______
format as a 6 digit
______
number . Answer: RGB
hex
,◉The following css:
.special {
color: green;
margin: 0 0 0 12px;
}
Makes all paragraphs green with 12px margin bottom
Makes paragraphs green with an optional 12px margin.
Makes class special elements green with 12px left margin.
Makes id special elements green with 12 px margin bottom . Answer:
Makes class special elements green with 12px left margin.
◉Which of the following CSS selects all links that are nested inside a
list item?
ul .a {...}
a:hover ul.li {...}
a:link list-item {...}
li a {....} . Answer: li a {....}
◉In CSS which selectors allow you to target multiple elements on the
page?
,ids
classes
RFDs
properties . Answer: classes
◉The CSS Box Model consists of the following elements in (inside-out)
order:
padding
margin
border
content . Answer: __2__padding
__4__margin
__3__border
__1__content
◉Which of the following are block elements?
links
images
paragraphs
, headers
lists . Answer: paragraphs
headers
lists
◉To horizontally center block elements use:
padding-left-right: auto
padding: auto
margin: 0 auto
block: center . Answer: margin: 0 auto
◉Which of the following are css selectors?
element
class
tag
id . Answer: id
element
class
◉html tags used to create sections of the page