Independent Preparation Bank for Pakistani Computing Graduates • 100% Free • No Signup
NSCTTest.
Simulator
Home/Subjects/Web Development/Web Architecture & Protocols
Web DevelopmentTopic #2 of 541 MCQs Available

Web Architecture & Protocols

Comprehensive question bank, step-by-step rationales, and dedicated timed quiz for Web Architecture & Protocols.

Launch Quiz Mode ↗

Web Architecture & Protocols Question Bank

Showing 41 questions of 41 with verified answers

13Multiple Choice

(Code/Console Logic) What is the result of this HTML? Which color will the text have?

14Multiple Choice

(Conceptual) What does the <iframe> tag do?

15Multiple Choice

(Conceptual) Which HTML element is used to define a hyperlink? index.html <p style="color:red;"> Hello <span style="color:blue;">World</span> </p>

1Multiple Choice

(Code/Logic) Given the CSS below, what will be the total width of the div element in the browser?

2Multiple Choice

(Conceptual) Which CSS selector has the highest specificity and will override others?

3Multiple Choice

(Scenario-Based) You want an element to be removed from the document layout entirely, as if it doesn't exist, while still being present in the HTML. Which property achieves this?

4Multiple Choice

(Conceptual) What does the position: absolute; property do?

5Multiple Choice

(Code/Logic) What happens to the layout when using box-sizing: border-box;?

6Multiple Choice

(Scenario-Based) A developer wants to center a div horizontally on the screen using margin. What CSS is correct?

7Multiple Choice

(Comparison) What is the difference between display: inline; and display: inline-block;?

8Multiple Choice

(Conceptual) Which CSS property is used to change the text color of an element?

9Multiple Choice

(Code/Logic) What will be the result of the following CSS selector: ul li:first- child?

10Multiple Choice

(Conceptual) What is the purpose of a CSS Media Query?

11Multiple Choice

(Comparison) Why use rem units instead of px for font-sizes?

12Multiple Choice

(Scenario-Based) You want to position a child element at the bottom-right corner of its container regardless of content length. Which positioning strategy is correct?

13Multiple Choice

(Conceptual) What is a CSS Pseudo-element like ::before used for?

14Multiple Choice

(Conceptual) How do you hide an element visually while ensuring it remains visible to screen readers (for accessibility)?

15Multiple Choice

(Code/Logic) What does z-index: 100; do?

1Multiple Choice

(Conceptual) What is the default alignment of items in a Flexbox container if flex- direction is set to row and no other alignment properties are defined?

2Multiple Choice

(Code-Tracing) In a Grid layout, what does the value grid-template-columns: 1fr 2fr 1fr; achieve?

3Multiple Choice

(Scenario-Based) You want to position a child element at the absolute center of its parent using Flexbox. Which combination of properties is correct?

4Multiple Choice

(Conceptual) What is the primary advantage of using viewport units (vw/vh) over percentages (%) for sizing elements?

5Multiple Choice

(Code/Logic) Analyze this Media Query. When will the background color change to red? style.css @media (min-width: 768px) { body { background-color: red; } }

6Multiple Choice

(Comparison) What is the difference between rem and em units?

7Multiple Choice

(Conceptual) What is the main benefit of CSS Custom Properties (Variables)?

8Multiple Choice

(Scenario-Based) An image is overflowing its container, stretching the design. Which CSS rule fixes this to ensure the image never exceeds the container's width?

9Multiple Choice

(Conceptual) In Flexbox, what does the flex-grow: 1; property do?

10Multiple Choice

(Code-Tracing) A developer wants to style the first paragraph of an article differently. Which selector is correct? article p { ... }

11Multiple Choice

(Comparison) Compare @media screen and @media print.

12Multiple Choice

(Conceptual) What is the benefit of using CSS Grid over Flexbox?

13Multiple Choice

(Conceptual) What is the z-index property used for?

14Multiple Choice

(Conceptual) What is Graceful Degradation in responsive design?

15Multiple Choice

(Code/Logic) You want to animate a box to move from left to right. Which property links a set of keyframes to an element?

16Multiple Choice

(Conceptual) What is a Viewport Meta Tag and why is it required for mobile- responsive websites?

17Multiple Choice

(Conceptual) Which CSS pseudo-class is used to style an element only when the user's mouse is pointing at it?

18Multiple Choice

(Conceptual) What does overflow: hidden; do to a container?

19Multiple Choice

(Code-Tracing) What does the calc() function do in CSS?

20Multiple Choice

(Comparison) What is the difference between visibility: hidden; and opacity: 0;?

1Multiple Choice

(Code-Tracing) What will be the output of the following JavaScript code snippet?

21Multiple Choice

Which HTTP status code is returned when a server refuses to authorize a request despite receiving valid authentication credentials because the user lacks permissions?

23Multiple Choice

What major optimization does HTTP/2 introduce over HTTP/1.1 to solve head-of-line blocking at the application layer?