FPSC Past Papers MCQs

FPSC Programmer (BS 17) PMD High Yield 2026  — 350 MCQs  (Page 27 of 35)

Practice FPSC Past Papers MCQs with solved questions from real past exams. These MCQs cover FPSC Programmer (BS 17) PMD High Yield 2026 past papers and are ideal for candidates preparing for competitive exams.

View Tests (30 MCQs each)
What does Incognito or Private Browsing mode protect against?
  • It blocks all malware
  • It hides your activity from your ISP and employer
  • It stops browsing history, cookies, and form data from being saved on the local device after the session
  • It makes you anonymous to websites
What does the HttpOnly cookie attribute do?
  • It encrypts the cookie
  • It prevents JavaScript (document.cookie) from reading the cookie, which reduces the impact of XSS
  • It makes the cookie expire on browser close
  • It sends the cookie only over HTTP and never HTTPS
What is the typical size limit for a single cookie?
  • About 1 MB
  • About 5 MB
  • Unlimited
  • About 4 KB
What is the difference between localStorage and sessionStorage?
  • localStorage expires after 24 hours
  • sessionStorage is shared by all tabs
  • localStorage persists across sessions; sessionStorage is cleared when the tab is closed and is separate for each tab
  • They are identical
What does the padlock icon in the address bar guarantee?
  • The site is safe and not a phishing site
  • The connection to the site is encrypted (HTTPS), not that the site is trustworthy
  • The site has no malware
  • The site is owned by a government
What is the same-origin policy?
  • Cookies are shared between all sites
  • Scripts from one origin (scheme, host, and port) cannot freely read data from another origin
  • Only one tab can be open per site
  • Two sites cannot share the same IP address
Who enforces CORS (Cross-Origin Resource Sharing) restrictions?
  • The firewall
  • The browser, based on headers sent by the server
  • The DNS server
  • The web server alone
What happens when an HTTPS page loads a script over plain HTTP?
  • Modern browsers block it as active mixed content
  • The browser asks the user every time
  • It loads normally
  • The browser upgrades it to HTTP/2
Do browsers support HTTP/2 over plain (unencrypted) HTTP?
  • Only for images
  • Yes, all of them
  • No; major browsers support HTTP/2 only over TLS (HTTPS)
  • Only Firefox does