Page 157 - TP_V5.1_C8_fb
P. 157

4.  You are creating a Python program that needs to display a welcome message for users. The
                    program should ask the user for their first name and last name, then combine both to display a
                    personalised message like: “Welcome, Honey Bee!”.
                     Write a Python program to accomplish this task.

                 5.  Write the output of the following program:
                     a=[2,1,3,5,2,4]

                     a.remove(2)
                     print(a)
                 6.  You  are  writing  a program  to  calculate  the  area of a rectangle,  and you  want to  reuse  this
                    calculation in multiple parts of the program. How would you create a user-defined function to
                    calculate the area of a rectangle by passing the length and width as parameters? Write the code
                    and explain how the function is called in the program.


                 Chapter 7: Artificial Intelligence and Its Domains


                 1.  You use a voice assistant app, such as Siri or Google Assistant, to set reminders and play music.
                    Describe how this app uses Narrow AI to perform these tasks. What makes it an example of
                    Narrow AI rather than General or Super AI?
                 2.  A travel agency wants to improve customer support by introducing an AI chatbot to answer
                    customer queries about flight bookings. The chatbot will communicate with customers in multiple
                    languages. How would Natural Language Processing (NLP) enable the chatbot to understand and
                    respond to customer queries in different languages?
                 3.  Yash works in a factory, where repetitive tasks such as packaging products are a regular part of
                    his job. Lately, Ravi has noticed that the factory is installing machines that can complete these
                    tasks without human intervention. How does the factory benefit from applying this particular
                    category of Artificial Intelligence?

                 4.  Soham is planning to start a business that uses AI to develop chatbots for customer service. He
                    wants the AI to communicate naturally with customers in different languages. Which domain of AI
                    will Soham need to focus on for developing chatbots, and how does this domain help in interacting
                    with customers in their own language?
                 5.  Nisha is designing a facial recognition system for an organization. The system uses AI to identify
                    employees by analysing the unique features of their faces, such as the distance between their
                    eyes and nose. Which technology is used in AI for facial recognition, and how does it work to
                    identify individuals?

                 6.  Eklavya works in a manufacturing unit where machines equipped with AI are used to detect
                    minute cracks in metal sheets. These cracks are often too small to be seen by the human eye.
                    Why is AI used for tasks that require high precision, such as detecting cracks in materials?


                 Chapter 8: Fields of Artificial Intelligence

                 1.  An autonomous car can drive itself without a human. What kind of technology and sensors does
                    this car use to drive safely, and how does AI help it make decisions on the road?



                                                                                                     Assignments  155
   152   153   154   155   156   157   158   159   160   161   162