FPSC Past Papers MCQs

FPSC Programmer (BS 17) Pakistan Meteorological Department (PMD) Model Papers 2026  — 750 MCQs  (Page 1 of 75)

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

View Tests (30 MCQs each)
Which statement about an interpreter is correct?
  • It translates and executes code statement by statement, so an error on a later line may not be reported until execution reaches it
  • It reports all syntax errors in the whole program before executing any line
  • It produces a standalone executable file that runs without the interpreter
  • Interpreted programs always run faster than compiled programs
What does #include <iostream> do in C++?
  • The compiler imports a precompiled module at execution
  • The linker attaches the iostream library at run time
  • The loader loads iostream into memory when the program starts
  • The preprocessor textually inserts the header's contents before compilation
What does a JIT (Just-In-Time) compiler do?
  • It checks syntax only, without generating any code
  • It compiles intermediate code (such as bytecode) into native machine code while the program is running
  • It compiles all source code to machine code before distribution
  • It converts machine code back into source code
In standard C++, what happens when an integer is divided by zero (int x = 5 / y; with y == 0)?
  • The compiler always refuses to compile the program
  • A std::runtime_error exception is always thrown
  • The result is always 0
  • Undefined behavior: the standard does not guarantee any exception
Which statement about compiled and interpreted languages is most accurate?
  • C cannot be interpreted
  • Every Java program is fully interpreted
  • Python can never be compiled
  • 'Compiled' and 'interpreted' describe implementations, not languages; the same language can have both kinds of implementation
What is the value of an uninitialized local (automatic) int variable in C++?
  • Indeterminate (garbage); reading it is undefined behavior
  • INT_MIN
  • Always -1
  • Always 0