Introduction to Programming Quiz - CBSE Class 10 ICT
Free practice quiz: Introduction to Programming (CBSE Class 10 ICT). 20 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
Play all 20 questions freeSample questions
What is a variable in programming?
- A place to store data
- A type of function
- A programming language
- A mistake in code
Show answer
Answer: A. A place to store data
A variable is used to store data in a program.
Which data type would you use to store a true/false value?
- Integer
- Floating point
- Boolean
- String
Show answer
Answer: C. Boolean
A Boolean data type is used to store true or false values.
Which operator is used for equality comparison in most programming languages?
- ==
- =
- >
- <
Show answer
Answer: A. ==
The '==' operator is used to compare two values for equality in most programming languages.
What is recursion in programming?
- A type of loop
- A function calling itself
- A syntax error
- A conditional statement
Show answer
Answer: B. A function calling itself
Recursion occurs when a function calls itself to solve a problem.
What is meant by 'debugging'?
- Writing code
- Removing errors from code
- Adding features to software
- Compiling code
Show answer
Answer: B. Removing errors from code
Debugging is the process of finding and fixing errors or bugs in a program.