Web Application Security Basics
- 26Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
26 questions
- 1The three core technologies used to build web applications are HTML, CSS, and_____.
Hint
This language enables dynamic behavior in the browser.
Answer
JavaScript
- 2A user agent, most commonly a browser, acts on behalf of the user and communicates using the_____protocol.
Hint
This protocol's name describes how hypertext is transferred.
Answer
HTTP
- 3An HTTP request includes a verb, a URL, the protocol, and additional information called_____.
Hint
These are key-value pairs that provide metadata about the request.
Answer
headers
- 4When a web server successfully processes a request, it returns a status code of_____.
Hint
This three-digit number indicates success.
Answer
200
- 5The response header that tells the browser the type of content in the body is called_____.
Hint
It specifies whether the content is HTML, JavaScript, an image, etc.
Answer
Content-Type
- 6In HTML, elements are defined using keywords enclosed in angle brackets called_____.
Hint
They come in pairs like
and.Answer
tags
- 7Attributes like_____
id,name, andstyleare used to furtheran HTML element.Hint
They provide additional details about an element's properties.
Answer
refine
- 8CSS (Cascading Style Sheets) is used to define how HTML elements are_____.
Hint
It controls colors, fonts, layout, and overall visual presentation.
Answer
rendered
- 9JavaScript code that runs in the browser is typically enclosed in an HTML_____element.
Hint
This element has an opening and closing tag.
Answer
script
- 10JavaScript interacts with the web page through the_____(abbreviated as DOM).
Hint
This interface allows scripts to read and modify the content of an HTML document.
Answer
Document Object Model
- 11The security policy that restricts JavaScript from accessing resources from a different origin is called the_____.
Hint
It prevents cross-origin data theft.
Answer
same-origin policy
- 12An origin consists of three parts: the scheme, the hostname, and the_____.
Hint
This number follows the hostname, separated by a colon.
Answer
port
- 13Two URLs with the same hostname but different ports are considered_____origins.
Hint
The origin includes the port number.
Answer
different
- 14The same-origin policy prevents JavaScript from accessing the content of another origin's_____.
Hint
This HTML element embeds another page.
Answer
iframe
- 15An attacker can prevent their website from being displayed in an iframe by using the_____response header.
Hint
This HTTP header can be set to DENY or SAMEORIGIN.
Answer
X-Frame-Options
- 16Clickjacking is an attack that tricks users into clicking on hidden elements by layering multiple_____on top of each other.
Hint
These HTML elements allow nesting of web pages.
Answer
iframes
- 17HTTP is a stateless protocol, so_____are used to maintain session state between requests.
Hint
They are small pieces of data stored by the browser.
Answer
cookies
- 18The server instructs the browser to store a cookie by including a_____header in the HTTP response.
Hint
This header contains the cookie name, value, and attributes.
Answer
Set-Cookie
- 19When a browser makes a subsequent request to the same domain, it automatically includes the stored cookie in the_____header.
Hint
This request header carries the cookie data.
Answer
Cookie
- 20The cookie attribute that prevents JavaScript code from accessing the cookie is_____.
Hint
This flag restricts access to HTTP-only.
Answer
HttpOnly
- 21The cookie attribute that ensures the cookie is only sent over encrypted HTTPS connections is_____.
Hint
This flag prevents sending the cookie over unencrypted HTTP.
Answer
Secure
- 22The cookie attribute that controls whether the cookie is sent in cross-site requests is_____.
Hint
It can be set to Strict, Lax, or None.
Answer
SameSite
- 23The HTTP response header that instructs the browser to always use HTTPS for future requests is_____.
Hint
Its abbreviation is HSTS.
Answer
Strict-Transport-Security
- 24A free certificate authority that provides SSL/TLS certificates is_____.
Hint
It is a nonprofit that offers free certificates.
Answer
Let's Encrypt
- 25In the browser developer tools, the tab that shows HTTP requests and responses is called the_____tab.
Hint
It displays all network activity.
Answer
Network
- 26To examine the source HTML of a page, you can right-click and select_____.
Hint
This option opens the developer tools.
Answer
Inspect

Ask anything
We've read this whole study set, so questions about it get the best answers.