程序代写案例-INFO30005 2022
时间:2022-07-12
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 1/15
Practice Exam (INFO30005 2022 s1)
Started: Jul 12 at 13:59
Quiz Instructions
This practice exam is designed to help students become familiar with how a timed Canvas quiz exam
works, and to indicate the question types that will be on the INFO30005 exam (written text, coding,
multiple-choice).
Unlike the real exam, you may take this practice exam any time, and do it multiple times. The real
exam:
will only be available at your scheduled exam time
can only be done once
will have different questions
We recommend that you take this practice exam using the same hardware/software platform with
which you plan to take the real exam - this will help you become accustomed to the user-interface.
Things to note about the user-interface of the quiz:
a timer at the top-right of the page shows how much time you have left
a list of questions at the top-right shows which ones you have already answered
your answers are auto-saved
when you have finished the quiz, you need to press the Submit Quiz button at the bottom-right of
the page

2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 2/15
Section A. CLIENT-SIDE
2 ptsQuestion 1
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 3/15
p 0 words
Describe two advantages of keeping CSS stylesheets in separate files rather than
inside the HTML file they are styling.

2 ptsQuestion 2
The METHOD and ACTION properties of a form determine how it will be
processed. Explain what each of them does.
Edit View Insert Format Tools Table
12pt Paragraph
Edit View Insert Format Tools Table
12pt Paragraph
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 4/15
p 0 words
2 ptsQuestion 3
p 0 words
Explain the difference between a class and an id in HTML.

Edit View Insert Format Tools Table
12pt Paragraph
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 5/15
Figure 1: HTML code
2 ptsQuestion 4
ul
nav > ul
header.ul
Figure 1 shows the HTML for a web page we are building. We want to apply a
style to the list in the navigation menu, but not lists that are elsewhere in the page.
Which of these selectors should we use?
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 6/15
2 ptsQuestion 5
Points deducted from a project because it is broken.
A screen size where the CSS styles will change.
A line of code in Node where the debugger will pause the app.
What is a "breakpoint" in Responsive Design?
Section B. SERVER-SIDE
2 ptsQuestion 6
p 0 words
What is server-side rendering?

Edit View Insert Format Tools Table
12pt Paragraph
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 7/15
2 ptsQuestion 7
p 0 words
What do the "request" and "response" objects in Express represent?

2 ptsQuestion 8
Name one advantage, and one disadvantage, of using a schema-less database
like MongoDB.
Edit View Insert Format Tools Table
12pt Paragraph
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 8/15
2 ptsQuestion 9
Write a controller function called getAllAuthors which returns all the authors in an
Authors collection stored in MongoDB.
You may assume that the authors model has already been imported using the
following line:
const Authors = require('../models/Authors') 
3 ptsQuestion 10
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 9/15
Assume that an AuthorRouter.js file already exists. In this file, write the code for a
new route which uses the controller function you wrote in the previous question to
get all the Authors.
3 ptsQuestion 11
Complete the following displayData.hbs file. You receive an array called data from
a get request.
Each data item has a user with the fields: first_name, last_name and id.
You need to display the all the users full names (< first name >, < last name >) in
an unordered list.

Displaying all data



    {{!--TODO: Display data --}}

2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 10/15
21 ptsQuestion 12
A ride-share company has many customers. Over time, each customer buys zero
or more rides. About each customer we store their name and phone number.
About each ride we store the from and to locations (expressed as latitude-
longitude pairs), the time at which the journey began, and the cost of the journey.
a. Create a suitable data model for storing this data in a MongoDB database. (5
marks)
b. Write a /models/customer.js file which creates the MongoDB schema
using Mongoose. (8 marks)
c. Describe two alternatives to the model that you proposed above. Discuss the
trade-offs between these alternatives and your current model. (8 marks)
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 11/15
14 ptsQuestion 13
Live updating
a. What is live updating? (2 marks)
b. Describe 3 ways of implementing live updating. (6 marks)
c. Discuss when you would and would not use each approach. (6 marks)
4 ptsQuestion 14
Discuss two advantages and two disadvantages of hosting a web application in
the Cloud?
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 12/15
Section C. ADVANCED TOPICS
2 ptsQuestion 15
What is the purpose of Gitʼs staging area?
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 13/15
2 ptsQuestion 16
To tell Git which files it should not track.
To tell Git to ignore syntax errors in this app.
To tell Node not to respond to HTTP GIT requests.
What is the purpose of a .gitignore file?
2 ptsQuestion 17
Why are both GET and POST routes involved in handling user logins?
2 ptsQuestion 18
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 14/15
username and password
password and role
passport number and nationality
Using the Passport local strategy requires maintaining data about our users which
must include at least:
2 ptsQuestion 19
Explain how using HTTPS protects against eavesdropping attacks.
2 ptsQuestion 20
The web page we are building contains three main areas of content. Because we
want to style these differently we are containing each of them within a separate
element. Why would our page be more accessible if we used semantic
structural elements (for example
and
) instead of
?
2022/7/12 14:00 Quiz: Practice Exam (INFO30005 2022 s1)
https://canvas.lms.unimelb.edu.au/courses/128408/quizzes/159345/take 15/15
No new data to save. Last checked at 14:00 Submit Quiz


essay、essay代写