





















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















































































Question 1. Which layer of the TCP/IP model is responsible for establishing a reliable connection between client and server? A) Application B) Transport C) Internet D) Network Interface Answer: B Explanation: The Transport layer (TCP) provides reliable, ordered, and error-checked delivery of data between applications. Question 2. What does the DNS record type “MX” specify? A) Mail server for a domain B) Primary name server C) IPv6 address of a host D) Alias for another domain Answer: A Explanation: MX (Mail Exchange) records direct email to the mail server responsible for receiving messages for the domain. Question 3. Which IPv6 address block is reserved for link-local addresses? A) ::1/ B) fe80::/ C) 2000::/ D) ff00::/ Answer: B Explanation: The fe80::/10 prefix is designated for link-local addresses used on a single network segment.
Question 4. When registering a domain, which of the following is a second-level domain? A) .com B) example.com C) .org D) .co.uk Answer: B Explanation: “example” is the second-level domain; “.com” is the top-level domain (TLD). Question 5. Which hosting type gives you full control over the operating system and hardware resources? A) Shared hosting B) VPS hosting C) Dedicated hosting D) Cloud hosting Answer: C Explanation: Dedicated hosting provides an entire physical server to a single client, allowing full OS and hardware control. Question 6. Which browser engine powers Google Chrome? A) Gecko B) WebKit C) Blink D) Trident Answer: C
Answer: B Explanation: The method attribute specifies GET or POST, defining how data is transmitted. Question 10. Which HTML5 input type provides built-in validation for email addresses? A) text B) url C) email D) tel Answer: C Explanation: checks that the entered value conforms to email address syntax. Question 11. In CSS, which property controls the space between the element’s border and its content? A) margin B) padding C) border-spacing D) outline Answer: B Explanation: Padding is the inner space between the content box and the border. Question 12. Which selector has the highest specificity? A) .nav li a B) #header .menu > a C) body div p
D) a:hover Answer: B Explanation: ID selectors (#header) outrank class selectors and element selectors, giving the highest specificity. Question 13. Which CSS layout model is best suited for creating a one-dimensional row or column arrangement? A) Grid B) Flexbox C) Float D) Table Answer: B Explanation: Flexbox provides a flexible one-dimensional layout for rows or columns. Question 14. Which CSS property defines a grid container? A) display: flex; B) display: grid; C) grid-template-columns; D) grid-area; Answer: B Explanation: Setting display: grid creates a grid formatting context for child items. Question 15. Which media query will apply styles only to screens narrower than 600 px? A) @media (max-width: 600px) { … } B) @media (min-width: 600px) { … }
B) Resolution-independent scaling C) Supports lossy compression D) Requires no XML parsing Answer: B Explanation: SVG is vector-based, allowing icons to scale to any size without loss of quality. Question 19. Which property controls the playback speed of an HTML element? A) speed B) playbackRate C) rate D) tempo Answer: B Explanation: The playbackRate property (e.g., video.playbackRate = 1.5) changes the speed of video playback. Question 20. In the RGB color model, what does the value “#FF0000” represent? A) Pure green B) Pure blue C) Pure red D) White Answer: C Explanation: In hex notation, FF for red and 00 for green and blue yields pure red.
Question 21. According to Hick’s Law, what effect does increasing the number of choices have on decision time? A) Decreases decision time B) No effect C) Increases decision time logarithmically D) Increases decision time linearly Answer: C Explanation: Hick’s Law states decision time grows logarithmically with the number of options. Question 22. Fitt’s Law predicts that the time to acquire a target is dependent on which two factors? A) Color and shape B) Distance to target and size of target C) Font size and line height D) Page load speed and bandwidth Answer: B Explanation: Fitt’s Law models movement time as a function of target distance and size. Question 23. Which ARIA attribute indicates that an element is a navigation landmark? A) role="navigation" B) aria-label="nav" C) aria-hidden="true" D) role="banner" Answer: A
D) Disabling cookies Answer: B Explanation: Properly sanitizing user input and encoding output removes malicious script injection. Question 27. Which HTTP status code indicates that the requested resource has moved permanently? A) 301 B) 302 C) 403 D) 404 Answer: A Explanation: 301 Moved Permanently signals that the resource’s new URL should be used for future requests. Question 28. What is the purpose of an SSL/TLS certificate on a website? A) To improve SEO rankings only B) To encrypt data transmitted between client and server C) To block search engine crawlers D) To increase page load speed automatically Answer: B Explanation: SSL/TLS provides encrypted communication, protecting data integrity and privacy. Question 29. Which Git command creates a new branch called “feature-ui”? A) git branch feature-ui B) git checkout -b feature-ui
C) git merge feature-ui D) git commit -m "feature-ui" Answer: B Explanation: git checkout -b both creates and switches to the new branch. Question 30. How often is it recommended to perform full site backups for a high-traffic e-commerce site? A) Once a year B) Once a month C) Daily or after each major change D) Only before major redesigns Answer: C Explanation: Frequent backups minimize data loss risk for high-traffic, transaction-heavy sites. Question 31. Which W3C validator would you use to check the correctness of CSS? A) HTML Validator B) CSS Validation Service C) Accessibility Validator D) XML Validator Answer: B Explanation: The CSS Validation Service examines stylesheet syntax against CSS specifications. Question 32. What does a Web Application Firewall (WAF) primarily protect against?
Question 35. Under GDPR, which of the following is required when collecting personal data from EU residents? A) Immediate public posting of the data B) Obtaining explicit consent and providing a privacy notice C) Storing data on any server worldwide without restriction D) Sharing data with third parties without notification Answer: B Explanation: GDPR mandates transparent consent and clear privacy policies for personal data processing. Question 36. Which Creative Commons license allows commercial use and derivative works without restriction? A) CC BY-NC B) CC BY-SA C) CC BY D) CC Answer: C Explanation: CC BY requires attribution but permits commercial use and modifications. Question 37. In project management, “scope creep” refers to: A) Decreasing project budget over time B) Adding unplanned features without adjusting time or resources C) Accelerating the project schedule intentionally D) Improving team morale unexpectedly Answer: B
Explanation: Scope creep occurs when requirements expand beyond the original agreement without proper control. Question 38. Which of the following best practices helps prevent email campaigns from being marked as spam? A) Using all caps in the subject line B) Including a clear unsubscribe link C) Embedding large images without alt text D) Sending to purchased email lists Answer: B Explanation: A visible unsubscribe option complies with CAN-SPAM and improves deliverability. Question 39. Which HTTP header instructs the browser to cache a resource for 1 hour? A) Cache-Control: max-age= B) Expires: 0 C) Pragma: no-cache D) Content-Type: text/html Answer: A Explanation: max-age defines the time (in seconds) a resource is considered fresh. Question 40. Which DNS record type maps a domain name to an IPv address? A) A B) AAAA C) CNAME
D) position: absolute Answer: A Explanation: column-count (and related column-* properties) creates newspaper-style columns. Question 44. Which HTML attribute makes an image “lazy-load” in modern browsers? A) loading="lazy" B) defer="true" C) async="true" D) preload="auto" Answer: A Explanation: loading="lazy" hints the browser to postpone loading until the image is near the viewport. Question 45. Which of the following HTTP methods is considered safe and idempotent? A) POST B) PUT C) DELETE D) GET Answer: D Explanation: GET retrieves data without side effects and can be repeated without changing server state. Question 46. Which of these is a valid CSS color function that includes an alpha channel? A) rgb(255,0,0)
B) rgba(255,0,0,0.5) C) hsl(120,100%,50%) D) hex(#FF0000) Answer: B Explanation: rgba() defines red, green, blue, and alpha (opacity) values. Question 47. Which tag is used to embed an external PDF file directly in an HTML page? A) B) C) D) All of the above Answer: D Explanation: All three tags can be used to display PDFs, though and are most common. Question 48. Which of the following is a primary benefit of using the “prefetch” link relation? A) Prevents the page from being cached B) Instructs the browser to load a resource before it is needed C) Forces a full page reload on navigation D) Disables JavaScript execution Answer: B Explanation: rel="prefetch" hints the browser to retrieve resources proactively, improving perceived performance. Question 49. In an accessibility audit, what does the contrast ratio 4.5:1 refer to?
Question 52. What does the “robots.txt” file primarily control? A) User authentication B) Search engine crawler access to site directories C) Database backup schedules D) Email server configuration Answer: B Explanation: robots.txt provides directives to web crawlers about which URLs may be indexed. Question 53. Which of the following is a characteristic of a well-written alt attribute? A) Contains the file name of the image B) Provides a concise description of the image’s purpose C) Is left empty for all decorative images D) Uses HTML tags inside the attribute Answer: B Explanation: Alt text should convey the functional meaning of the image for screen readers. Question 54. Which CSS property creates a smooth transition when a property changes? A) animation B) transition C) transform D) keyframes Answer: B
Explanation: transition defines the duration and easing for property changes, enabling smooth effects. Question 55. Which of the following best explains “progressive enhancement”? A) Building a site only for the latest browsers B) Adding advanced features that work only if the browser supports them, while maintaining core functionality for all users C) Removing all CSS to improve performance D) Using Flash for interactive elements Answer: B Explanation: Progressive enhancement starts with a functional baseline and layers on enhancements when supported. Question 56. In a RESTful API, which HTTP verb is conventionally used to delete a resource? A) GET B) POST C) PUT D) DELETE Answer: D Explanation: DELETE signals the server to remove the specified resource. Question 57. Which of the following is a common cause of “broken links” on a website? A) Using relative URLs B) Changing the URL structure without updating internal references C) Implementing HTTPS