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?
- A framework like Angular
- A version control system like Git
- A package manager like npm
- A database like Db2
Answer: A version control system like Git
Question 2
What package manager(s) does Python use? (Select all that apply)
- npm
- pip
- conda
- 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?
- Quality Engineer
- Back-end Developer
- Build Engineer
- 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?
- Front-end
- Back-end
Answer: Back-end
Question 5
What would you associate an API with?
- Front-end
- 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?
- < 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 >
Answer: < img src=”image URL” alt=”alternate text” >
Question 2
When defining a hyperlink (< a >), which attribute is used to specify the destination address?
- ref
- target
- href
- src
Answer: href
Question 3
How are comments written in HTML?
- “””This is a comment”””
- /*This is a comment*/
- < !– This is a comment — >
- #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?
- < section >
- < p >
- < label >
- < pre >
Answer: < pre >
Question 5
Which style is given priority, when multiple styles are specified for a single element?
- Browser default
- Internal style sheet
- Inline style
- External style sheet
Answer: Inline style
Module 3 – HTML5 Elements |
---|
Module 3 – Graded Quiz
Question 1
What type of element is < article > ?
- A multimedia element
- A graphic element
- An input element
- A semantic element
Answer: A semantic element
Question 2
Which of the following tags define a caption for a < fieldset > element?
- < title >
- < label >
- < legend >
- < caption >
Answer: < legend >
Question 3
Which user interface feature makes it easy to copy, reorder, and delete items?
- Web Workers
- Server Sent Events
- Drag and Drop
- Geolocation
Answer: Drag and Drop
Question 4
How do you define the document type in HTML5?
- < !DOCTYPE html >
- < !DOCTYPE “text/html5” >
- < !DOCTYPE html5 >
- < !DOCTYPE html! >
Answer: < !DOCTYPE html >
Question 5
Which element defines a caption for the < figure > element?
- < title >
- < label >
- < figcaption >
- < 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”;
- char
- float
- string
- number
Answer: string
Question 2
How do you define an array called array1 in JavaScript?
- var array1 = new Array((1,2,3))
- var array1 = [1,2,3]
- var array1 = new Array[1,2,3]
- var array1 = (1,2,3)
Answer: var array1 = [1,2,3]
Question 3
What does the following statement do?
var ndate = new Date() ;
- Returns an error
- Assigns the current Greenwich Mean Time to ndate
- Assigns the current local time to ndate
- 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.
- True
- False
Answer: False
Question 5
How are numbers converted to strings?
- (123).toString
- (123).string
- toString(123)
- string(123)
Answer: (123).toString
Module 5 – GitHub |
---|
Module 5 – Graded Quiz
Question 1
How is GitHub related to Git?
- GitHub provides distributed version control for Git
- GitHub is an online hosting service for Git repositories
- 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
- Create an Organization
- Read the GitHub Guide
- Verify your email address
Answer: Verify your email address
Question 3
What are commits?
- Pull requests
- Saved changes
- Merges
Answer: Saved changes
Question 4
To sync local changes back to the GitHub repository you run three commands, what is the final command?
- git commit -m
- git push
- git add < files >
Answer: git push
Question 5
Which command can a repository administrator use to allow anonymous downloads from repos?
- “gitweb”
- “git-daemon”
- “git-shell”
Answer: “git-daemon”
Final Exam |
---|
Final Quiz:
Final Exam (Graded)
Question 1
What package manager does Node.js use?
- RPM
- pip
- conda
- npm
Answer: npm
Question 2
Which of the following is NOT a required skill for a front-end developer?
- JavaScript
- CSS
- Java
- HTML
Answer: Java
Question 3
In addition to SQL, which tool can help you access databases?
- npm
- ORM
- pip
- 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?
- Quality Engineer
- Back-end Developer
- Build Engineer
- Front-end Developer
Answer: Front-end Developer
Question 5
Who handles authentication and authorization?
- Back-end Developer
- Front-end Developer
Answer: Back-end Developer
Question 6
Which tag is used to create an ordered list?
- < orderedlist >
- < li >
- < ul >
- < ol >
Answer: < ol >
Question 7
Which tag CANNOT be used as a container for text?
- < body >
- < br >
- < h1 >
- < p >
Answer: < br >
Question 8
What is the < br > tag used for?
- To make text bold
- To change the border
- To add a line break
- To change the text color to brown
Answer: To add a line break
Question 9
Which is the universal selector in CSS?
- *
- @
- ?
- #
Answer: *
Question 10
Which selector helps to select all elements of a document, except paragraphs?
- :except(p)
- :n(p)
- :not(p)
- :!(p)
Answer: :not(p)
Question 11
Which is the default character encoding in HTML5?
- ISO-8859-1
- UTF-8
- UTF-32
- UTF-16
Answer: UTF-8
Question 12
Which of the following is a new form feature added in HTML5?
- < reset >
- < a >
- < submit >
- < 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?
- < details >
- < article >
- < aside >
- < section >
Answer: < aside >
Question 14
Which API in HTML5 allows you to identify the location of the user?
- Web Workers
- Server sent events
- Microdata
- Geolocation
Answer: Geolocation
Question 15
Which type of input control would be most apt for selecting gender in a form?
- radio
- checkbox
- range
- checklist
Answer: radio
Question 16
What is the value of ‘total’ after the following statement is executed?
var total = 10 + 1 +” 3”;
- 14
- 1013
- 113
- 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”);
}
- It would not give any alert as it is an error
- Different
- Same
- None of the above
Answer: Different
Question 18
Which of the following is a valid declaration of an object?
- object a = {name:”John”,age:55}
- obj a = {name:”John”,age:55}
- 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?
- onsave
- onchange
- onhover
- onclick
Answer: onsave
Question 20
Which event is fired when a user clicks on an element in a webpage?
- onclick
- onmouseclick
- onmouseover
- onmousedown
Answer: onclick
Question 21
What is a repository?
- A newspaper
- A data structure that stores documents and source code
- 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.
- True
- False
Answer: True
Question 23
What happens if you make a change on a branch you don’t own?
- GitHub does not allow you to make changes on branches that you don’t own
- GitHub automatically makes a pull request
- 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?
- create, delete, copy
- push, pull, fetch
- open, close, send
Answer: push, pull, fetch
Question 25
Which of the following are common GitHub roles in a project?
- Developer, Backup Administrator, SEO Administrator
- Developer, Integrator, Repository Administrator
- Developer, Manager, Intern
Answer: Developer, Integrator, Repository Administrator