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 freeSample questions
Which is the correct order of phases in the software development lifecycle?
- Design, Implementation, Testing, Maintenance, Planning
- Planning, Design, Implementation, Testing, Maintenance
- Design, Planning, Testing, Implementation, Maintenance
- 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.
What will be the result of the following code: len('Algorithm')
- 8
- 9
- 10
- 7
Show answer
Answer: B. 9
The len() function returns the number of characters in a string, including spaces. 'Algorithm' has 9 characters.
Which of the following is NOT a characteristic of a good algorithm?
- Ambiguity
- Finiteness
- Effectiveness
- Definiteness
Show answer
Answer: A. Ambiguity
A good algorithm should be clear and unambiguous, meaning it should not have ambiguity.
Which Python keyword is used for creating functions?
- def
- fun
- function
- create
Show answer
Answer: A. def
In Python, the 'def' keyword is used to define a function.
What is typically the first step in creating an algorithm?
- Writing code
- Identifying the problem
- Debugging
- 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.