Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 109 - 2620_Birla Open Mind C-8
P. 109

    b.                                                  start
                                   Repeat 6 times
                                   (
                                      Put a cross
                                      Move 1 right
                                      Move 1 down
                                   )

                            3.  Competency-based/Application-based questions:

                                a.   Lokesh has created a program in which he has written block of code multiple times to cover the path
                                  ten times if a given condition is true. What can he use to reduce the lines of code in his program?

                                b.   Your sister Vidhya wants to display “Yes” or “No” for a year to be both a leap year and a century
                                  year. But she is unable to do so. Write the program for her.

                                                                                            21 st
                              DIY In The Lab                                             Century   #Critical Thinking
                                                                                           Skills
                     To
                     Subject   Programming

                       Write a program to print all the numbers from 1 to 50 that are divisible by the numbers 5 and 10. Also
                       include first and the last number in calculation.

                     For The Teacher
                        Discuss about some real-life examples of conditional situations to teach the concept of conditions.
                        Explain the concept of loop with some real-life examples.

                                                                                                 #Algorithmic Intelligence 107

| 104 105 106 107 108 109 110 111 112 113 114 |