Any2Quiz
CBSE / 12 / ICT / Programming

Programming Languages Quiz - CBSE Class 12 ICT

Free practice quiz: Programming Languages (CBSE Class 12 ICT). 11 multiple-choice questions with answers and explanations. Play online, no sign-up needed.

Play all 11 questions free

Sample questions

  1. Which of the following is NOT a high-level programming language?

    1. Python
    2. Java
    3. Assembly Language
    4. C++
    Show answer

    Answer: C. Assembly Language

    Assembly language is a low-level programming language, closer to machine code than high-level languages like Python, Java, and C++.

  2. Explain the difference between compilation and interpretation.

    1. Compilation translates source code to machine code; interpretation executes source code line by line.
    2. Compilation executes source code line by line; interpretation translates source code to machine code.
    3. Both are the same.
    4. Compilation is faster; interpretation is slower.
    Show answer

    Answer: A. Compilation translates source code to machine code; interpretation executes source code line by line.

    Compilation translates the entire source code into machine code before execution, while interpretation executes the code line by line without prior translation.

  3. What is an interpreter?

    1. A program that translates source code into machine code.
    2. A program that executes source code line by line.
    3. A program that debugs source code.
    4. A program that writes source code.
    Show answer

    Answer: B. A program that executes source code line by line.

    An interpreter executes source code line by line, without first translating it entirely into machine code.

  4. What are the four fundamental principles of OOP?

    1. Abstraction, Encapsulation, Inheritance, Polymorphism
    2. Compilation, Interpretation, Debugging, Testing
    3. Variables, Data Types, Operators, Functions
    4. Input, Process, Output, Storage
    Show answer

    Answer: A. Abstraction, Encapsulation, Inheritance, Polymorphism

    Abstraction, Encapsulation, Inheritance, and Polymorphism are the four main principles of Object-Oriented Programming.

  5. What is polymorphism in OOP?

    1. The ability of an object to take on many forms.
    2. The ability to hide data within a class.
    3. The ability to create new classes from existing classes.
    4. The ability to define the behavior of an object.
    Show answer

    Answer: A. The ability of an object to take on many forms.

    Polymorphism allows objects of different classes to respond to the same method call in their own specific way.

Take the full quiz

Browse all Programming quizzes