stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
W10 Quiz Flashcards | StudBud
Explore
/
W10 Quiz
W10 Quiz
22 terms
·
StudBud Administration
·
374 plays
Imported from external platform
Flashcards
22 cards
F
Practice quiz
P
Host live
L
Questions
22
Answers
1
In order to access a request’s body data, the request must first pass through which middleware?
express.Router()
express.json()
express.static()
express.parse()
2
Using the res.json() method will set the Content-Type header to JSON on the:
Query
Request
Response
Server
3
Express routes should be ordered from specific to generic
True
False
4
How many JOIN statements can you have in one query?
1
2
Any number
No more than 5
5
Who is pictured? (one of Jojo's favorite historical figures)
Dmitri
Harry Potter
The Boy Who Lived
Composer of a famous 22-measure ostinato theme
6
What is Express?
A tool for testing requests
A fast train
A backend framework to develop servers and APIs
A relational database management system
7
Given a table “puppies” with 10 records, what would the statement "DELETE FROM puppies;" do?
Delete all puppies
Error out
Delete the first puppy record
Delete the most recent puppy
8
A Many to Many relationship does NOT need a JOIN table
True
False
9
Which SQL keyword is used to sort the result-set?
ORDER BY
SORT
ORDER
SORT BY
10
How many arguments does an error handling middleware take in?
4
5
3
2
11
True or False? This will SUCCESSFULLY insert data
False
True
12
When defining a column on a table, which piece of information is listed after the column name?
Data Type
Nothing
References
Constraints
13
Which keyword would you use to restrict the maximum number of results of a query to a specific number?
GROUP BY
ORDER BY
WHERE
LIMIT
14
What's one way to define a foreign key when creating a table? (SQL)
user_id DEFINE FOREIGN_KEY
user_id INTEGER REFERENCES users:id
user_id INTEGER REFERENCES users (id)
user_id INTEGER = FOREIGN_KEY
15
Which of these is NOT a valid SQL query operator?
BETWEEN
IN
LIKE
MATCHES
16
Which SQL keyword is used to assign a new value when updating a record?
EDIT
ALTER
OFFSET
SET
17
Franco once had as a pet which speedy dog breed?
Afghan Hound
Italian Greyhound
Whippet
Border Collie
18
By default, query results are ordered by their primary key in DESCENDING order (highest to lowest)
True
False
19
The next() function is required to send a request from one middleware to another
True
False
20
What does RDBMS stand for?
Relational Database Maintenance Server
Relationship Decisions Based Mainly on Sitcoms
Relating Data By Multiple Systems
Relational Database Management System
21
Which of these did Anthony NOT have as a pet growing up?
Rabbit
Hamster
Bird
Gecko
22
Given an endpoint with a path of “/users/:id”, how would you retrieve the id value?
req.params.id
req.query.id
req.body.id
req.params.userId