Single Page Web Applications with AngularJS Week 1 Quiz
Course Name: Single Page Web Applications with AngularJS
Course Link: Single Page Web Applications with AngularJS
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Quiz 1
Question 1
If I miss an assignment deadline or fail an assignment, I fail the course.
True
False
Answer: False
Question 2
This is a completely self-paced course. The deadlines don’t matter at all!
True
False
Answer: False
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Question 3
I can go through the course faster and complete it faster!
True
False
Answer: True
Question 4
Where can you get access to the example source code used in the course and the Lecture Slide PDFs?
You CAN NOT have it! It’s reserved only for special people. VERY special people! You can ask and beg on the discussion forums, but we still won’t give it to you. 🙂
The link to the GitHub.com repository, which contains the example code used in this course, Lecture Slide PDFs, as well as assignment starter code is given to you in the first module under the title “ALL of the EXAMPLE SOURCE CODE for this Course”.
Answer: The link to the GitHub.com repository, which contains the example code used in this course, Lecture Slide PDFs, as well as assignment starter code is given to you in the first module under the title “ALL of the EXAMPLE SOURCE CODE for this Course”.
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Question 5
This course covers AngularJS version 2
True
False
Answer: False
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Quiz 2
Question 1
In order to install Browser Sync, what must be installed first?
Javascript
Google Chrome Developer Tools
Ruby
NodeJs
Java
Answer: NodeJs
Question 2
Using GitHub.com in this course is necessary because
It’s the best thing EVER!
It’s good to use Git and GitHub uses Git.
It’s got the word Git in its name! G i t Hub. Git it? 😆
Besides being a great Git service, it has the option to turn the repository into a web site, so we can use it to submit solutions to the assignments in this course.
Answer: Besides being a great Git service, it has the option to turn the repository into a web site, so we can use it to submit solutions to the assignments in this course.
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Quiz 3
Question 1
Choose all the options that describe good code characteristics (ones that make the code less complex)
Ability to find relevant code quickly
Ability to update functionality without a re-write of large portions of the code
The same code is not written in multiple places in your code
Shortest possible code (the less characters used to program something the better)
Answer:
Ability to find relevant code quickly
Ability to update functionality without a re-write of large portions of the code
The same code is not written in multiple places in your code
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Quiz 4
Question 1
Match the following description to the correct term:
“If you change how Component A is implementing a certain API, you will have to change how Component B uses that API.”
Example of High Cohesion
Example of lack of High Cohesion
Example of Tight Coupling (lack of Loose Coupling)
Example of Loose Coupling
Answer: Example of Tight Coupling (lack of Loose Coupling)
Question 2
Match the following description to the correct term:
“Component A has 10 methods.”
Example of Loose Coupling
Example of Tight Coupling
Example of Low Cohesion
Example of High Cohesion
Need more information
Answer: Need more information
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Quiz 5
Question 1
MVVM Design Pattern has a Model, View, ViewModel and what other component?
Business Logic Service
Raw Data
Declarative Binder
Whatever component
Answer: Declarative Binder
Question 2
ViewModel does not hold data, only the Model does.
True
False
Answer: False
Question 3
The View never directly changes any data
Not the Model’s data, but it does change the ViewModel’s data
True
False
Answer: True
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Quiz 6
Question 1
In AngularJs, Controller serves the function of ViewModel
True
False
Answer: True
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Quiz 7
Question 1
In the following code snippet, (assuming MyController is bound to some HTML element in our template), ‘x’ can now be referenced in our HTML template.
angular.module('MyApp', [ ])
.controller('MyController', function () {
var x = "hello";
});
Yes, it can be since it’s declared inside of our controller
No, it can’t be. It’s just a local variable and local variables aren’t automatically exposed to the view.
Answer: No, it can’t be. It’s just a local variable and local variables aren’t automatically exposed to the view.
Question 2
What is an IIFE?
International Institute of Fossil Emissions.
Immediately Invoked Function Expression
Answer: Immediately Invoked Function Expression
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Quiz 8
Question 1
The AngularJs service that’s responsible for Dependency Injection is called
$injector
$annotator
Answer: $injector
Question 2
In the code snippet below, which of the following variables holds a function value?
var x1 = function () {
// do something, PLEASE!
return "Blah!";
};
var x2 = x1();
function x3(arg) {
return arg; // Ha-ha! That's all I do!
}
var x4 = x3(x1);
var x5 = x3(x2);
var x6 = x3(x1());
x1
x2
x3
x4
x5
x6
Answer: x1, x3, x4
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
Quiz 9
Question 1
True or False: these 2 code snippets show equivalent ways of protecting dependency injection from minification:
// Snippet 1|
angular.module('MyApp', [ ])
.controller('MyController', ['$scope', function ($scope) {
}]);
// Snippet 2
angular.module('MyApp', [ ])
.controller('MyController', MyController);
MyController.$inject = ['$scope'];
function MyController($scope) {
}
True
False
Answer: True
These are Single Page Web Applications with AngularJS Week 1 Quiz Answers
More Weeks of the course: Click Here
More Coursera courses: https://progiez.com/coursera