wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Responsive - Day 8

Total questions: 31

Worksheet time: 6mins

Name
Class
Date
1.
To ensure a site's pages render as expected by the target audience, regardless of the device used to access them, which design model should be followed?
a)
Dual platform design
b)
HTML Transitional 1.0 design
c)
Responsive Web Design
d)
Cascadingd Style Sheet design
2.

Did you enjoy your HTML, CSS, JS, PHP classes?

4 lines
3.
Using Responsive Web Design (RWD) ensures that site will display correctly in all desktop browsers and mobile devices.
You used a grid-based layout and resize-able images, which is another RWD technique that you can use in responsive design?
a)
Use relative units, such as percentages, for positioning page elements
b)
Use standard page structure elements, including <header>, <footer> and <article>,  because older devices will display content in the structure elements correctly
c)
Use static pixels for all content positioning 
d)
Use smaller fonts for all body text, to ensure it will appear correctly on smaller screens
4.
________ positioning keeps the element in the normal document flow, while ________ positioning takes it out of the normal flow.
a)
relative, absolute
b)
absolute, relative
c)
fixed, static
d)
parallel, universal
5.

It uses the @media rule to include a block of CSS properties only if a certain condition is true.?

a)

False

b)

True

6.

Which of the following ways is correct to Set the media query ?

a)

@media only screen and (min-width: 768px){}

b)

@media on (min-width: 768px){}

c)

None of the above

7.

We can add a breakpoint where certain parts of the design will behave differently on ______________.?

a)

The Text is shown normal.

b)

each side of the breakpoint.

c)

None of the above

8.

Media queries can also be used to change layout of a page depending on the ______?

a)

orientation of the browser.

b)

Size

c)

None of the above

9.

Which of the following is the correct form to create a col with media query?

a)

.col-1 {width: 8.33%;}

b)

flex-wrap: no-wrap;

c)

None of the above

10.

Which of the following bootstrap style is used to add standard links to .navbar?

a)

- .navbar-link

b)

- .link

c)

- .form-link

d)

None of the above.

11.

Select the most appropriate CSS media query statement to change the #wrapper selector's width value to 90% on screen devices not wider than 1024px.

a)

@media only screen and (min-width: 1024px) { #wrapper { width: 90%; } }

b)

@media only screen and (max-width: 1024px) { #wrapper { width: 90%; } }

c)

@media all and (min-width: 1024px) { #wrapper { width: 90%; } }

d)

@media print and (max-width: 1024px) { #wrapper { width: 90%; } }

12.

Which of the following are flex-direction property values? (Choose all that apply.)

a)

auto

b)

row-reverse

c)

column

d)

start

13.

grid-area property controls

a)

The size of the whole grid

b)

the size of a grid cell

c)

grid area row start, column start, row end, column end

d)

the size of the table

14.

What is the attribute used to give curved borders?

(a)  

15.

How do you target devices with a specific screen width using media queries?

a)

By using the 'min-width' and 'max-width' properties in CSS media queries.

b)

By using the 'min-device-width' and 'max-device-width' properties in CSS media queries.

c)

By using the 'min-resolution' and 'max-resolution' properties in CSS media queries.

d)

By using the 'min-height' and 'max-height' properties in CSS media queries.

16.

How do you apply different styles to different screen sizes using media queries?

a)

By using the @media query in JavaScript

b)

By using the tag in HTML

c)

By using the @media rule in CSS

d)

By using the !important rule in CSS

17.

What is the default media type if not specified in a media query?

a)

none

b)

all

c)

default

d)

any

18.
Media query syntax to apply for devices with max width specified
a)
$media screen (max-width: 600px) {...}
b)

@media screen (max-width: 600px) {...}

c)

@media only screen and (max-width: 600px) {...}

d)

$media screen and (max-width: 600px) {...}

19.

<script type="text/javascript">

x=4+"4";

document.write(x);

</script>

Output------?

a)

44

b)

8

c)

4

d)

Error output

20.

What is the most common feature used in media queries?

a)

max-width

b)

max-resolution

c)

min-height

d)

aspect-ratio

21.

What is the order in which styles are typically defined in a CSS document with media queries?

a)

Desktop first

b)

Mobile first

c)

Smartphone first

d)

Tablet first

22.

Which type of displays may be detected using the resolution value in media queries?

a)

High-resolution displays

b)

Touchscreen displays

c)

Low-resolution displays

d)

Monochrome displays

23.

What happens if multiple media queries target the same element?

a)

They cancel each other out

b)

The first one is always applied

c)

The last one is always applied

d)

They are applied randomly

24.

What is the purpose of using media queries in responsive web design?

a)

To add interactive games to websites

b)

To customize the appearance of websites for multiple devices

c)

To make websites load faster

d)

To increase website security

25.

_____ are used to associate a style sheet or style rule with a specific device or list of device features.​

a)

Flexible layouts

b)

Responsive images

c)

Viewports

d)

Media queries

26.

Identify the media rule that must be included in a Cascading Style Sheet (CSS) file so that media queries can be used to associate specific style rules with specific devices.​

a)

​#media

devices

{

style rules

}

b)

​&media

devices

{

style rules

}

c)

​@media

devices

{

style rules

}

d)

​*media

devices

{

style rules

}

27.

Identify the media query that applies style rules only to screens that are at least 300 pixels wide.​

a)

​@media screen and (min-width: 300px) {

style rules

}

b)

media screen and (@min-width: 300px) {

style rules

}

c)

media screen and (least-width: 300px) {

style rules

}

d)

​@media screen and (@minwidth: 300px) {

style rules

}

28.

Web pages are seen within a window called the _____.​

a)

wireframe

b)

navigator

c)

prototype

d)

viewport

29.

Mobile Screen Size?

a)

480px

b)

640px

c)

320px

d)

500px

30.

Tablet Screen Size?

a)

480px

b)

640px

c)

720px

d)

900px

31.

Desktop Screen Size?

a)

1024px

b)

1440px

c)

720px

d)

900px