Skip to content

Instantly share code, notes, and snippets.

@tlgreg86
Last active February 23, 2017 20:36
Show Gist options
  • Save tlgreg86/45f44cb0f78f528c4b3ed4e72ca9663a to your computer and use it in GitHub Desktop.
Save tlgreg86/45f44cb0f78f528c4b3ed4e72ca9663a to your computer and use it in GitHub Desktop.
Quizlette Questions

Quizlette Questions for Study

HTML

What does WAI-ARIA stand for?

List and describe the three main categories of how WAI-ARIA breaks down.

Refactor this line of code to be more accessible: <img src="mountain.jpg"/>

What do the srcset and sizes attributes in an image tag indicate?

What is lossy compression? What is lossless compression?

What are the respective best uses for png, jpg, and svg?

How do you link an external stylesheet to your HTML document? Write the element and indicate where it should be placed in the markup.

Write an article tag with the class of blog-content.

What are two different methods for creating a submit action in an HTML form?

Describe an HTML attribute. What is it? How do you write one?

Write a section tag with two classes: day-1 and day-2

How do you link your JavaScript code in your HTML file? Write the element and indicate where it should be placed in the markup.

CSS

How do you select a header element?

How do you select an element with the class: header-content

How do you select an element with the ID: address-field

How do you select a paragraph element within a section element?

Write a css rule that uses a pseudo-element.

Describe two different approaches in organizing the properties of your css rules.

What is responsive image handling and why should we care?

With respect to image optimization, what is the bare minimum you should do with all your images in every project?

JavaScript

Create a variable changedVariable, assign it a value of 25.6, and then reassign the variable to the string: Week three is almost done!

Concatenate any two strings with the variable middleString concatenated between them.

Write a function that returns true if the argument passed in to the function is a string equal to "hello".

Using vanilla JS, select an element from a document with the class post-content and assign it to a variable

Using vanilla JS, for an element assigned to the variable contentText, add an event listener that listens for a click event and logs the text of the element to the console.

Write an object literal with a property of color, and give it a value.

For the array: myLitArray = [1, 2, 3, 4], log each number to the console using a for loop or forEach.

Write a constructor function for an object called Mug with a property of "full", which takes a value for full as an argument.

jQuery

Write a selector for a element with a class of comment-section

Write a selector for all paragraph elements and all table row elements

For an input element with the class form-input, select element and then get the text from the input element

Add a keyup event listener for an input element, and have the event listener log "It works!" to the console.

Git and GitHub

After you make a new directory and change into that directory, what command sets up a git repository?

What is the command to add changes to the Git staging area?

From the changes in the staging area, what is the command to create a snapshot of your project?

What command lists the remotes of your repository?

What is the default remote name for a GitHub remote?

What command takes code from your local repository and updates your online repository?

What command retrieves code from a remote repository?

Terminal

What is the command to show your present working directory?

Write the command to make a new directory: projects

Write the command to make a new file: styles.css

Write the command to change into a directory called my-projects

Write the command to go back two directories

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment