Page 164 - Computer Science V2.0 Class 11
P. 164

num5 = int(input('Enter a number'))
                    print(num1,   num2,   num3,   num4,   num5,   sep = '$')
                    On execution, the program produced the correct output. But Anish edited the program and got the following output:
                    10 20 30 40 50$
                    Which statement did Anish edit?

                 3.  Susan is studying geometry. She wants to create a program in Python to accept the radius and display the area and perimeter
                    of a circle. Help her complete the task.
                 4.  Hardik wants to accept the following details of his friends—name, class, age, and their favourite sport. Thereafter, he wants
                    the program to display the entire data, each data item separated by two blank lines. Help him complete the task.




















































                                                             Answers

                Multiple Choice Questions
                1. (d)     2. (c)      3. (c)     4. (d)      5. (c)     6. (b)     7. (a)
                True or False
                1. (T)     2. (T)      3. (F)     4. (F)      5. (T)     6. (T)     7. (F)      8. (F)     9. (T)
                10. (T)    11. (F)
                Fill in the blanks
                1. token              2. Keywords          3. input()            4. Comments
                5. Enter              6. space             7. string


               150   Touchpad Computer Science (Ver. 2.0)-XI
   159   160   161   162   163   164   165   166   167   168   169