FPSC Past Papers MCQs

FPSC Programmer (BS 17) PMD High Yield 2026  — 350 MCQs  (Page 33 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)
Which statement about HTML form methods is correct?
  • POST data appears in the URL
  • GET can send unlimited data
  • GET appends the form data to the URL (visible and bookmarkable); POST sends it in the request body
  • GET is encrypted; POST is not
Which meta tag is essential for responsive pages on mobile devices?
  • <meta charset="mobile">
  • <meta name="viewport" content="width=device-width, initial-scale=1">
  • <meta name="responsive" content="true">
  • <meta name="mobile" content="yes">
Which attribute should be added to <a target="_blank"> for security, especially in older browsers?
  • sandbox
  • rel="noopener" (or noreferrer)
  • rel="nofollow"
  • secure="true"
Which selector has the highest specificity?
  • .nav .item a
  • nav ul li a
  • a:hover
  • #nav .item a
Which declaration wins: an inline style="color: red", or a stylesheet rule #x { color: blue !important; }?
  • The !important rule (blue)
  • Neither; the browser default is used
  • Whichever comes later in the file
  • The inline style (red)
What happens to the vertical margins of two adjacent block elements with margin-bottom: 20px and margin-top: 30px?
  • They add up to 50px
  • They collapse to 30px (the larger one)
  • They become 25px
  • They become 20px
What is an element with position: absolute positioned relative to?
  • Always the viewport
  • Its original place in the normal flow
  • Always its parent element
  • Its nearest ancestor whose position is not static
In a flex container with flex-direction: row, what do justify-content and align-items control?
  • justify-content controls the vertical alignment
  • Both control the vertical alignment
  • justify-content controls the horizontal (main axis) alignment; align-items controls the vertical (cross axis) alignment
  • Both control the horizontal alignment