Page 110 - TP_V5.1_C7_fb
P. 110

6.  Competency-based/Application-based questions.                                  Experiential Learning
                     a.   Shweta  was writing  a program  in which she wanted  to  execute  a particular  set  of
                        statements depending upon a particular test condition. Which type of statements can she use for
                        this?

                        ______________________________________________________________________________________

                     b.   Arun is calculating the grades of students on the basis of the marks scored by the students. Suggest
                        him the best suitable selection statement to get the desired result.
                        ______________________________________________________________________________________

                     c.   Renuka is explaining in the class that if the result of any expression is true (yes), then a particular
                        course of action or the statement has to be followed; otherwise, the course of action or the statement
                        is executed. Which statement is she talking about?
                        ______________________________________________________________________________________






                       LAB ACTIVITY                                                                  Computational Thinking


                      Visit your computer lab and perform the following actions:

                      ▶   Write a program in Python to find whether a given number is divisible by 5 or not.
                      ▶  Accept length and breadth of a rectangle from user and check if it is square or not.
                      ▶   A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years.
                         Accept salary and year of service of the employee from the user and print net bonus amount.

                      ▶   Write a program to enter the age of a person and find out whether he is retired or not. The age of
                         retirement is 60 years.
                      ▶  A school has the following rules for the grading system:

                         Below 30 – F        30 to 40 – E            40 to 60 - D
                         60 to 80 – C       80 to 90 – B             Above 90 - A
                         Write a program to enter the marks and print the corresponding grade in Python.

                      ▶   Write a Python program to take a number from 1 to 12 from the user and print the name of
                         the month according to the  number, like January for 1, February for 2, and so on.

                      ▶   Write a program to accept the annual salary of an employee and calculate the income tax
                         payable by him/her according to the following criteria:
                         Annual Salary                               Tax
                         ` 3.00 lakh – ` 5.00 lakh                   5%
                         ` 5.00 lakh- ` 7.5 lakh                     10%
                         ` 7.5 lakh – ` 10.00 lakh                   15%
                         ` 10.00 lakhs – ` 12.50 lakh                20%
                         ` 12.5 lakhs – ` 15.00 lakh                 25%
                         Above ` 15 lakh                             30%






                  108   Premium Edition-VII
   105   106   107   108   109   110   111   112   113   114   115