0% found this document useful (0 votes)
8 views15 pages

Web Server, URL, and MIME Quiz

URL related One words

Uploaded by

sarah web
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views15 pages

Web Server, URL, and MIME Quiz

URL related One words

Uploaded by

sarah web
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

QUIZ

Web Servers

1. What is the primary function of a web server?


A) Edit images online
B) Host and deliver web pages to clients
C) Scan websites for malware
D) Manage email accounts
✅Answer: B

2. Which of the following is NOT a web server software?


A) Apache
B) Nginx
C) MySQL
D) Microsoft IIS
✅Answer: C

3. What port does HTTP typically use?


A) 80
B) 21
C) 443
D) 8080
✅Answer: A

4. Which of the following is a benefit of using Nginx over Apache?


A) Limited to static content only
B) Higher memory usage
C) Better performance under high load
D) Requires Windows only
✅Answer: C
5. What does the acronym “IIS” stand for in Microsoft IIS?
A) Internet Information Server
B) Internal Internet System
C) Interlinked Internet Services
D) Information Integration System
✅Answer: A

6. What file is typically the default homepage for a web server?


A) [Link]
B) [Link]
C) [Link]
D) [Link]
✅Answer: A

7. What does SSL/TLS add to web servers?


A) Compression
B) Style sheets
C) Encryption for secure communication
D) Extra JavaScript features
✅Answer: C

8. Which web server is known for using an event-driven architecture?


A) Apache
B) IIS
C) Nginx
D) Tomcat
✅Answer: C
9. What is the purpose of a reverse proxy in a web server?
A) Prevent DNS leaks
B) Speed up typing URLs
C) Forward client requests to another server
D) Translate HTML to JSON
✅Answer: C

10. Which of these web servers is written in Java and often used for
Java Servlets?
A) Apache
B) Tomcat
C) Nginx
D) Lighttpd
✅Answer: B

11. What is the default port number for HTTPS?


A) 22
B) 25
C) 443
D) 110
✅Answer: C

12. Which of the following is an open-source web server developed by


the Apache Software Foundation?
A) Nginx
B) Apache HTTP Server
C) Tomcat
D) WebLogic
✅Answer: B
13. What kind of files are typically handled by web servers?
A) PDF and DOC only
B) Only images
C) HTML, CSS, JS, and media files
D) Excel and PowerPoint only
✅Answer: C

14. What is virtual hosting in a web server?


A) Hosting on a virtual machine
B) Hosting multiple websites on one server
C) Cloud-based hosting only
D) Using Docker to host websites
✅Answer: B

15. Which company develops Nginx?


A) Google
B) Microsoft
C) Nginx, Inc.
D) Oracle
✅Answer: C

16. What does the .htaccess file do on an Apache server?


A) Controls server uptime
B) Manages database connections
C) Allows per-directory configuration
D) Defines JavaScript behavior
✅Answer: C

17. What type of server is Tomcat mainly used as?


A) Email server
B) Database server
C) Application server for Java Servlets
D) Proxy server
✅Answer: C

18. What is meant by server-side scripting?


A) Code that runs on the client’s browser
B) Scripts run on the web server to generate dynamic content
C) HTML only websites
D) Frontend animations
✅Answer: B

19. Which web server supports both HTTP and HTTP/2 protocols?
A) IIS
B) Nginx
C) Apache
D) All of the above
✅Answer: D

20. Which of these is used to monitor and analyze web server traffic?
A) Adobe XD
B) Google Analytics
C) MS Paint
D) Wi-Fi router
✅Answer: B
URL’S

1. What does URL stand for?


A) Uniform Resource Link
B) Uniform Reference Locator
C) Universal Resource Locator
D) Uniform Resource Locator
✅Answer: D

2. Which of the following is a valid example of a URL?


A) [Link]
B) C:/Users/Folder/File
C) example_com://file
D) [Link]/example
✅Answer: A

3. In a URL, what part typically comes right after http:// or [Link]


A) File name
B) IP address
C) Domain name or IP
D) Port number
✅Answer: C

4. What is the default port used when a URL uses [Link]


A) 21
B) 443
C) 80
D) 22
✅Answer: B
5. Which of the following is NOT a valid URL scheme?
A) ftp://
B) file://
C) [Link]
D) jpg://
✅Answer: D

6. What part of this URL is the protocol:


[Link]
A) www
B) [Link]
C) /home
D) https
✅Answer: D

7. In the URL [Link] what is 8080?


A) Path
B) IP Address
C) Port number
D) Protocol
✅Answer: C

8. What does the query string in a URL usually start with?


A) #
B) @
C) ?
D) $
✅Answer: C
9. What is the purpose of a fragment identifier in a URL? (e.g.,
#section2)
A) Defines file type
B) Points to a location within a web page
C) Encrypts the URL
D) Opens a new browser tab
✅Answer: B

10. Which of the following is the top-level domain (TLD) in the URL
[Link]
A) www
B) example
C) .org
D) https
✅Answer: C

11. What is the path in the URL


[Link]
A) https
B) [Link]
C) /blog/[Link]
D) [Link]
✅Answer: C

12. Which component of a URL is optional?


A) Protocol
B) Domain
C) Port
D) Path
✅Answer: C
13. In the URL [Link] what is
q=quiz called?
A) Fragment
B) Path
C) Query parameter
D) Domain
✅Answer: C

14. What symbol separates the base URL from the query string?
A) /
B) :
C) ?
D) &
✅Answer: C

15. Which of the following URLs uses a secure connection?


A) [Link]
B) [Link]
C) [Link]
D) [Link]
✅Answer: C

16. What is the difference between a relative and an absolute URL?


A) Relative URLs include protocol
B) Absolute URLs are used only on intranets
C) Absolute URLs include protocol and domain; relative URLs do not
D) There is no difference
✅Answer: C
17. What is %20 in a URL used for?
A) End of URL
B) Denotes a forward slash
C) Space character
D) Tab character
✅Answer: C

18. Which character is used to separate multiple parameters in a URL


query string?
A) &
B) %
C) #
D) $
✅Answer: A

19. What is the domain in [Link]


A) portal
B) .edu
C) [Link]
D) /home
✅Answer: C

20. What does the # symbol in a URL refer to?


A) A comment
B) An anchor or page section
C) The end of a query
D) A security token
✅Answer: B
MIME

1. What does MIME stand for?


A) Mail Internet Message Exchange
B) Multipurpose Internet Mail Extensions
C) Message Integration Management Extension
D) Mail Interface for Multimedia Encoding
✅Answer: B

2. What is the purpose of MIME in web communication?


A) Encrypt email messages
B) Send data over FTP
C) Specify the nature and format of a file
D) Display HTML correctly
✅Answer: C

3. Which of the following is a valid MIME type for plain text files?
A) text/plain
B) application/plain
C) data/text
D) file/txt
✅Answer: A

4. What MIME type is used for HTML files?


A) application/html
B) text/html
C) text/xhtml
D) file/html
✅Answer: B
5. Which of the following MIME types represents a JPEG image?
A) image/jpg
B) image/jpeg
C) application/jpeg
D) image/png
✅Answer: B

6. In HTTP responses, where is the MIME type specified?


A) URL bar
B) Request body
C) Content-Type header
D) Cookie header
✅Answer: C

7. What MIME type is typically used for JSON data?


A) application/json
B) text/json
C) application/javascript
D) text/data
✅Answer: A

8. What does the MIME type multipart/form-data commonly relate


to?
A) Video streaming
B) Sending emails
C) File uploads via forms
D) Rendering images
✅Answer: C
9. Which MIME type should be used for downloading a PDF file?
A) text/pdf
B) application/pdf
C) file/pdf
D) document/pdf
✅Answer: B

10. What MIME type is associated with CSS files?


A) application/css
B) text/css
C) style/css
D) file/css
✅Answer: B

11. What MIME type is used for sending Excel spreadsheet files
(.xlsx)?
A) text/xlsx
B) application/[Link]-excel
C) application/[Link]
D) file/excel
✅Answer: C

12. What MIME type is used for JavaScript files?


A) application/javascript
B) text/js
C) script/javascript
D) js/application
✅Answer: A
13. Which of the following MIME types represents a PNG image?
A) image/jpeg
B) application/png
C) image/png
D) text/png
✅Answer: C

14. What is the MIME type for MP4 video files?


A) video/mpeg
B) application/mp4
C) video/mp4
D) media/mp4
✅Answer: C

15. Which MIME type is used for form submissions using POST
method (standard form)?
A) text/form
B) multipart/form-data
C) application/x-form-url
D) application/x-www-form-urlencoded
✅Answer: D

16. What does the multipart/alternative MIME type indicate?


A) It is used only in web apps
B) It allows multiple alternative versions of the same content
C) It’s used for CSS styles
D) It encrypts all MIME content
✅Answer: B
17. What MIME type would you use to deliver audio content in MP3
format?
A) audio/mp3
B) audio/mpeg
C) application/mp3
D) sound/mp3
✅Answer: B

18. MIME types are most commonly used in which two protocols?
A) HTTP and FTP
B) HTTP and SMTP
C) FTP and SSH
D) SMTP and SNMP
✅Answer: B

19. Which of the following best describes a MIME type?


A) A script that encodes multimedia
B) A label used to identify the format of a file
C) A tool to compress data
D) A browser security header
✅Answer: B

20. What MIME type is typically used for XML documents?


A) text/xml
B) application/xml
C) Either A or B
D) None of the above
✅Answer: C

You might also like