Introduction to Web Development with HTML, CSS, JavaScript Quiz Answers

Introduction to Web Development with HTML, CSS, JavaScript Week 1 Quiz Answers

Quiz: Graded Quiz

Q. Which JavaScript library simplifies Dom manipulation?

  • Jquery

Q1. A developer has complained that all the changes he made to the code were overwritten by somebody. What tool could have avoided this situation?

  • A database like Db2
  • A version control system like Git
  • A framework like Angular
  • A package manager like npm

Q2. What package manager(s) does Python use? (Select all that apply)

  • conda
  • RPM
  • pip
  • npm

Q3. When a user tries to login to a website, he/she gets an authentication failure error. Who do you think can fix this error?

  • Build Engineer
  • Front-end Developer
  • Quality Engineer
  • Back-end Developer

Q4. If Python is being used in your application development, where are you likely to see it?

  • Back-end
  • Front-end

Q5. What would you associate an API with?

  • Back-end
  • Front-end

Q6. What package manager does Node.js use?

  • RPM
  • conda
  • npm
  • pip

Q7. Which of the following is NOT a required skill for a front-end developer?

  • HTML
  • Java
  • JavaScript
  • CSS

Q8. In addition to SQL, which tool can help you access databases?

  • ORM
  • CI/CD
  • npm
  • pip

Q9. A user has complained that the website is readable on desktop but not on mobile. Who can help solve this problem?

  • Build Engineer
  • Quality Engineer
  •  Back-end Developer
  • Front-end Developer

Q10. Who handles authentication and authorization?

  • Front-end Developer 
  • Back-end Developer

Introduction to Web Development with HTML, CSS, JavaScript Week 02 Quiz Answers

Quiz : Graded Quiz

Q1. Which of the following statements embeds an image in an HTML document?

  • <image>link_to_image</image>
  • <figure src=”image URL” alt=”alternate text”>image name</figure>
  • <img src=”image URL” alt=”alternate text”>
  • <img href=”image URL” alt =”alternate text”>image name</img>

Q2. When defining a hyperlink (< a >), which attribute is used to specify the destination address?

  • src
  • href
  • target
  • ref

Q3. How are comments written in HTML?

  • #This is a comment
  • < !– This is a comment — >
  • /*This is a comment*/
  • “””This is a comment”””

Q4. Which tag preserves the spaces and line breaks of a given text when displayed?

  • <pre>
  • <section>
  • <label>
  • <p>

Q5. Which style is given priority, when multiple styles are specified for a single element?

  • External style sheet
  • Browser default
  • Inline style
  • Internal style sheet

Q6. Which tag CANNOT be used as a container for text?

  • <br>
  • <p>
  • <body>
  • <h1>

Q7. What is the <br> tag used for?

  • To add a line break 
  • To change the border
  • To change the text color to brown
  • To make text bold

Q8. Which is the universal selector in CSS?

  • *
  • ?
  • @
  • #

Q9. Which tag is used to create an ordered list?

  • <li>
  • <ol>
  • <ul>
  • <orderedlist>

Q10. Which selector helps to select all elements of a document, except paragraphs?

  • :n(p)
  • :not(p)
  • :!(p)
  • :except(p)

Introduction to Web Development with HTML, CSS, JavaScript Week 03 Quiz Answers

Quiz : Graded Quiz

Q1. What type of element is <article> ?

  • A graphic element
  • A semantic element
  • A multimedia element
  • An input element

Q2. Which of the following tags define a caption for a < fieldset > element?

  • <label>
  • <title>
  • <legend>
  • <caption>

Q3. Which user interface feature makes it easy to copy, reorder, and delete items?

  • Server Sent Events
  • Web Workers
  • Drag and Drop
  • Geolocation

Q4. How do you define the document type in HTML5?

  • <!DOCTYPE html>
  • <!DOCTYPE html5>
  • <!DOCTYPE html!>
  • <!DOCTYPE “text/html5”>

Q5. Which element defines a caption for the <figure> element?

  • <label>
  • <legend>
  • <figcaption>
  • <title>

Q6. Which is the default character encoding in HTML5?

  • UTF-32
  • UTF-8
  • UTF-16
  • ISO-8859-1

Q7. Which of the following is a new form feature added in HTML5?

  • <reset>
  • <a>
  • <submit> 
  • <output> 

Q8. Which semantic tag is used to display any content which is indirectly related to the main content of the document? 

  • <details>
  • <section>
  • <aside>
  • <article>

Q9. Which API in HTML5 allows you to identify the location of the user?

  • Web Workers
  • Microdata
  • Server sent events
  • Geolocation

Q10. Which type of input control would be most apt for selecting gender in a form?

  • radio
  • range
  • checkbox
  • checklist

Introduction to Web Development with HTML, CSS, JavaScript Week 04 Quiz Answers

Quiz : Graded Quiz

Q1. In the following declaration, what is the type of the variable ‘pi’? var pi = “3.14”;

  • number
  • char
  • float
  • string

Q2. How do you define an array called array1 in JavaScript?

  • var array1 = (1,2,3)
  • var array1 = new Array[1,2,3]
  • var array1 = new Array((1,2,3))
  • var array1 = [1,2,3]

Q3. What does the following statement do?

var ndate = new Date() ;

  • Assigns an empty string with the properties of dates to ndate
  • Assigns the current Greenwich Mean Time to ndate
  • Returns an error
  • Assigns the current local time to ndate

Q4. True or False: 10car is a valid variable name in JavaScript.

  • True
  • False

Q5. How are numbers converted to strings?

  • toString(123)
  • (123).toString()
  • (123).string
  • string(123)

Q6. What is the value of ‘total’ after the following statement is executed?  

var total = 10 + 1 +” 3”; 

  • 14
  • This results in an error
  • 113
  • 1013

Q7. What would the alert be, when the following code is executed? 

var a = new String(“Hello”); 

var b = “Hello”; 

if (a === b){ 


} else{ 



  • Same
  • Different
  • It would not give any alert as it is an error 
  • None of the above

Q8. Which of the following is a valid declaration of an object?

  • var a = [John, 55]
  • object a = {name:”John”,age:55} 
  • var a = {name:”John”,age:55}
  • obj a = {name:”John”,age:55}

Q9. Which of the following is not an event binder in JavaScript?

  • onchange
  • onsave
  • onhover
  • onclick

Q10. Which event is fired when a user clicks on an element in a webpage?

  • onmouseclick
  • onmousedown
  • onmouseover
  • onclick

Introduction to Web Development with HTML, CSS, JavaScript Week 05 Quiz Answers

Quiz : Graded Quiz

Q1. How is GitHub related to Git?

  • GitHub is an online hosting service for Git repositories
  • GitHub is the open-source tool used to create Git
  • GitHub provides distributed version control for Git

Q2. Which of the following tasks must you complete before you can start work in GitHub?

  • Verify your email address
  • Create an Organization
  • Read the GitHub Guide

Q3. What are commits?

  • Merges
  • Saved changes
  • Pull requests

Q4. To sync local changes back to the GitHub repository you run three commands, what is the final command?

  • git add <files>
  • git push
  • git commit -m

Q5. Which command can a repository administrator use to allow anonymous downloads from repos?

  • “git-daemon”
  • “git-shell”
  • “gitweb”

Q6. What is a repository?

  • A storage area for images files only
  • A newspaper
  • A data structure that stores documents and source code
  •  A building where data are stored 

Q7. True or False: When you create a repository, you can add a license file to tell people how they can use your code.

  • True
  • False

Q8. What happens if you make a change on a branch you don’t own?

  • GitHub automatically makes a pull request 
  • GitHub does not allow you to make changes on branches that you don’t own
  • GitHub generates an error
  •  A push request is issued for the owner  

Q9. What are the three most commonly used operations when working with remote repositories? 

  • open, close, send
  •  push, pull, fetch 
  • create, delete, copy 
  • open, edit, push

Q10. When managing forks, which command can you use to fetch and merge the remote branch in a single step?

  • “git fetch upstream” 
  • “git merge upstream/master”
  •  “git pull upstream” 
  • git pull downstream 

Get all IBM Full Stack Cloud Developer Professional Certificate Quiz Answers

Introduction to Cloud Computing Coursera Quiz Answers

Introduction to Web Development with HTML, CSS, JavaScript Quiz Answers

Developing Cloud Native Applications Coursera Quiz Answers

Developing Cloud Apps with Node.js and React Coursera Quiz Answers

Introduction to Containers w/ Docker, Kubernetes & OpenShift Quiz Answers

Python for Data Science, AI & Development Coursera Quiz Answers

Python Project for AI & Application Development Coursera Quiz Answers

Developing Applications with SQL, Databases, and Django Quiz Answers

Application Development using Microservices and Serverless Quiz Answers

Full Stack Cloud Development Capstone Project Coursera Quiz Answers

Team Networking Funda
Team Networking Funda

We are Team Networking Funda, a group of passionate authors and networking enthusiasts committed to sharing our expertise and experiences in networking and team building. With backgrounds in Data Science, Information Technology, Health, and Business Marketing, we bring diverse perspectives and insights to help you navigate the challenges and opportunities of professional networking and teamwork.


Leave a Reply

Your email address will not be published. Required fields are marked *