Page 145 - 2611_SmartGPT Pro V(5.0) C-7
P. 145

Periodic Assessment                          4

                                                    (Based on chapters 9 & 10)

                 1.  Write the output for the following codes:
                                               Code                                             Output


                      num1 = int(input("Enter first number: "))
                      num2 = int(input("Enter second number: "))

                      if num1 > num2:
                          print("The largest number is:", num1)
                      else:

                          print("The largest number is:", num2)


                      num = int(input("Enter a number: "))
                      square = num ** 2

                      print("The square of", num, "is", square)


                 2.  Write the full form of the following:

                    a.  NLP:      ____________________________________________

                    b.  ML:       ____________________________________________
                    c.  OCR:      ____________________________________________


                 3.  Look at the given pictures and write their names.
                    a.




                                             ___________________________________________________
                    b.



                                             ___________________________________________________

                    c.



                                             ___________________________________________________

                    d.



                                             ___________________________________________________





                                                                                             Periodic Assessment 4  143
   140   141   142   143   144   145   146   147   148   149   150