Font size
WorksheetsHTML, CSS & Responsive Design (Q2 - Q12)
Total questions: 28
Worksheet time: 14mins
In Bootstrap, what is the main difference between the .container and .container-fluid classes?
.container is used in the
, while .container-fluid is used in the ..container-fluid has a fixed maximum width, while .container spans the full width of the viewport.
.container is for text, while .container-fluid is for images.
.container has a fixed maximum width that changes at breakpoints, while .container-fluid spans the full width of the viewport.
Which media query syntax correctly applies styles only to screens that are between 768px and 1023px wide?
@media screen where width > 768px and width < 1023px {… }
@media screen and (min-width: 768px) and (max-width: 1023px) {… }
@media screen (width: 768px-1023px) {… }
@media screen (min-width: 768px), screen (max-width: 1023px) {… }
What is the fundamental purpose of a CSS Media Query?
To check if a media file (like an image or video) has loaded correctly.
To apply different styles for different media players.
To query the browser for its version and apply specific styles.
To include a block of CSS properties only if a certain condition, such as screen width, is true.
What is a "breakpoint" in the context of responsive web design?
A special class in Bootstrap that stops the grid from functioning.
The screen width at which a website's layout changes to adapt to the device size.
A point in the CSS file where a syntax error occurs.
The maximum number of columns allowed in a grid layout.
Which media query syntax correctly applies styles only to screens that are between 600px and 900px wide?
@media screen (min-width: 600px), screen (max-width: 900px) {… }
@media screen and (min-width: 600px) and (max-width: 900px) {… }
@media screen where width > 600px and width < 900px {… }
@media screen (width: 600px-900px) {… }
A developer wants a layout with two columns. On medium devices and larger, the columns should each take up half the screen width. On small devices, they should stack and each take up the full width. Which set of Bootstrap grid classes should be applied to the columns?
.col-md-6
.col-sm-12 .col-md-6
.col-6 .col-md-12
.col-12 .col-md-6
If an internal stylesheet defines a rule and an external stylesheet defines a conflicting rule for the same element, which rule takes precedence?
The stylesheet placed last in the <head> will be applied
The browser will ignore both rules and use its default styling.
The external stylesheet always has higher priority.
The internal stylesheet always has higher priority.
According to the CSS Box Model, which layer sits between the content and the border?
Margin
Padding
Outline
Background
Which of the following is NOT a valid value for the border-style property?
wavy
inset
dotted
solid
Which of the following is the correct shorthand syntax for the list-style property?
list-style: inside square url(image.png);
list-style: square inside url(image.png);
list-style: url(image.png) square inside;
list-style: square url(image.png) inside;
What is the main difference between an ID selector and a class selector?
An ID selector starts with a period (.), while a class selector starts with a hash (#).
A class can only be used once per page, while an ID can be used many times.
An ID is for a specific, unique element, while a class can be used on multiple elements.
An ID selector is for styling text, while a class selector is for layout.
To apply a style to a single, unique HTML element, you can use an ID selector. Fill in the blank with the character that must precede the ID name in the selector. (a) para1 { text-align: center; }
What is the primary purpose of the
section in an HTML document?To contain meta-information about the page, such as the title and character set.
To contain the main heading (
) of the page.
To display a header at the top of the visible page.
To link to the main content in the
.What does HTML stand for?
Hyper Text Markup Language
Hyper Tool Markup Language
High Tech Modern Language
Home Tool Management Language
Which tag is used to define a paragraph in HTML?
<p>
<body>
<h1>
<li>
How do you create a link that opens the user's email client to send a new email?
<a href="mailto:user@example.com">
<a href="email:user@example.com">
<a link="mailto:user@example.com">
<a email="user@example.com">
Which <input> type would create a slider control for selecting a value within a specified range?
type="number"
type="range"
type="level"
type="slider"
In the URL http://www.example.com/path/to/file.html#section1, what does the #section1 part represent?
The protocol
The domain name
An anchor
A port number
What is a primary benefit of using a chart in Excel?
To perform complex calculations on data.
To illustrate trends or patterns in the data.
To validate the accuracy of data entry.
To sort data in alphabetical or numerical order.
An IBAN code is in cell A2 (e.g., "IE12BJTJ99887712345678"). To extract a 6-digit sort code that starts after the 8th character, which formula can be used?
=LEFT(RIGHT(A2, 14), 6)
Both are correct.
=MID(A2, 9, 6)
Neither of answers is correct.
Which formula correctly counts the number of rows where the value in column C is "Yes" AND the corresponding value in column D is also "Yes"?
=COUNT(C:C="Yes", D:D="Yes")
=COUNTIF(C:D, "=Yes")
=COUNTIF(C:C, "=Yes") + COUNTIF(D:D, "=Yes")
=COUNTIFS(C:C, "=Yes", D:D, "=Yes")
Which function extracts a specific number of characters from the beginning of a text string?
MID
RIGHT
AND
LEFT
In the VLOOKUP function, what does the col_index_num argument specify?
The column that contains the value you are looking for.
The number of times to look up the value.
The number of columns in the lookup table.
The column number from which to retrieve the corresponding value.
When creating lists, which type of list is most appropriate when the order or sequence of the items is important?
A numbered list
A multilevel list
A bulleted list
A checklist
Which of the following file formats is best suited for sharing a finalized document to preserve its formatting across different computers and operating systems?
DOC
DOCX
TXT
A user wants to make a title appear more spacious and stylistically wider, but they do not want to increase the font size. Which character spacing option should they use?
Normal
Expanded
Condensed
Superscript
The Superscript and Subscript formatting commands are most commonly used for what purpose?
Creating different levels in a multi-level bulleted list.
Changing the spacing between all characters in a word.
Typing mathematical equations or chemical formulas.
Applying strikethrough formatting to text.
The Superscript and Subscript formatting commands are most commonly used for what purpose?
Creating different levels in a multi-level bulleted list.
Changing the spacing between all characters in a word.
Typing mathematical equations or chemical formulas.
Applying strikethrough formatting to text.
