Independent Preparation Bank for Pakistani Computing Graduates • 100% Free • No Signup
NSCTPrep.
Home/Subjects/Web Development/Introduction to Web Development
Web DevelopmentTopic #1 of 539 MCQs Available

Introduction to Web Development

Comprehensive question bank, step-by-step rationales, and dedicated timed quiz for Introduction to Web Development.

Launch Quiz Mode ↗

Introduction to Web Development Question Bank

Showing 39 questions of 39 with verified answers

1Multiple Choice

(Conceptual) What is the primary functional difference between the Internet and the World Wide Web (WWW)?

2Multiple Choice

(Scenario-Based) A developer notices that a modern CSS feature works perfectly in Google Chrome and Microsoft Edge but fails to render in Apple’s Safari. Which component of the browser architecture is responsible for this inconsistency?

3Multiple Choice

(Comparison) In a typical Client-Server architecture, which of the following tasks is strictly a Server-Side responsibility?

4Multiple Choice

(Code/Console Logic) An engineer runs a command to check the "Server" header of a website. Based on the output, what type of web environment is being used?

5Multiple Choice

(Conceptual) What is the primary role of the W3C (World Wide Web Consortium) in web development?

6Multiple Choice

(Comparison) Compare **Static Web Pages** and **Dynamic Web Pages**. What makes a page "Dynamic"?

7Multiple Choice

(Scenario-Based) You enter https://www.google.com into your browser. What is the very first step the browser takes before it can send an HTTP request to the server?

8Multiple Choice

(Conceptual) In modern web development, what does the term "Full-Stack" refer to?

9Multiple Choice

(Comparison) What is the difference between a Web Browser and a Web Server?

10Multiple Choice

(Calculation/Logic) A web page consists of 1 HTML file, 2 CSS files, and 5 images. How many total **HTTP Requests** will the browser typically make to fully render this page?

11Multiple Choice

(Scenario-Based) A user complains that a website is "slow." Upon inspection, you find the server responds in 50ms, but the browser takes 5 seconds to draw the pixels because of massive, unoptimized images. This is a failure in:

12Multiple Choice

(Conceptual) Which technology is primarily responsible for the Logic and Interactivity of a web page (e.g., handling button clicks or fetching data without a page reload)?

1Multiple Choice

(Conceptual) Why is HTTP referred to as a Stateless Protocol? • ◦ ◦ ◦ ◦ • • •

2Multiple Choice

(Scenario-Based) An e-commerce site moves its "Account" page from /old-profile to /new-profile permanently. Which HTTP status code should the server return to tell search engines to update their index to the new URL?

3Multiple Choice

(Code/Console Logic) A developer writes the following JavaScript fetch request. What will the server most likely receive as the Request Body?

4Multiple Choice

(Comparison) Compare the PUT and PATCH methods. When should a developer prefer PATCH?

5Multiple Choice

(Calculation/Comparison) A web page loads 10 small icons. In HTTP/1.1, the browser opens 6 parallel TCP connections. In HTTP/2, it uses 1 connection. Why is HTTP/2 typically faster in this scenario?

6Multiple Choice

(Scenario-Based) A user attempts to access a restricted admin dashboard. They have logged in correctly, but they are a "Standard User," not an "Admin." The server refuses to show the page. Which status code is most appropriate?

7Multiple Choice

(Conceptual) What is the role of TLS (Transport Layer Security) in an HTTPS connection?

8Multiple Choice

(Code/Console Logic) Examine the raw HTTP response header below. What can you conclude about the content the browser is about to receive?

9Multiple Choice

(Calculation) A network has a Round Trip Time (RTT) of 100ms. A browser needs to establish a standard TCP Connection (3-way handshake) before sending an HTTP request. Ignoring processing time, what is the minimum delay before the first byte of data is sent by the client?

10Multiple Choice

(Scenario-Based) You are designing a financial API where a user "Withdraws $50." If the user’s internet jitters and the browser sends the request twice, you must ensure the user doesn't lose $100. Which HTTP concept ensures this safety?

11Multiple Choice

(Conceptual) What is a DNS CNAME Record used for?

12Multiple Choice

(Scenario-Based) A user sees a 502 Bad Gateway error. What is the most likely cause?

13Multiple Choice

(Code/Console Logic) Which of the following is a key characteristic of the WebSocket protocol as shown in this connection initialization?

14Multiple Choice

(Comparison) What is the difference between Keep-Alive in HTTP/1.1 and Persistent Connections?

15Multiple Choice

(Conceptual) What is the purpose of the Host header in an HTTP/1.1 request?

1Multiple Choice

(Conceptual) What is the primary purpose of using Semantic HTML tags like <article>, <aside>, and <footer>?

2Multiple Choice

(Code-Tracing) Analyze the following HTML snippet. If the CSS is not applied, how will the two elements behave on the page?

3Multiple Choice

(Conceptual) Which HTML tag is strictly meant to contain metadata about the page, such as the title, character encoding, and links to CSS files, and is not rendered in the browser window?

4Multiple Choice

(Scenario-Based) You want to create a form where a user can select only one option from a set of mutually exclusive choices (e.g., Gender). Which input type should you use?

5Multiple Choice

(Code-Tracing) In this HTML, why is the image not displaying, and what is the standard fix?

6Multiple Choice

(Conceptual) What is the purpose of the <!DOCTYPE html> declaration at the very top of an HTML document?

7Multiple Choice

(Conceptual) Which HTML element is used to define the largest heading in a document?

8Multiple Choice

(Code-Tracing) A developer writes the following list. What kind of list will appear on the page?

9Multiple Choice

(Scenario-Based) A user clicks a link, and instead of opening a new page, it opens their default email client with a pre-filled "To" address. What is the correct HTML syntax for this?

10Multiple Choice

(Conceptual) Which input type is most appropriate for a field where the user must enter a numeric value, and you want the mobile browser to open a numeric keypad?

11Multiple Choice

(Conceptual) What is the purpose of the <meta charset="UTF-8"> tag?

12Multiple Choice

(Scenario-Based) You want a table where the header row is distinct from the body rows. Which tags should be used to wrap the table content?