Coder Social home page Coder Social logo

fe-quiz-05's Introduction

Responsive Sites and CSS3 Media Queries

???

Responsive Layout Quiz

?: Responsive site layouts are ideal because they allow for the creation of a single site as opposed to multiple iterations each tailored to a specific device's layout.

(X) TRUE ( ) FALSE

?: What is another term for the 'modern-first' approach to creating responsive websites in which the site is first designed to look and function the best on newer browsers, but still provide functionality and compatibility for older browsers?

( ) progressive enhancement ( ) mobile-second development (X) graceful degradation ( ) regressive enhancement

?: What is another term for the approach to creating responsive layouts in which the site is first designed to fit mobile devices and is then scaled up for larger screens?

( ) desktop-down ( ) mobile-second development ( ) graceful degradation (X) mobile-up

?: Each CSS3 media query may only be given one conditional expression to evaluate.

( ) TRUE (X) FALSE

?: A meta tag with the name of viewport allows us to set the device width, initial scale, and maximum scale, so we can disable zoom in the browser.

(X) TRUE ( ) FALSE

?: 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.

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

?: Select the most appropriate CSS media query statement to change the font-size of nav elements to 1.5em when the screen is between 480 and 1024px wide on any type of device.

( ) @media only screen and (min-width: 1024px) { nav { font-size: 1.5em; } } ( ) @media (min-width: 481px) and (max-width: 1023px) { nav { font-size: 1.5em; } } (X) @media all and (min-width: 480px) and (max-width: 1024px) { nav { font-size: 1.5em; } } ( ) @media print and (min-width: 480px) and (max-width: 1024px) { nav { font-size: 1.5em; } }

?: Select the most appropriate CSS media query statement to set section elements to stop floating on screen devices with an available width of 480px or less.

(X) @media only screen and (max-width: 480px) { section { float: none; } } ( ) @media (min-width: 480px) { section { float: none; } } ( ) @media all { section { float: none; } } ( ) @media only screen and (width: 480px) { section { float: none; } }

?: It is important to make media elements (e.g., img, form, input, table, video, audio, and iframe) responsive by setting their width and max-width properties to 100px.

( ) TRUE (X) FALSE

?: Select the most appropriate CSS media query statement to split the paragraph text in article elements into two columns on screen devices that are at least 480px wide.

( ) @media only screen and (max-width: 480px) { article p { column-count: 2; } } ( ) @media only print and (min-width: 480px) { article p { column-count: 2; } } ( ) @media only screen and (min-width: 480px) { article p { number-of-columns: 2; } } (X) @media only screen and (min-width: 480px) { article p { column-count: 2; } }

?: Assuming the font-size property for body elements is set to 100%, for h1 elements to 2.5em, and for p elements to 1em, select the most appropriate CSS media query statement to proportionally double the font-size of both h1 and p elements on screen devices no more than 400px wide.

( ) @media only screen and (max-width: 400px) { h1, p { font-size: 5em, 2em; } } ( ) @media all and (max-width: 400px) { body { font-size: 2em; } } (X) @media only screen and (max-width: 400px) { body { font-size: 200%; } } ( ) @media only screen and (max-width: 400px) { html { font-size: 200%; } }

???

View Responsive Layout Quiz on Learn.co and start learning to code for free.

fe-quiz-05's People

Contributors

annjohn avatar fislabstest avatar fs-lms-test-bot avatar ga-be avatar jongrover avatar kode-tiki avatar maxwellbenton avatar pletcher avatar victhevenot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fe-quiz-05's Issues

Responsive Layout Quiz Changes

Certain elements of this quiz need to be revised.

  1. I do not recall having any training on sprites, or their positioning.
  2. Some questions have all false answers:
    ex: Select the most appropriate CSS media query to change the nav font-size to 1.5 em when the screen size is less than 1024 pixels wide and greater than 480 pixels wide on any type of device.
    a1: @media only screen and (min-width: 1024px) { nav { font-size: 1.5em; } }
    a2: @media (min-width: 481px) and (max-width: 1023px) { nav { font-size: 1.5em; } }
    a3: @media all and (min-width: 480px) and (max-width: 1024px) { nav { font-size: 1.5em; } }

a4: @media print and (min-width: 480px) and (max-width: 1024px) { nav { font-size: 1.5em; } }

In this case all answers are wrong because "screen size is less than 1024 pixels wide and greater than 480 pixels wide" which means "max-width: 1023px and min-width: 481px", and the only answer that allows this (a2) does not state the media "type" which should be all.
*Note: maybe "all" is implied and does not need to be explicitly stated, but the quiz still marked my answer wrong when i selected it.

The mysterious sprite

I just wanted to let you know that based on the current order of the lessons and labs, sprites have not come up. However, this quiz ask about sprites and their use. I just wanted to put that out there ;)

sprites

This quiz is referring to sprites and I don't think we covered those in this section...

The answer were selected and quiz was marked completed

Hello,
I notice when I got to this quiz that some of the answers were already selected on its own while some were not and quiz was marked completed. I tried refreshing as well as uploading the quiz but nothing worked. I wanted to select my own answers but it stopped me from doing so. As a result I left it as is and answered the few that were left unanswered and proceeded to press the "I am done" button.

Please look into it and see if anyone else experienced the same issue.

Thanks

Ayesha

Quiz needs some work

The answer to question 8 is incorrect. It should be the second answer.

Also, I don't recall the topics of questions 4 and 6 being covered in the material. Maybe I missed something, or maybe they should be changed.

sprites not covered in curriculum but are in the quiz

Question 5 states: "Let’s say we have a sprite that is 40 pixels tall showing two event states: a normal state of the icon on top 20 pixels and the hover state of an icon on the lower 20 pixels; Using CSS the sprite is loaded as the background image of an element that is 20px tall and 20px wide. Select the most appropriate CSS declaration to reposition the sprite background image to reveal the lower half (20 pixels) of the hover state icon image."

However, the curriculum leading up to this quiz made no mention of sprites. (Apologies if I somehow missed this lesson, but I was unable to find it in going back over previous ones in this section)

Graceful Degradation Definition

Hi, I believe that the question about graceful degradation is misleading. The W3 wiki defines graceful degradation as:

So, graceful degradation is the practice of building your web functionality so that it provides a certain level of user experience in more modern browsers, but it will also degrade gracefully to a lower level of user in experience in older browsers. This lower level is not as nice to use for your site visitors, but it does still provide them with the basic functionality that they came to your site to use; things do not break for them.

Sprites?

Perhaps I missed something in the previous lessons but I didn't hear anything about Sprites mentioned in the video lesson or text. Two questions show up in the quiz about Sprites however. Not a big deal, I just googled it and found one of the answers. Maybe I missed something.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.