Introduction to Programming Quiz - CBSE Class 7 ICT
Free practice quiz: Introduction to Programming (CBSE Class 7 ICT). 20 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
Play all 20 questions freeSample questions
What is programming?
- A way to cook food
- A set of instructions to be executed by a computer
- A type of video game
- A method to connect to the internet
Show answer
Answer: B. A set of instructions to be executed by a computer
Programming involves writing a set of instructions that a computer can execute to perform tasks.
What is syntax in programming?
- The order of operations
- The spelling and punctuation of code
- The memory allocation
- The speed of the program
Show answer
Answer: B. The spelling and punctuation of code
Syntax refers to the set of rules that define the combinations of symbols that are considered to be correctly structured programs in a programming language.
What is a conditional statement?
- A statement that runs only if a specific condition is true
- A statement that always runs
- A statement that shows a message
- A type of loop
Show answer
Answer: A. A statement that runs only if a specific condition is true
A conditional statement allows the program to execute certain parts of code based on whether a condition is true or false.
What is an integrated development environment (IDE)?
- A type of computer
- A software application that provides comprehensive facilities to programmers
- A programming language
- A type of algorithm
Show answer
Answer: B. A software application that provides comprehensive facilities to programmers
An IDE is a software application that provides tools for coding, debugging, and running applications all in one place.
What does 'encapsulation' mean in programming?
- Containing all data and functions within a single unit
- Spreading code across multiple files
- Organizing data in a table
- Converting variables to text
Show answer
Answer: A. Containing all data and functions within a single unit
Encapsulation refers to the bundling of data and the methods that operate on that data within a single unit, often a class in OOP.