Any2Quiz
CBSE / 11 / ICT / Programming

Introduction to Programming Quiz - CBSE Class 11 ICT

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

Play all 20 questions free

Sample questions

  1. What is an algorithm?

    1. A type of computer hardware
    2. A step-by-step procedure to solve a problem
    3. A programming language
    4. A type of software
    Show answer

    Answer: B. A step-by-step procedure to solve a problem

    An algorithm is a set of instructions or rules designed to solve a specific problem or accomplish a particular task.

  2. What is the purpose of a compiler?

    1. To execute a program directly
    2. To translate high-level code into machine code
    3. To debug a program
    4. To write a program
    Show answer

    Answer: B. To translate high-level code into machine code

    A compiler converts code written in a programming language into a language the computer's processor can understand.

  3. Explain the difference between a compiler and an interpreter.

    1. Both are the same
    2. Compiler translates whole program at once, interpreter executes line by line
    3. Compiler executes line by line, interpreter translates whole program at once
    4. Compiler translates a part of the program, interpreter translates the whole program
    Show answer

    Answer: B. Compiler translates whole program at once, interpreter executes line by line

    Compilers translate the entire program into machine code before execution, while interpreters execute code line by line.

  4. What is a function in programming?

    1. A block of code that performs a specific task
    2. A type of variable
    3. A type of data structure
    4. A type of loop
    Show answer

    Answer: A. A block of code that performs a specific task

    Functions are reusable blocks of code that enhance modularity and code reusability.

  5. What is a data structure?

    1. A way to organize data
    2. A type of programming language
    3. A type of algorithm
    4. A type of variable
    Show answer

    Answer: A. A way to organize data

    Data structures are used to efficiently store and manage data.

Take the full quiz

More quizzes

Browse all Programming quizzes