CSCI571 Final Summer2022
CSCI571 Final Summer2022
Attempt 1
Question 1 2 / 2 points
[2 Points] The major difference between different versions of Bootstrap is the number of grid tiers.
a) True
b) False
[2 points] Select all the reasons why hosting a separate .mobi website is not recommended.
Select all that apply.
Question 3 2 / 2 points
What different device sizes they fail to support? Select all that apply.
Question 4 2 / 2 points
It requires redirect
change navigation
Serverless Questions
Question 6 2 / 2 points
[2 points] Select which of the following are true of AWS Lambda? Select all that apply.
NoSQL architecture
[2 points] Which of the following are TRUE of Serverless Architectures? Select all that apply.
Question 8 2 / 2 points
a data store
a FaaS
a REST endpoint
a Container
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&from… 2/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
[2 Points] In the article "Ten Attributes of Serverless Computing Platforms", ten attributes are mentioned.
Select all that apply.
Polyglot platform
REST Endpoints
Portal support
Job scheduling
Dashboard
REST Questions
Question 10 2 / 2 points
[2 Points] Select all ways that security is handled in REST. Select all that apply.
HTTPS
Question 11 2 / 2 points
[2 Points] What is the purpose of URLs in REST design patterns. Select one answer.
Question 12 1 / 1 point
[1 Point] In REST Web Services, it is best practice to use the slash "/" to represent a parent-child
relationship.
A) True
B) False
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&from… 3/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
Question 13 1 / 1 point
[1 Point] In REST Web Services, plain text and CSV format may be used in formatting the responses.
A) True
B) False
Question 14 0 / 1 point
[1 Point] In newer REST Web Services, JSON must be used in the response.
A) True
B) False
Question 15 1 / 1 point
[1 Point] In REST Web Services, except in very specific cases, HTML is not acceptable as a response format.
A) True
B) False
Question 16 2 / 2 points
[2 points] Which of the following are ways to reduce the number of HTTP requests? Select all that
apply.
Combine cookies
Combine scripts
Split images
[2 points] Select the types of files should be compressed to improve web site performance.
Select all that apply.
XML files
Text files
JSONP files
JPG files
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&from… 4/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
PDF files
JQuery Questions
Question 18 0 / 2 points
a) True
b) False
Question 19 2 / 2 points
[2 points] What is the JavaScript object added by jQuery? Select all that apply.
jQuery
Question 20 2 / 2 points
[2 points] What type of selector is the ‘element’ selector, as in the following example:
Basic selector
Question 21 2 / 2 points
[2 points] What is the jQuery code that corresponds to the following DOM code?
kids = $("body").childnodes();
kids = $("body").children();
Question 22 2 / 2 points
[2 points] What type of selector is the ‘:contains()’ selector, as in the following example:
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&from… 5/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
Question 23 2 / 2 points
[2 points] What type of selector is the ‘contains’ selector, as in the following example:
Storage
Editable content
SQL Lite
Question 25 2 / 2 points
[2 points] Which of these are the 2 most popular HTML5 video codecs? Select only 2.
H.264
Ogg
Theora
VP9
[2 Points] Select all techniques used to bypass the same-origin policy. Select all that apply.
JSONP
CORS
VIDEO tag
Browser extensions
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&from… 6/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
XMLHttpRequest
FRAME tag
Browser plugins
Question 27 0 / 2 points
Question 28 2 / 2 points
[2 points] Which of the following are client-side attacks? Select all that apply.
Insufficient Authentication
Clickjacking
Question 29 2 / 2 points
[2 Points] Select what is a JSON array vulnerable to? Select only one correct answer
JavaScript Hijacking
SQL Injection
Search worm
Question 30 2 / 2 points
[2 Points] A DDoS attack occurs when a system is overwhelmed with malicious electronic traffic.
a) True
b) False
Question 32 2 / 2 points
[2 points] What are the parties involved in Web advertising? Select all that apply.
Third-parties
Website owners
Website visitors
Advertisers
Ad network
[2 points] Cookies include a number of components, some required, some optional. What are the
two (2) required components? Select only those two.
Domain
Secure flag
HttpOnly flag
Expiration date
Question 34 2 / 2 points
#display x:
print(x)
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&from… 8/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
Question 35 2 / 2 points
A security feature that lets a web site tell browsers that it should only be communicated with using
HTTPS
A feature used to indicate whether or not a browser should be allowed to render a page in a
<frame> or <iframe>.
[2 Points] Select all statements that are TRUE regarding JSON vs. XML. Select all that apply.
[2 Points] Select all true properties of the DOM. Select all that apply.
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&from… 9/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
Question 38 2 / 2 points
<!DOCTYPE html>
<html>
<head>
<style>
* {
text-align: center;
color: blue;
}
</style>
</head>
<body>
<h1>Hello world!</h1>
<p>It's happening</p>
<p id="para1">Me too!</p>
<p>Not me!</p>
</body>
</html>
Select all the actual behaviors of this code. Select all that apply.
Question 39 2 / 2 points
a) True
b) False
Question 40 2 / 2 points
<!DOCTYPE html>
<html>
<body>
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&fro… 10/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
<h2>Hello World</h2>
<script>
console.log(5 + 6);
</script>
</body>
</html>
Nothing
11
Ajax Questions
Question 41 1 / 1 point
[1 Point] What are solutions to the cross-domain issue for resources such as JavaScript of JSON?
Question 42 0 / 1 point
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&fro… 11/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
Question 43 1 / 1 point
b) AJAX allows for just part of a page to be reloaded with direct access to the server.
Question 44 1 / 1 point
[1 Point] During AJAX open(), what does it mean to pass in <false> to the third parameter and why is it
poor practice?
A) False means the request will be executed synchronously. It is bad because a time-consuming
synchronous request on the main thread will degrade UX.
B) False means the request will be executed asynchronously. It is bad because the flow of the
application gets disrupted and the order of code execution becomes ambiguous
C) False means the request will be executed asynchronously. It is bad because it breaks form
validation
D) False means the request will be executed synchronously. It is bad because a time-consuming
synchronous request on the main thread will crash the browser.
Question 45 1 / 1 point
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&fro… 12/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
D) AJAX can be performed on submission of a form by adding the onsubmit parameter in the form
tag
Question 46 2 / 2 points
[2 points] Of the URLs below, select only the ones that have the same origin as
http://www.ajaxbook.com? Select all that apply.
http://carsearch.ajaxbook.com
https://www.ajaxbook.com
http://www.ajaxbook.com/ajax
http://www.ajaxbook.com:443
Question 47 2 / 2 points
[2 points] Which of the URLs below have the same "origin" as https://mobile.ibm.com? Select all
that apply.
https://mobile.ibm.net
http://mobile.ibm.com
https://mobile.ibm.com/top.html
Question 48 1 / 1 point
[1 Point] The web browser displays a visual progress indicator while the XMLHttpRequest is
being processed.
True
False
Question 49 1 / 1 point
[1 Point] Netscape 7 and Mozilla Firefox 1.0 were the first browsers to "clone" XMLHttpRequest
functionality from Internet Explorer.
A) True
B) False
Question 50 1 / 1 point
[1 Point] The fetch() API includes an option that can be set to any of the REST HTTP Methods.
True
False
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&fro… 13/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
Question 51 1 / 1 point
False
Question 52 1 / 1 point
[1 Point} To request CORS, with XMLHttpRequest, the client JavaScript must issue an Origin header.
A) True
B) False
HTML5 Questions
Question 53 2 / 2 points
app.listen(80, function () {
console.log('CORS-enabled web server listening on port 80')
});
cors.use(cors());
app.send(cors());
app.load(cors());
app.use(cors());
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&fro… 14/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
Question 54 2 / 2 points
[2 points] Which of the following are true of Node.js? Select all that apply.
Question 55 2 / 2 points
[2 points] Select which of the following are true of Angular (version 8+). Select all that apply.
Question 56 2 / 2 points
Angular
React
Question 57 2 / 2 points
[2 points] Select which of the following are true of TypeScript. Select all that apply.
Done
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&fro… 15/16
6/29/22, 12:12 AM : Quiz Submissions - CS571 Summer 2022: Web Technologies Exam 2 - CSCI571 - 20222 - Web Technologies - USC Viterbi Sc…
https://courses.uscden.net/d2l/lms/quizzing/user/quiz_submissions_attempt.d2l?isprv=&qi=49199&ai=143148&isInPopup=0&cfql=0&fromQB=0&fro… 16/16