Crash Course Quiz: Common Error Codes and Messages (Easy) Quiz

  1. Understanding 404

    When a web request to /images/logo.png returns HTTP 404, what does this status indicate about the requested resource?

    1. The requested resource was not found on the server
    2. The server forbids access to the resource
    3. The request was successful and returned content
    4. The HTTP method used is not allowed for this resource
    5. The resource has moved permanently to a new URL
  2. Spot the SyntaxError

    If you type print(2+3 without the closing parenthesis in an interpreter, which common error name is most likely shown?

    1. SyntaxError
    2. RuntimeErro
    3. TypeError
    4. TimeError
    5. Logic Fault
  3. Null Reference Access

    Given code that calls user.name.length when user is null, which common error name is typically raised in many languages?

    1. NullPointerException
    2. DivideByZeroError
    3. FileNotFoundError
    4. OverflawError
    5. KeyErro
  4. Out-of-Range Index

    For the code nums = [10, 20, 30]; print(nums[5]), which message best matches the error that would commonly occur?

    1. Index out of range
    2. KeyError
    3. Segmantation fault
    4. Permission denied
    5. Timeout
  5. File Permission Problem

    When a program tries to write to /system/config.cfg without the necessary privileges, which message is most likely returned?

    1. Permission denied
    2. Authentication succeeded
    3. File contents corrupted
    4. Path variable unset
    5. Permision dinied
  6. Missing File Path

    If open('/path/to/missing.txt') fails because the file does not exist, which message is commonly shown?

    1. No such file or directory
    2. Read-only file system
    3. Disk quota exceeded
    4. Network unreachable
    5. Fil not fount
  7. Server-Side Failure

    When an API POST request returns the status code 500, which standard status phrase best describes the problem?

    1. 500 Internal Server Error
    2. 500 Interal Server Error
    3. 404 Not Found
    4. 401 Unauthorized
    5. 200 OK
  8. Network Delay

    If a network request hangs for too long and then aborts, which message most likely appears?

    1. Request timed out
    2. Address already in use
    3. Name resolved
    4. Handshake complete
    5. Packet overflow
  9. Type Mismatch

    When running result = 'Score: ' + 42 causes an error about incompatible operands, which common error name is typically reported?

    1. TypeError
    2. NameError
    3. ValueError
    4. ReferenceEror
    5. OverflowError
  10. Invalid Memory Access

    In a low-level language, dereferencing a dangling pointer often triggers which common error message?

    1. Segmentation fault
    2. Stack trace generated
    3. Garbage collection started
    4. IndexError
    5. Segmantation falt