Introduction to Cloud Development Full Quiz Solved

Module 1 – Introduction to Programming for the Cloud

Module Quiz:

Module 1 – Graded Quiz

Question 1

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

  1. A framework like Angular
  2. A version control system like Git
  3. A package manager like npm
  4. A database like Db2

Answer: A version control system like Git

Question 2

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

  1. npm
  2. pip
  3. conda
  4. RPM

Answer: pip, conda

Question 3

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

  1. Quality Engineer
  2. Back-end Developer
  3. Build Engineer
  4. Front-end Developer

Answer: Back-end Developer

Question 4

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

  1. Front-end
  2. Back-end

Answer: Back-end

Question 5

What would you associate an API with?

  1. Front-end
  2. Back-end

Answer: Back-end

Module 2 – HTML5 and CSS Overview

Module 2 – Graded Quiz

Question 1

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

  1. < image > link_to_image < /image >
  2. < figure src=”image URL” alt=”alternate text” > image name< /figure >
  3. < img src=”image URL” alt=”alternate text” >
  4. < img href=”image URL” alt =”alternate text” > image name < /img >

Answer: < img src=”image URL” alt=”alternate text” >

Question 2

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

  1. ref
  2. target
  3. href
  4. src

Answer: href

Question 3

How are comments written in HTML?

  1. “””This is a comment”””
  2. /*This is a comment*/
  3. < !– This is a comment — >
  4. #This is a comment

Answer: < !– This is a comment — >

Question 4

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

  1. < section >
  2. < p >
  3. < label >
  4. < pre >

Answer: < pre >

Question 5

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

  1. Browser default
  2. Internal style sheet
  3. Inline style
  4. External style sheet

Answer: Inline style

Module 3 – HTML5 Elements

Module 3 – Graded Quiz

Question 1

What type of element is < article > ?

  1. A multimedia element
  2. A graphic element
  3. An input element
  4. A semantic element

Answer: A semantic element

Question 2

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

  1. < title >
  2. < label >
  3. < legend >
  4. < caption >

Answer: < legend >

Question 3

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

  1. Web Workers
  2. Server Sent Events
  3. Drag and Drop
  4. Geolocation

Answer: Drag and Drop

Question 4

How do you define the document type in HTML5?

  1. < !DOCTYPE html >
  2. < !DOCTYPE “text/html5” >
  3. < !DOCTYPE html5 >
  4. < !DOCTYPE html! >

Answer: < !DOCTYPE html >

Question 5

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

  1. < title >
  2. < label >
  3. < figcaption >
  4. < legend >

Answer: < figcaption >

Module 4 – JavaScript Programming for Web Applications

Module 4 – Graded Quiz

Question 1

In the following declaration, what is the type of the variable ‘pi’?

var pi = “3.14”;

  1. char
  2. float
  3. string
  4. number

Answer: string

Question 2

How do you define an array called array1 in JavaScript?

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

Answer: var array1 = [1,2,3]

Question 3

What does the following statement do?

var ndate = new Date() ;

  1. Returns an error
  2. Assigns the current Greenwich Mean Time to ndate
  3. Assigns the current local time to ndate
  4. Assigns an empty string with the properties of dates to ndate.

Answer: Assigns the current local time to ndate

Question 4

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

  1. True
  2. False

Answer: False

Question 5

How are numbers converted to strings?

  1. (123).toString
  2. (123).string
  3. toString(123)
  4. string(123)

Answer: (123).toString

Module 5 – GitHub

Module 5 – Graded Quiz

Question 1

How is GitHub related to Git?

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

Answer: GitHub is an online hosting service for Git repositories

Question 2

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

  1. Create an Organization
  2. Read the GitHub Guide
  3. Verify your email address

Answer: Verify your email address

Question 3

What are commits?

  1. Pull requests
  2. Saved changes
  3. Merges

Answer: Saved changes

Question 4

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

  1. git commit -m
  2. git push
  3. git add < files >

Answer: git push

Question 5

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

  1. “gitweb”
  2. “git-daemon”
  3. “git-shell”

Answer: “git-daemon”

Final Exam

Final Quiz:

Final Exam (Graded)

Question 1

What package manager does Node.js use?

  1. RPM
  2. pip
  3. conda
  4. npm

Answer: npm

Question 2

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

  1. JavaScript
  2. CSS
  3. Java
  4. HTML

Answer: Java

Question 3

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

  1. npm
  2. ORM
  3. pip
  4. CI/CD

Answer: ORM

Question 4

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

  1. Quality Engineer
  2. Back-end Developer
  3. Build Engineer
  4. Front-end Developer

Answer: Front-end Developer

Question 5

Who handles authentication and authorization?

  1. Back-end Developer
  2. Front-end Developer

Answer: Back-end Developer

Question 6

Which tag is used to create an ordered list?

  1. < orderedlist >
  2. < li >
  3. < ul >
  4. < ol >

Answer: < ol >

Question 7

Which tag CANNOT be used as a container for text?

  1. < body >
  2. < br >
  3. < h1 >
  4. < p >

Answer: < br >

Question 8

What is the < br > tag used for?

  1. To make text bold
  2. To change the border
  3. To add a line break
  4. To change the text color to brown

Answer: To add a line break

Question 9

Which is the universal selector in CSS?

  1. *
  2. @
  3. ?
  4. #

Answer: *

Question 10

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

  1. :except(p)
  2. :n(p)
  3. :not(p)
  4. :!(p)

Answer: :not(p)

Question 11

Which is the default character encoding in HTML5?

  1. ISO-8859-1
  2. UTF-8
  3. UTF-32
  4. UTF-16

Answer: UTF-8

Question 12

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

  1. < reset >
  2. < a >
  3. < submit >
  4. < output >

Answer: < output >

Question 13

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

  1. < details >
  2. < article >
  3. < aside >
  4. < section >

Answer: < aside >

Question 14

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

  1. Web Workers
  2. Server sent events
  3. Microdata
  4. Geolocation

Answer: Geolocation

Question 15

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

  1. radio
  2. checkbox
  3. range
  4. checklist

Answer: radio

Question 16

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

var total = 10 + 1 +” 3”;

  1. 14
  2. 1013
  3. 113
  4. This results in an error

Answer: 113

Question 17

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

var a = new String(“Hello”);
var b = “Hello”;
if (a === b){
alert(“Same”);
} else{
alert(“Different”);
}

  1. It would not give any alert as it is an error
  2. Different
  3. Same
  4. None of the above

Answer: Different

Question 18

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

  1. object a = {name:”John”,age:55}
  2. obj a = {name:”John”,age:55}
  3. var a = {name:”John”,age:55}

Answer: var a = {name:”John”,age:55}

Question 19

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

  1. onsave
  2. onchange
  3. onhover
  4. onclick

Answer: onsave

Question 20

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

  1. onclick
  2. onmouseclick
  3. onmouseover
  4. onmousedown

Answer: onclick

Question 21

What is a repository?

  1. A newspaper
  2. A data structure that stores documents and source code
  3. A building where data are stored

Answer: A data structure that stores documents and source code

Question 22

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

  1. True
  2. False

Answer: True

Question 23

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

  1. GitHub does not allow you to make changes on branches that you don’t own
  2. GitHub automatically makes a pull request
  3. GitHub generates an error

Answer: GitHub automatically makes a pull request

Question 24

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

  1. create, delete, copy
  2. push, pull, fetch
  3. open, close, send

Answer: push, pull, fetch

Question 25

Which of the following are common GitHub roles in a project?

  1. Developer, Backup Administrator, SEO Administrator
  2. Developer, Integrator, Repository Administrator
  3. Developer, Manager, Intern

Answer: Developer, Integrator, Repository Administrator

Leave a Comment