Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 113 - 2505_CoreGPT(Podar)_Flipbook_C7
P. 113

    Mind Boggler

                        Competency-based question.
                                                                                                     21 st   #Technology Literacy
                                                                                                   Century
                        1.   Ravi is learning the FOR...NEXT loop in BASIC-256. His teacher explains   Skills  #Information Literacy
                           that it repeats instructions a fixed number of times using a counter
                           variable. Ravi is asked to create a program to print numbers from 1 to 5.

                        2.   Maya is creating a quiz program. After displaying a question, she uses the PAUSE statement to give
                           users time to think. She writes:
                           PRINT "What is 2 + 2?"

                         PAUSE 5
                         PRINT "The answer is 4."

                           Why is the PAUSE statement important in Maya’s program?

                      Lab Session                                                                 Century   #Technology Literacy
                                                                                                     21 st
                                                                                                    Skills
                      Write a program to:
                      1.  Print the series 1, 4, 7, 10, ..., 40 using FOR…NEXT statement.
                      2.  Print the table of the number input by the user, using FOR…NEXT statement.
                      3.  Create a WHILE…END…WHILE STATEMENT loop to find the Factorial of 125.

                     Teacher's Note

                       1.  Go through all the topics covered in this chapter.
                       2.  Explain the concept of looping statements to the students.
                       3.  Discuss about conditional statements of BASIC-256 with the students.

                                                                         Looping Control Statements in BASIC-256        111

| 108 109 110 111 112 113 114 115 116 117 118 |