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 easy
A language that a computer can directly understand is
💡 Explanation:Machine language, written in binary, is directly understood by the computer.
- Q2 Past Paper · PPSC/FPSC/NTS easy
Machine language is written using
💡 Explanation:Machine language is written using binary digits, 0s and 1s.
- Q3 medium
Which of the following is a low-level language
💡 Explanation:Assembly language is a low-level, machine-dependent language.
- Q4 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.
- Q5 Past Paper · PPSC/FPSC/NTS medium
A compiler translates a program
💡 Explanation:A compiler translates the whole program into machine code at once.
- Q6 Past Paper · PPSC/FPSC/NTS medium
An interpreter translates a program
💡 Explanation:An interpreter translates and executes a program line by line.
- Q7 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.
- Q8 medium
The machine code produced after translation is called
💡 Explanation:Object code is the machine code produced after compiling source code.
- Q9 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.
- Q10 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.
- Q11 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.
- Q12 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.
- Q13 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.
- Q14 Past Paper · PPSC/FPSC/NTS medium
The C++ programming language was developed by
💡 Explanation:Bjarne Stroustrup developed C++ as an extension of C.
- Q15 medium
Machine-dependent languages are also called
💡 Explanation:Machine-dependent languages such as machine and assembly are low-level languages.
- Q16 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.
- Q17 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.
- Q18 Past Paper · PPSC/FPSC/NTS medium
The Java programming language was developed by
💡 Explanation:James Gosling developed Java at Sun Microsystems.
- Q19 Past Paper · PPSC/FPSC/NTS medium
The Python programming language was created by
💡 Explanation:Guido van Rossum created Python in 1991.
- Q20 Past Paper · PPSC/FPSC/NTS medium
COBOL was designed mainly for
💡 Explanation:COBOL was designed for business data processing applications.
- Q21 Past Paper · PPSC/FPSC/NTS medium
FORTRAN was designed mainly for
💡 Explanation:FORTRAN (Formula Translation) was designed for scientific and engineering computation.
- Q22 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.
- Q23 easy
A programming construct that repeats a block of code is called a
💡 Explanation:A loop repeats a block of code multiple times.
- Q24 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.
- Q25 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.
- Q26 medium
Which of these is an object-oriented programming language
💡 Explanation:Java is an object-oriented programming language.
- Q27 medium
The four main concepts of OOP are inheritance, polymorphism, abstraction and
💡 Explanation:The four pillars of OOP are inheritance, polymorphism, abstraction and encapsulation.
- Q28 medium
In OOP, a blueprint for creating objects is called a
💡 Explanation:A class is a blueprint used to create objects in OOP.
- Q29 Past Paper · PPSC/FPSC/NTS medium
Machine language is also known as which generation language
💡 Explanation:Machine language is a first-generation language (1GL).
- Q30 medium
Assembly language belongs to which generation of languages
💡 Explanation:Assembly language is a second-generation language (2GL).
- Q31 medium
High-level languages belong to which generation
💡 Explanation:High-level languages are third-generation languages (3GL).
- Q32 medium
High-level languages are
💡 Explanation:High-level languages are machine independent and easier for humans to use.
- Q33 medium
Which language uses mnemonics like ADD, SUB and MOV
💡 Explanation:Assembly language uses mnemonics such as ADD, SUB and MOV.
- Q34 medium
A compiler reports which type of errors
💡 Explanation:A compiler detects and reports syntax errors in the source code.
- Q35 medium
The BASIC programming language was designed for
💡 Explanation:BASIC (Beginners All-purpose Symbolic Instruction Code) was designed for beginners.
- Q36 medium
Which of the following is an interpreted language
💡 Explanation:Python is typically an interpreted language.
- Q37 medium
Pseudocode is
💡 Explanation:Pseudocode is an informal, human-readable description of program logic.
- Q38 hard
The Pascal language was developed by
💡 Explanation:Niklaus Wirth developed the Pascal programming language.
- Q39 medium
A major advantage of Java is that it is
💡 Explanation:Java is platform independent thanks to the Java Virtual Machine (JVM).
- Q40 easy
A single instruction in a programming language is called a
💡 Explanation:A statement is a single instruction in a program.
- Q41 easy
Converting an algorithm into a programming language is called
💡 Explanation:Coding is the process of writing an algorithm in a programming language.
- Q42 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.
- Q43 Past Paper · PPSC/FPSC/NTS easy
OOP stands for
💡 Explanation:OOP stands for Object Oriented Programming.
- Q44 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.
- Q45 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.