Programming Languages MCQs 2026
45 questions with detailed answers · 20 from past papers · 5 quiz batches available
Choose a Quiz Batch. Each batch has 10 questions from this topic, in order. Take them one by one to work through all 45 MCQs. Login to save your scores and see your best per batch.
Read each question, think about the answer, then click Show Answer to reveal the correct option and explanation. Load 10 at a time so it stays manageable — perfect for one-topic study sessions on the bus or during a break.
- Q1 Past Paper · PPSC/FPSC/NTS medium
Grace Hopper is closely associated with which language
💡 Explanation:Grace Hopper played a key role in the development of COBOL.
- Q2 medium
Machine-dependent languages are also called
💡 Explanation:Machine-dependent languages such as machine and assembly are low-level languages.
- Q3 Past Paper · PPSC/FPSC/NTS medium
An interpreter translates a program
💡 Explanation:An interpreter translates and executes a program line by line.
- Q4 easy
A reusable collection of statements that performs a specific task is called a
💡 Explanation:A function is a reusable block of code that performs a specific task.
- Q5 medium
Which of the following translates the entire source code before execution
💡 Explanation:A compiler translates the entire source code into machine code before execution.
- Q6 Past Paper · PPSC/FPSC/NTS easy
OOP stands for
💡 Explanation:OOP stands for Object Oriented Programming.
- Q7 medium
Which symbol is commonly used to write single-line comments in many languages
💡 Explanation:Many languages such as C++, Java and JavaScript use // for single-line comments.
- Q8 easy
Converting an algorithm into a programming language is called
💡 Explanation:Coding is the process of writing an algorithm in a programming language.
- Q9 easy
A single instruction in a programming language is called a
💡 Explanation:A statement is a single instruction in a program.
- Q10 medium
A major advantage of Java is that it is
💡 Explanation:Java is platform independent thanks to the Java Virtual Machine (JVM).
- Q11 hard
The Pascal language was developed by
💡 Explanation:Niklaus Wirth developed the Pascal programming language.
- Q12 medium
Pseudocode is
💡 Explanation:Pseudocode is an informal, human-readable description of program logic.
- Q13 medium
Which of the following is an interpreted language
💡 Explanation:Python is typically an interpreted language.
- Q14 medium
The BASIC programming language was designed for
💡 Explanation:BASIC (Beginners All-purpose Symbolic Instruction Code) was designed for beginners.
- Q15 medium
A compiler reports which type of errors
💡 Explanation:A compiler detects and reports syntax errors in the source code.
- Q16 medium
Which language uses mnemonics like ADD, SUB and MOV
💡 Explanation:Assembly language uses mnemonics such as ADD, SUB and MOV.
- Q17 medium
High-level languages are
💡 Explanation:High-level languages are machine independent and easier for humans to use.
- Q18 medium
High-level languages belong to which generation
💡 Explanation:High-level languages are third-generation languages (3GL).
- Q19 medium
Assembly language belongs to which generation of languages
💡 Explanation:Assembly language is a second-generation language (2GL).
- Q20 Past Paper · PPSC/FPSC/NTS medium
Machine language is also known as which generation language
💡 Explanation:Machine language is a first-generation language (1GL).
- Q21 medium
In OOP, a blueprint for creating objects is called a
💡 Explanation:A class is a blueprint used to create objects in OOP.
- Q22 medium
The four main concepts of OOP are inheritance, polymorphism, abstraction and
💡 Explanation:The four pillars of OOP are inheritance, polymorphism, abstraction and encapsulation.
- Q23 medium
Which of these is an object-oriented programming language
💡 Explanation:Java is an object-oriented programming language.
- Q24 Past Paper · PPSC/FPSC/NTS easy
An error in a program is commonly called a
💡 Explanation:An error or fault in a program is commonly called a bug.
- Q25 easy
The process of finding and removing errors from a program is called
💡 Explanation:Debugging is the process of finding and fixing errors in a program.
- Q26 easy
A programming construct that repeats a block of code is called a
💡 Explanation:A loop repeats a block of code multiple times.
- Q27 easy
A named memory location that stores a value in a program is called a
💡 Explanation:A variable is a named memory location that stores a value.
- Q28 Past Paper · PPSC/FPSC/NTS easy
Which of the following is NOT a programming language
💡 Explanation:HTML is a markup language, not a programming language.
- Q29 Past Paper · PPSC/FPSC/NTS medium
FORTRAN was designed mainly for
💡 Explanation:FORTRAN (Formula Translation) was designed for scientific and engineering computation.
- Q30 Past Paper · PPSC/FPSC/NTS medium
COBOL was designed mainly for
💡 Explanation:COBOL was designed for business data processing applications.
- Q31 Past Paper · PPSC/FPSC/NTS medium
The Python programming language was created by
💡 Explanation:Guido van Rossum created Python in 1991.
- Q32 Past Paper · PPSC/FPSC/NTS medium
The Java programming language was developed by
💡 Explanation:James Gosling developed Java at Sun Microsystems.
- Q33 Past Paper · PPSC/FPSC/NTS medium
The C++ programming language was developed by
💡 Explanation:Bjarne Stroustrup developed C++ as an extension of C.
- Q34 Past Paper · PPSC/FPSC/NTS medium
The C programming language was developed by
💡 Explanation:Dennis Ritchie developed the C language at Bell Labs around 1972.
- Q35 Past Paper · PPSC/FPSC/NTS medium
Which was the first high-level programming language
💡 Explanation:FORTRAN, developed in 1957, was the first high-level programming language.
- Q36 Past Paper · PPSC/FPSC/NTS easy
A graphical representation of an algorithm is called a
💡 Explanation:A flowchart graphically represents the steps of an algorithm.
- Q37 Past Paper · PPSC/FPSC/NTS easy
A step-by-step procedure to solve a problem is called a/an
💡 Explanation:An algorithm is a step-by-step procedure for solving a problem.
- Q38 medium
The set of rules that govern the structure of a programming language is its
💡 Explanation:Syntax is the set of grammatical rules of a programming language.
- Q39 medium
The machine code produced after translation is called
💡 Explanation:Object code is the machine code produced after compiling source code.
- Q40 Past Paper · PPSC/FPSC/NTS easy
The human-readable program written by a programmer is called
💡 Explanation:Source code is the human-readable program written by a programmer.
- Q41 Past Paper · PPSC/FPSC/NTS medium
A compiler translates a program
💡 Explanation:A compiler translates the whole program into machine code at once.
- Q42 Past Paper · PPSC/FPSC/NTS medium
A program that converts assembly language into machine code is a/an
💡 Explanation:An assembler converts assembly language into machine code.
- Q43 medium
Which of the following is a low-level language
💡 Explanation:Assembly language is a low-level, machine-dependent language.
- Q44 Past Paper · PPSC/FPSC/NTS easy
Machine language is written using
💡 Explanation:Machine language is written using binary digits, 0s and 1s.
- Q45 Past Paper · PPSC/FPSC/NTS easy
A language that a computer can directly understand is
💡 Explanation:Machine language, written in binary, is directly understood by the computer.