Page 30 - Touchcode_C7_Flipbook
P. 30
Coding uiz 02 Critical Thinking
Give one word answer to the following questions.
a. What is an unexpected problem in your program? ...........................
b. Name the situation in which the algorithm needs to make
a choice. ...........................
Coding fact
Dabbala Rajagopal “Raj” Reddy is the father of robotics in India.
At a Glance
A loop executes a block of code multiple times until a specific condition is met.
When there is a loop inside another loop, it is called a nested loop.
In sequencing, tasks need to be done in the correct sequence to get the desired output.
In the algorithm needs to make a choice between two or more alternatives.
Iteration is repeating situations.
A bug is an unexpected problem in your program.
Exercise
A. Tick ( ) the correct option.
1. Which of the following is the basic building block used for designing algorithms?
a. Sequencing b. Selection
c. Iteration d. All of the above
2. Which of the following approach will you use to make a sandwich?
a. Sequencing b. Selection
c. Iteration d. All of the above
3. What is a bug in programming?
a. A fault in a program that causes it to run correctly.
b. A fault in a program that can predict output.
28 Touchcode-VII

