CLASS - VII
CHAPTER - 5 (SEQUENCING WITH BLOCK CODING )
Worksheets
Objective Type Questions
Question 1 What is a bug in programming?
A. A feature in a program that causes it to run correctly
B. A feature in a program that can predict output.
C. A feature in a program that generates incorrect output.
D. All the above
Answer: A feature in a program that generates incorrect output.
Question 2 What is sequencing in programming?
A. A programming structure, where steps are performed in an order.
B. A programming structure, that repeats itself until a condition is met.
C. A feature in a program that generates incorrect output.
D. All the above
Answer: A programming structure, where steps are performed in an order.
Question 3 What is looping in programming?
A. A programming structure, where steps are performed in an order.
A. A programming structure, where steps are performed in an order.
B. A programming structure that repeats itself until a condition is met.
C. A feature in a program that generates incorrect output.
D. All the above
Answer: A programming structure that repeats itself until a condition is met.
Question 4 What is selection in programming?
A. A list of instructions which are followed in a set order
B. A list of instructions where there is a choice based on a condition
C. A list of instructions which will loop based on a condition
D. A list of instructions that will loop forever
Answer: A list of instructions where there is a choice based on a condition
Question 5 What is iteration in programming?
A. A list of instructions which are followed in a set order
B. A list of instructions where there is a choice based on a condition
C. A list of instructions which will loop based on a condition
D. A list of instructions that will loop forever
Answer: A list of instructions which will loop based on a condition
Question / Answers
Question 1. Explain what an algorithm is with the help of an example.
Answer : An algorithm is a detailed step-by-step
process that needs to be followed in
order to complete a task or to solve a
problem.
Example : add two number
- Program Start
- a=5
- b=10
- c=0
- c= a + b
- print a
- Program End
Question 2. What is a Bug?
Answer : A bug is a terminology
used to describe any
unexpected problem in
your program. Just like
we learnt in the past
topics, we follow a sequence of activities
to complete a program. This program is
expected to return a specific output. Any
deviation in the expected and actual
output of the program is known as a
bug.
Question 3. Create a pseudocode to
check if age entered by the user is of a
senior citizen or not. Consider that person is named as a senior citizen if his
age is above 60 years old.
Answer : int age = 61;
if (age>=60)
print(“Person is a senior
citizen”);
else
print(“Person is not a senior
citizen”);
Endif