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.
- Q1medium
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.
- Q2Past Paper · PPSC/FPSC/NTSeasy
A language that a computer can directly understand is
💡 Explanation:Machine language, written in binary, is directly understood by the computer.
- Q3Past Paper · PPSC/FPSC/NTSeasy
Machine language is written using
💡 Explanation:Machine language is written using binary digits, 0s and 1s.
- Q4medium
Which of the following is a low-level language
💡 Explanation:Assembly language is a low-level, machine-dependent language.
- Q5Past Paper · PPSC/FPSC/NTSmedium
A program that converts assembly language into machine code is a/an
💡 Explanation:An assembler converts assembly language into machine code.
- Q6Past Paper · PPSC/FPSC/NTSmedium
A compiler translates a program
💡 Explanation:A compiler translates the whole program into machine code at once.
- Q7Past Paper · PPSC/FPSC/NTSmedium
An interpreter translates a program
💡 Explanation:An interpreter translates and executes a program line by line.
- Q8Past Paper · PPSC/FPSC/NTSeasy
The human-readable program written by a programmer is called
💡 Explanation:Source code is the human-readable program written by a programmer.
- Q9medium
The machine code produced after translation is called
💡 Explanation:Object code is the machine code produced after compiling source code.
- Q10medium
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.
- Q11Past Paper · PPSC/FPSC/NTSeasy
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.
- Q12Past Paper · PPSC/FPSC/NTSeasy
A graphical representation of an algorithm is called a
💡 Explanation:A flowchart graphically represents the steps of an algorithm.
- Q13Past Paper · PPSC/FPSC/NTSmedium
Which was the first high-level programming language
💡 Explanation:FORTRAN, developed in 1957, was the first high-level programming language.
- Q14Past Paper · PPSC/FPSC/NTSmedium
The C programming language was developed by
💡 Explanation:Dennis Ritchie developed the C language at Bell Labs around 1972.
- Q15Past Paper · PPSC/FPSC/NTSmedium
The C++ programming language was developed by
💡 Explanation:Bjarne Stroustrup developed C++ as an extension of C.
- Q16Past Paper · PPSC/FPSC/NTSmedium
The Java programming language was developed by
💡 Explanation:James Gosling developed Java at Sun Microsystems.
- Q17Past Paper · PPSC/FPSC/NTSmedium
The Python programming language was created by
💡 Explanation:Guido van Rossum created Python in 1991.
- Q18Past Paper · PPSC/FPSC/NTSmedium
COBOL was designed mainly for
💡 Explanation:COBOL was designed for business data processing applications.
- Q19Past Paper · PPSC/FPSC/NTSmedium
FORTRAN was designed mainly for
💡 Explanation:FORTRAN (Formula Translation) was designed for scientific and engineering computation.
- Q20Past Paper · PPSC/FPSC/NTSeasy
Which of the following is NOT a programming language
💡 Explanation:HTML is a markup language, not a programming language.
- Q21easy
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.
- Q22easy
A programming construct that repeats a block of code is called a
💡 Explanation:A loop repeats a block of code multiple times.
- Q23easy
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.
- Q24Past Paper · PPSC/FPSC/NTSeasy
An error in a program is commonly called a
💡 Explanation:An error or fault in a program is commonly called a bug.
- Q25medium
Which of these is an object-oriented programming language
💡 Explanation:Java is an object-oriented programming language.
- Q26medium
The four main concepts of OOP are inheritance, polymorphism, abstraction and
💡 Explanation:The four pillars of OOP are inheritance, polymorphism, abstraction and encapsulation.
- Q27medium
In OOP, a blueprint for creating objects is called a
💡 Explanation:A class is a blueprint used to create objects in OOP.
- Q28Past Paper · PPSC/FPSC/NTSmedium
Machine language is also known as which generation language
💡 Explanation:Machine language is a first-generation language (1GL).
- Q29medium
Assembly language belongs to which generation of languages
💡 Explanation:Assembly language is a second-generation language (2GL).
- Q30medium
High-level languages belong to which generation
💡 Explanation:High-level languages are third-generation languages (3GL).
- Q31medium
High-level languages are
💡 Explanation:High-level languages are machine independent and easier for humans to use.
- Q32medium
Which language uses mnemonics like ADD, SUB and MOV
💡 Explanation:Assembly language uses mnemonics such as ADD, SUB and MOV.
- Q33medium
A compiler reports which type of errors
💡 Explanation:A compiler detects and reports syntax errors in the source code.
- Q34medium
The BASIC programming language was designed for
💡 Explanation:BASIC (Beginners All-purpose Symbolic Instruction Code) was designed for beginners.
- Q35medium
Which of the following is an interpreted language
💡 Explanation:Python is typically an interpreted language.
- Q36medium
Pseudocode is
💡 Explanation:Pseudocode is an informal, human-readable description of program logic.
- Q37hard
The Pascal language was developed by
💡 Explanation:Niklaus Wirth developed the Pascal programming language.
- Q38medium
A major advantage of Java is that it is
💡 Explanation:Java is platform independent thanks to the Java Virtual Machine (JVM).
- Q39easy
A single instruction in a programming language is called a
💡 Explanation:A statement is a single instruction in a program.
- Q40easy
Converting an algorithm into a programming language is called
💡 Explanation:Coding is the process of writing an algorithm in a programming language.
- Q41Past Paper · PPSC/FPSC/NTSeasy
OOP stands for
💡 Explanation:OOP stands for Object Oriented Programming.
- Q42medium
Which of the following translates the entire source code before execution
💡 Explanation:A compiler translates the entire source code into machine code before execution.
- Q43easy
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.
- Q44medium
Machine-dependent languages are also called
💡 Explanation:Machine-dependent languages such as machine and assembly are low-level languages.
- Q45Past Paper · PPSC/FPSC/NTSmedium
Grace Hopper is closely associated with which language
💡 Explanation:Grace Hopper played a key role in the development of COBOL.