Any2Quiz
CBSE / 9 / Computer Science / Programming Concepts

Introduction to Programming and Algorithms Quiz - CBSE Class 9 Computer Science

Free practice quiz: Introduction to Programming and Algorithms (CBSE Class 9 Computer Science). 17 multiple-choice questions with answers and explanations. Play online, no sign-up needed.

Play all 17 questions free

Sample questions

  1. Which is the correct order of phases in the software development lifecycle?

    1. Design, Implementation, Testing, Maintenance, Planning
    2. Planning, Design, Implementation, Testing, Maintenance
    3. Design, Planning, Testing, Implementation, Maintenance
    4. Implementation, Design, Testing, Planning, Maintenance
    Show answer

    Answer: B. Planning, Design, Implementation, Testing, Maintenance

    The correct order is Planning, Design, Implementation, Testing, and Maintenance as per conventional software development lifecycles.

  2. What will be the result of the following code: len('Algorithm')

    1. 8
    2. 9
    3. 10
    4. 7
    Show answer

    Answer: B. 9

    The len() function returns the number of characters in a string, including spaces. 'Algorithm' has 9 characters.

  3. Which of the following is NOT a characteristic of a good algorithm?

    1. Ambiguity
    2. Finiteness
    3. Effectiveness
    4. Definiteness
    Show answer

    Answer: A. Ambiguity

    A good algorithm should be clear and unambiguous, meaning it should not have ambiguity.

  4. Which Python keyword is used for creating functions?

    1. def
    2. fun
    3. function
    4. create
    Show answer

    Answer: A. def

    In Python, the 'def' keyword is used to define a function.

  5. What is typically the first step in creating an algorithm?

    1. Writing code
    2. Identifying the problem
    3. Debugging
    4. Testing
    Show answer

    Answer: B. Identifying the problem

    The first step in creating an algorithm is to clearly identify and define the problem to be solved.

Take the full quiz

Browse all Programming Concepts quizzes