Page 121 - Computer_Genius_v2.1_C7_flipbook
P. 121

Competency-based/Application-based questions                        Information Literacy

                   1.    Shobhit created a program in AI Connect with multiple conditional statements using textual coding.
                       Which keyword must he have used for the situation where code will try the condition,  if the previous
                       condition is not true?
                   2.    Amrita wants to create a program in AI Connect to determine the type of solution on the basis of
                       entered pH value. But she does not know what to print if the pH value is 7. Help her by writing an
                       output value for it.




                                                                                        Critical Thinking
                    LAB Activity                                                        Interdisciplinary Learning



                    1.  Create a program to convert Kelvin to Celsius.

                        Ask the user to enter temperature in kelvin then use this formula to convert into Celsius.
                       Hint: Celsius = (Kelvin – 273.15)
                        Fill the following blanks by calculating it from the code.
                        (a)  200K = _______________ C               (b) 323K = _______________ C
                        (c)  353K = _______________ C               (d) 390K = _______________ C

                   2.  Create a program to convert Celsius to Kelvin.
                      Hint: Celsius = (Kelvin – 273.15)
                        Fill the following blanks by calculating it from the code.
                        (a)  20 C = _______________ K               (b) 26C = _______________ K

                        (c)  30C = _______________ K                (d) 15C = _______________ K
                   3.    Create an AI Connect program to calculate the amount of Force required to push a block of 20 Kg
                      moving with an acceleration of 1m/s.

































                                                                              Exploring Science with Coding-2   119
   116   117   118   119   120   121   122   123   124   125   126