1. Home
  2. Explore
  3. Computer Science
  4. Web Application Security Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Web Application Security Basics

  • 26Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Web Application Fundamentals
The three core technologies used to build web applications are HTML, CSS, and
.

26 questions

  1. 1
    The three core technologies used to build web applications are HTML, CSS, and
    _____
    .
    Hint

    This language enables dynamic behavior in the browser.

    Answer

    JavaScript

  2. 2
    A 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

  3. 3
    An 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

  4. 4
    When a web server successfully processes a request, it returns a status code of
    _____
    .
    Hint

    This three-digit number indicates success.

    Answer

    200

  5. 5
    The 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

  6. 6
    In HTML, elements are defined using keywords enclosed in angle brackets called
    _____
    .
    Hint

    They come in pairs like

    and
    .

    Answer

    tags

  7. 7
    Attributes like id, name, and style are used to further
    _____
    an HTML element.
    Hint

    They provide additional details about an element's properties.

    Answer

    refine

  8. 8
    CSS (Cascading Style Sheets) is used to define how HTML elements are
    _____
    .
    Hint

    It controls colors, fonts, layout, and overall visual presentation.

    Answer

    rendered

  9. 9
    JavaScript code that runs in the browser is typically enclosed in an HTML
    _____
    element.
    Hint

    This element has an opening and closing tag.

    Answer

    script

  10. 10
    JavaScript 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

  11. 11
    The 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

  12. 12
    An origin consists of three parts: the scheme, the hostname, and the
    _____
    .
    Hint

    This number follows the hostname, separated by a colon.

    Answer

    port

  13. 13
    Two URLs with the same hostname but different ports are considered
    _____
    origins.
    Hint

    The origin includes the port number.

    Answer

    different

  14. 14
    The same-origin policy prevents JavaScript from accessing the content of another origin's
    _____
    .
    Hint

    This HTML element embeds another page.

    Answer

    iframe

  15. 15
    An 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

  16. 16
    Clickjacking 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

  17. 17
    HTTP 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

  18. 18
    The 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

  19. 19
    When 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

  20. 20
    The cookie attribute that prevents JavaScript code from accessing the cookie is
    _____
    .
    Hint

    This flag restricts access to HTTP-only.

    Answer

    HttpOnly

  21. 21
    The 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

  22. 22
    The 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

  23. 23
    The HTTP response header that instructs the browser to always use HTTPS for future requests is
    _____
    .
    Hint

    Its abbreviation is HSTS.

    Answer

    Strict-Transport-Security

  24. 24
    A free certificate authority that provides SSL/TLS certificates is
    _____
    .
    Hint

    It is a nonprofit that offers free certificates.

    Answer

    Let's Encrypt

  25. 25
    In the browser developer tools, the tab that shows HTTP requests and responses is called the
    _____
    tab.
    Hint

    It displays all network activity.

    Answer

    Network

  26. 26
    To examine the source HTML of a page, you can right-click and select
    _____
    .
    Hint

    This option opens the developer tools.

    Answer

    Inspect

1 of 26
Question 1 of 26

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent