• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 61 pages
Exam (elaborations)

Cs4288 Leach Exam 1 Comprehensive Prep | Computer Science Study Guide, Practice Questions And Correct Answers

Document preview thumbnail
Preview 4 out of 61 pages

Prepare for CS4288 Leach Exam 1 with comprehensive practice questions and correct answers designed to reinforce key computer science concepts and exam-focused problem-solving skills. This resource provides targeted preparation for reviewing important course material, understanding core concepts, applying relevant methods, and working through practice questions similar to those encountered in an exam setting. Use it to assess your knowledge, identify areas requiring additional review, strengthen understanding, and build confidence for the CS4288 Exam 1.

Content preview

CS 4288: WEB SYSTEMS
(Section 02 — Leach)
EXAM 1 COMPREHENSIVE PREP


Practice Questions · Correct Answers · Rationales

WEB BASICS · SESSIONS · ENCRYPTION · SECURITY
REST APIs · JAVASCRIPT


Aligned with schedule through JavaScript 2 (Exam 1)

HIGH-QUALITY · EXAM-READY

,CS 4288 WEB SYSTEMS (LEACH) | EXAM 1 PREP Comprehensive Practice



PRACTICE SET 1
1. HTTP is a stateless request-response protocol at the application layer.
A. True
B. False
C. Only stateful
D. Only UDP
Correct Answer: A
Rationale:
Cookies/sessions add application state.
Typically over TCP.

2. Default ports: HTTP 80, HTTPS 443.
A. True
B. False
C. Reverse
D. Both 8080
Correct Answer: A
Rationale:
Well-known ports.
Shown in URL when non-default.

3. GET should be safe and idempotent.
A. True
B. False
C. Only POST is safe
D. GET always mutates
Correct Answer: A
Rationale:
Retrieve resources.
No intended side effects.

4. POST is commonly used to create resources and submit forms.
A. True
B. False
C. Only for deletes
D. Always idempotent
Correct Answer: A
Rationale:
Not generally idempotent.
Contrast with PUT.




Page 2

,CS 4288 WEB SYSTEMS (LEACH) | EXAM 1 PREP Comprehensive Practice



PRACTICE SET 2
5. 200 OK indicates success; 404 Not Found; 500 server error.
A. True
B. False
C. 404 is success
D. 200 is redirect
Correct Answer: A
Rationale:
2xx success, 4xx client, 5xx server.
301/302 redirects.

6. Cookies travel on later requests via the Cookie header.
A. True
B. False
C. Only Set-Cookie forever
D. Only Authorization
Correct Answer: A
Rationale:
Server sets with Set-Cookie.
Scope: Domain, Path, flags.

7. SameSite helps mitigate CSRF.
A. True
B. False
C. Only XSS
D. Only SQLi
Correct Answer: A
Rationale:
Controls cross-site cookie sending.
Use with CSRF tokens.

8. HttpOnly prevents document.cookie access to the cookie.
A. True
B. False
C. Prevents all network send
D. Forces HTTP
Correct Answer: A
Rationale:
XSS mitigation.
Still sent on HTTP requests.




Page 3

, CS 4288 WEB SYSTEMS (LEACH) | EXAM 1 PREP Comprehensive Practice



PRACTICE SET 3
9. Server sessions store data server-side; client holds a session ID.
A. True
B. False
C. All data only in URL
D. No server state ever
Correct Answer: A
Rationale:
More control than pure client storage.
Fixation: rotate ID at login.

10. Secure cookie flag restricts cookie to HTTPS.
A. True
B. False
C. Means signed
D. Means HttpOnly
Correct Answer: A
Rationale:
Combine Secure+HttpOnly+SameSite.
Production HTTPS required.

11. Symmetric crypto: same key encrypts and decrypts (e.g., AES).
A. True
B. False
C. Only public keys
D. Hash only
Correct Answer: A
Rationale:
Fast bulk encryption.
Key distribution challenge.

12. Asymmetric crypto: public/private key pair (RSA, ECC).
A. True
B. False
C. Same key both ways only
D. No math
Correct Answer: A
Rationale:
Signatures and key exchange.
TLS uses both symmetric and asymmetric.




Page 4

Document information

Uploaded on
September 29, 2026
Number of pages
61
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
DrExamVault
4.5
(12)
Sold
63
Followers
1
Items
3979
Last sold
19 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions