FPSC Past Papers MCQs

FPSC Programmer (BS 17) PMD High Yield 2026  — 350 MCQs  (Page 4 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)
In Python, which exception is NOT caught by except Exception:?
  • KeyboardInterrupt
  • KeyError
  • ZeroDivisionError
  • ValueError
What does the C++ standard guarantee about the size of int?
  • Exactly 32 bits
  • The same size as a pointer
  • Exactly 4 bytes
  • At least 16 bits
In VB6 (classic Visual Basic), what are the sizes of Integer and Long?
  • Integer is 16 bits; Long is 32 bits
  • Integer is 8 bits; Long is 16 bits
  • Integer is 32 bits; Long is 64 bits
  • Both are 32 bits
What is the range of an 8-bit signed integer in two's complement?
  • -127 to 127
  • 0 to 255
  • -128 to 127
  • -128 to 128
What is the 8-bit two's complement representation of -5?
  • 00000101
  • 11111010
  • 10000101
  • 11111011
In C++, what happens when a signed int overflows (for example, INT_MAX + 1)?
  • A std::overflow_error is thrown
  • Undefined behavior
  • It saturates at INT_MAX
  • It wraps to INT_MIN as guaranteed by the standard