Any2Quiz
CBSE / 8 / ICT / Programming

Introduction to Programming Quiz - CBSE Class 8 ICT

Free practice quiz: Introduction to Programming (CBSE Class 8 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 in programming?

    1. A step-by-step procedure to solve a problem
    2. A random guess to solve an issue
    3. A way to make computers faster
    4. A type of hardware component
    Show answer

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

    An algorithm is a defined set of steps that provides instructions on how to solve a problem.

  2. Which of the following is a characteristic of object-oriented programming?

    1. Procedural programming
    2. Object-oriented programming involves using objects and classes
    3. Machine-level programming
    4. Using only numerical data types
    Show answer

    Answer: B. Object-oriented programming involves using objects and classes

    Object-oriented programming is a paradigm centered around using objects and classes to structure software applications.

  3. In programming, what is a loop used for?

    1. To create graphical elements
    2. To repeat a block of code multiple times
    3. To store data
    4. To write documentation
    Show answer

    Answer: B. To repeat a block of code multiple times

    Loops are used in programming to execute a block of code repeatedly under certain conditions.

  4. Which of the following symbols is commonly used for comments in many programming languages?

    1. #
    2. &
    3. $
    4. %
    Show answer

    Answer: A. #

    The '#' symbol is used to denote comments in many programming languages, indicating that the text following it is for the programmer’s reference.

  5. What is the significance of indentation in Python?

    1. Ignored by the compiler
    2. Used to indicate code structure and scope
    3. Only for aesthetics
    4. Can be replaced by semicolons
    Show answer

    Answer: B. Used to indicate code structure and scope

    In Python, indentation is critical as it defines the structure and flow of the control of a program.

Take the full quiz

Browse all Programming quizzes