Programming Languages MCQs 2026

45 questions with detailed answers · 20 from past papers · 5 quiz batches available

📚 Computer Mcqs 📄 20 Past-Paper Qs ✓ Free · No Login Needed
🎯 Mock Test

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.

Page 1 of 1 Questions 110 of 45
  1. Q1 Past Paper · PPSC/FPSC/NTS medium

    Grace Hopper is closely associated with which language

    1. A C
    2. B Python
    3. C Java
    4. D COBOL
    💡 Explanation:

    Grace Hopper played a key role in the development of COBOL.

  2. Q2 medium

    Machine-dependent languages are also called

    1. A High-level languages
    2. B Low-level languages
    3. C Natural languages
    4. D Query languages
    💡 Explanation:

    Machine-dependent languages such as machine and assembly are low-level languages.

  3. Q3 Past Paper · PPSC/FPSC/NTS medium

    An interpreter translates a program

    1. A One line at a time
    2. B All at once
    3. C Into assembly
    4. D Into binary permanently
    💡 Explanation:

    An interpreter translates and executes a program line by line.

  4. Q4 easy

    A reusable collection of statements that performs a specific task is called a

    1. A Loop
    2. B Variable
    3. C Function
    4. D Constant
    💡 Explanation:

    A function is a reusable block of code that performs a specific task.

  5. Q5 medium

    Which of the following translates the entire source code before execution

    1. A Interpreter
    2. B Assembler
    3. C Editor
    4. D Compiler
    💡 Explanation:

    A compiler translates the entire source code into machine code before execution.

  6. Q6 Past Paper · PPSC/FPSC/NTS easy

    OOP stands for

    1. A Object Oriented Programming
    2. B Ordered Output Process
    3. C Open Operation Protocol
    4. D Object Output Programming
    💡 Explanation:

    OOP stands for Object Oriented Programming.

  7. Q7 medium

    Which symbol is commonly used to write single-line comments in many languages

    1. A @
    2. B //
    3. C &
    4. D $
    💡 Explanation:

    Many languages such as C++, Java and JavaScript use // for single-line comments.

  8. Q8 easy

    Converting an algorithm into a programming language is called

    1. A Debugging
    2. B Testing
    3. C Coding
    4. D Designing
    💡 Explanation:

    Coding is the process of writing an algorithm in a programming language.

  9. Q9 easy

    A single instruction in a programming language is called a

    1. A Loop
    2. B Variable
    3. C Bug
    4. D Statement
    💡 Explanation:

    A statement is a single instruction in a program.

  10. Q10 medium

    A major advantage of Java is that it is

    1. A Platform independent
    2. B Machine dependent
    3. C Written in binary
    4. D Non-object-oriented
    💡 Explanation:

    Java is platform independent thanks to the Java Virtual Machine (JVM).

  11. Q11 hard

    The Pascal language was developed by

    1. A Dennis Ritchie
    2. B Niklaus Wirth
    3. C Guido van Rossum
    4. D James Gosling
    💡 Explanation:

    Niklaus Wirth developed the Pascal programming language.

  12. Q12 medium

    Pseudocode is

    1. A Actual machine code
    2. B A programming language
    3. C An informal description of program logic
    4. D A type of hardware
    💡 Explanation:

    Pseudocode is an informal, human-readable description of program logic.

  13. Q13 medium

    Which of the following is an interpreted language

    1. A C
    2. B C++
    3. C FORTRAN
    4. D Python
    💡 Explanation:

    Python is typically an interpreted language.

  14. Q14 medium

    The BASIC programming language was designed for

    1. A Beginners
    2. B Scientists
    3. C Experts only
    4. D System programmers
    💡 Explanation:

    BASIC (Beginners All-purpose Symbolic Instruction Code) was designed for beginners.

  15. Q15 medium

    A compiler reports which type of errors

    1. A Spelling errors in text
    2. B Syntax errors in code
    3. C Hardware errors
    4. D Network errors
    💡 Explanation:

    A compiler detects and reports syntax errors in the source code.

  16. Q16 medium

    Which language uses mnemonics like ADD, SUB and MOV

    1. A Machine language
    2. B Python
    3. C Java
    4. D Assembly language
    💡 Explanation:

    Assembly language uses mnemonics such as ADD, SUB and MOV.

  17. Q17 medium

    High-level languages are

    1. A Machine dependent
    2. B Written in binary
    3. C Machine independent and easier to use
    4. D Directly executed
    💡 Explanation:

    High-level languages are machine independent and easier for humans to use.

  18. Q18 medium

    High-level languages belong to which generation

    1. A Third
    2. B First
    3. C Second
    4. D Fifth
    💡 Explanation:

    High-level languages are third-generation languages (3GL).

  19. Q19 medium

    Assembly language belongs to which generation of languages

    1. A First
    2. B Second
    3. C Third
    4. D Fourth
    💡 Explanation:

    Assembly language is a second-generation language (2GL).

  20. Q20 Past Paper · PPSC/FPSC/NTS medium

    Machine language is also known as which generation language

    1. A Third
    2. B Fourth
    3. C Second
    4. D First
    💡 Explanation:

    Machine language is a first-generation language (1GL).

  21. Q21 medium

    In OOP, a blueprint for creating objects is called a

    1. A Variable
    2. B Loop
    3. C Class
    4. D Function
    💡 Explanation:

    A class is a blueprint used to create objects in OOP.

  22. Q22 medium

    The four main concepts of OOP are inheritance, polymorphism, abstraction and

    1. A Encapsulation
    2. B Compilation
    3. C Iteration
    4. D Debugging
    💡 Explanation:

    The four pillars of OOP are inheritance, polymorphism, abstraction and encapsulation.

  23. Q23 medium

    Which of these is an object-oriented programming language

    1. A FORTRAN
    2. B Java
    3. C Assembly
    4. D Machine code
    💡 Explanation:

    Java is an object-oriented programming language.

  24. Q24 Past Paper · PPSC/FPSC/NTS easy

    An error in a program is commonly called a

    1. A Virus
    2. B Loop
    3. C Syntax
    4. D Bug
    💡 Explanation:

    An error or fault in a program is commonly called a bug.

  25. Q25 easy

    The process of finding and removing errors from a program is called

    1. A Compiling
    2. B Coding
    3. C Debugging
    4. D Running
    💡 Explanation:

    Debugging is the process of finding and fixing errors in a program.

  26. Q26 easy

    A programming construct that repeats a block of code is called a

    1. A Loop
    2. B Variable
    3. C Constant
    4. D Comment
    💡 Explanation:

    A loop repeats a block of code multiple times.

  27. Q27 easy

    A named memory location that stores a value in a program is called a

    1. A Loop
    2. B Variable
    3. C Function
    4. D Class
    💡 Explanation:

    A variable is a named memory location that stores a value.

  28. Q28 Past Paper · PPSC/FPSC/NTS easy

    Which of the following is NOT a programming language

    1. A Java
    2. B Python
    3. C C++
    4. D HTML
    💡 Explanation:

    HTML is a markup language, not a programming language.

  29. Q29 Past Paper · PPSC/FPSC/NTS medium

    FORTRAN was designed mainly for

    1. A Business
    2. B Gaming
    3. C Scientific and engineering calculations
    4. D Web design
    💡 Explanation:

    FORTRAN (Formula Translation) was designed for scientific and engineering computation.

  30. Q30 Past Paper · PPSC/FPSC/NTS medium

    COBOL was designed mainly for

    1. A Business applications
    2. B Scientific research
    3. C Gaming
    4. D Operating systems
    💡 Explanation:

    COBOL was designed for business data processing applications.

  31. Q31 Past Paper · PPSC/FPSC/NTS medium

    The Python programming language was created by

    1. A James Gosling
    2. B Guido van Rossum
    3. C Dennis Ritchie
    4. D Grace Hopper
    💡 Explanation:

    Guido van Rossum created Python in 1991.

  32. Q32 Past Paper · PPSC/FPSC/NTS medium

    The Java programming language was developed by

    1. A Dennis Ritchie
    2. B Guido van Rossum
    3. C Bjarne Stroustrup
    4. D James Gosling
    💡 Explanation:

    James Gosling developed Java at Sun Microsystems.

  33. Q33 Past Paper · PPSC/FPSC/NTS medium

    The C++ programming language was developed by

    1. A Dennis Ritchie
    2. B James Gosling
    3. C Bjarne Stroustrup
    4. D Guido van Rossum
    💡 Explanation:

    Bjarne Stroustrup developed C++ as an extension of C.

  34. Q34 Past Paper · PPSC/FPSC/NTS medium

    The C programming language was developed by

    1. A Dennis Ritchie
    2. B James Gosling
    3. C Guido van Rossum
    4. D Bjarne Stroustrup
    💡 Explanation:

    Dennis Ritchie developed the C language at Bell Labs around 1972.

  35. Q35 Past Paper · PPSC/FPSC/NTS medium

    Which was the first high-level programming language

    1. A COBOL
    2. B FORTRAN
    3. C C
    4. D BASIC
    💡 Explanation:

    FORTRAN, developed in 1957, was the first high-level programming language.

  36. Q36 Past Paper · PPSC/FPSC/NTS easy

    A graphical representation of an algorithm is called a

    1. A Program
    2. B Pseudocode
    3. C Syntax
    4. D Flowchart
    💡 Explanation:

    A flowchart graphically represents the steps of an algorithm.

  37. Q37 Past Paper · PPSC/FPSC/NTS easy

    A step-by-step procedure to solve a problem is called a/an

    1. A Program
    2. B Syntax
    3. C Algorithm
    4. D Compiler
    💡 Explanation:

    An algorithm is a step-by-step procedure for solving a problem.

  38. Q38 medium

    The set of rules that govern the structure of a programming language is its

    1. A Syntax
    2. B Algorithm
    3. C Flowchart
    4. D Loop
    💡 Explanation:

    Syntax is the set of grammatical rules of a programming language.

  39. Q39 medium

    The machine code produced after translation is called

    1. A Source code
    2. B Object code
    3. C Pseudocode
    4. D High-level code
    💡 Explanation:

    Object code is the machine code produced after compiling source code.

  40. Q40 Past Paper · PPSC/FPSC/NTS easy

    The human-readable program written by a programmer is called

    1. A Object code
    2. B Machine code
    3. C Binary code
    4. D Source code
    💡 Explanation:

    Source code is the human-readable program written by a programmer.

  41. Q41 Past Paper · PPSC/FPSC/NTS medium

    A compiler translates a program

    1. A One line at a time
    2. B Into assembly only
    3. C All at once into machine code
    4. D Into English
    💡 Explanation:

    A compiler translates the whole program into machine code at once.

  42. Q42 Past Paper · PPSC/FPSC/NTS medium

    A program that converts assembly language into machine code is a/an

    1. A Compiler
    2. B Assembler
    3. C Interpreter
    4. D Editor
    💡 Explanation:

    An assembler converts assembly language into machine code.

  43. Q43 medium

    Which of the following is a low-level language

    1. A Python
    2. B Java
    3. C C++
    4. D Assembly language
    💡 Explanation:

    Assembly language is a low-level, machine-dependent language.

  44. Q44 Past Paper · PPSC/FPSC/NTS easy

    Machine language is written using

    1. A Binary digits (0s and 1s)
    2. B English words
    3. C Decimal numbers
    4. D Symbols only
    💡 Explanation:

    Machine language is written using binary digits, 0s and 1s.

  45. Q45 Past Paper · PPSC/FPSC/NTS easy

    A language that a computer can directly understand is

    1. A High-level language
    2. B Assembly language
    3. C Machine language
    4. D English
    💡 Explanation:

    Machine language, written in binary, is directly understood by the computer.