1. What does HTTP stand for?
a) Hyper Text Transmission Protocol
b) High Transfer Text Protocol
c) Hyper Text Transfer Protocol
d) Hyperlink Transmission Protocol
Answer: c) Hyper Text Transfer Protocol
2. Which port does HTTPS use by default?
a) 80
b) 8080
c) 443
d) 21
Answer: c) 443
3. What is the main difference between HTTP and HTTPS?
a) HTTPS is faster than HTTP
b) HTTPS encrypts data, while HTTP does not
c) HTTP is used for secure transactions
d) HTTP and HTTPS are the same
Answer: b) HTTPS encrypts data, while HTTP does not
4. Which protocol does HTTPS use for encryption?
a) FTP
b) SSH
c) TLS/SSL
d) UDP
Answer: c) TLS/SSL
5. Why is HTTPS considered more secure than HTTP?
a) It uses symmetric encryption only
b) It requires a username and password
c) It encrypts data transmission, preventing interception
d) It blocks all hackers
Answer: c) It encrypts data transmission, preventing interception
6. What does SSL stand for?
a) Secure Socket Layer
b) Safe Security Link
c) Secure System Login
d) Socket Secure Line
Answer: a) Secure Socket Layer
7. When an HTTPS website has an expired SSL certificate, what happens?
a) The website stops working completely
b) The browser shows a security warning
c) The website loads faster
d) The website switches to HTTP automatically
Answer: b) The browser shows a security warning
8. Which of the following is NOT a benefit of HTTPS?
a) Data encryption
b) Authentication of websites
c) Faster data transfer compared to HTTP
d) Protection against man-in-the-middle attacks
Answer: c) Faster data transfer compared to HTTP
9. What kind of certificate is required for HTTPS?
a) SSL/TLS Certificate
b) FTP Certificate
c) Firewall Certificate
d) HTTP Token
Answer: a) SSL/TLS Certificate
10. Which layer of the OSI model does HTTPS operate at?
a) Transport Layer
b) Application Layer
c) Network Layer
d) Data Link Layer
Answer: b) Application Layer
1. A web page is 5 MB in size. If the internet speed is 20 Mbps, how long will it take to download the page using HTTP?
a) 1.5 seconds
b) 2 seconds
c) 2.5 seconds
d) 3 seconds
💡 Hint: 1 MB = 8 Megabits
Answer:
b) 2 seconds
Time=(5×8) Mbps20 Mbps=2 sec\text{Time} = \frac{(5 \times 8) \text{ Mbps}}{20 \text{ Mbps}} = 2 \text{ sec}Time=20 Mbps(5×8) Mbps​=2 sec
2. An HTTPS handshake introduces an additional 50 ms latency. If an HTTP request normally takes 200 ms, what is the new response time?
a) 200 ms
b) 225 ms
c) 250 ms
d) 300 ms
Answer:
c) 250 ms
200+50=250200 + 50 = 250200+50=250 ms
3. If an HTTP connection requires 3 round trips and each trip takes 40 ms, what is the total time taken for the connection?
a) 80 ms
b) 100 ms
c) 120 ms
d) 150 ms
Answer:
c) 120 ms
3×40=1203 \times 40 = 1203×40=120 ms
4. If HTTPS encryption adds a 25% overhead to data transfer, how much data is transferred when a 4 MB file is sent?
a) 4 MB
b) 5 MB
c) 6 MB
d) 7 MB
Answer:
b) 5 MB
4+(0.25×4)=54 + (0.25 \times 4) = 54+(0.25×4)=5 MB
5. A website hosted 5000 km away has a network speed of 250,000 km/s. What is the round-trip time (RTT)?
a) 20 ms
b) 30 ms
c) 40 ms
d) 50 ms
Answer:
c) 40 ms
RTT=2×5000250000=40\text{RTT} = \frac{2 \times 5000}{250000} = 40RTT=2500002×5000​=40 ms
6. A browser downloads 12 files, each taking 1 second over HTTP. If HTTPS allows 3 parallel connections, how long will it take?
a) 3 sec
b) 4 sec
c) 5 sec
d) 6 sec
Answer:
b) 4 sec
123=4\frac{12}{3} = 4312​=4 sec
7. An HTTP request takes 500 ms. If switching to HTTPS increases the response time by 20%, what is the new response time?
a) 550 ms
b) 600 ms
c) 650 ms
d) 700 ms
Answer:
b) 600 ms
500+(0.2×500)=600500 + (0.2 \times 500) = 600500+(0.2×500)=600 ms