Copy of Computer Unit - 5
Copy of Computer Unit - 5
Ans: Artificial Intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think
and learn like humans.
Ans: Narrow AI is designed to perform a narrow task, such as language translation or image recognition, within a limited
context.
Ans: General AI is the hypothetical intelligence of a machine that has the capacity to understand, learn, and apply
knowledge across different domains, similar to human intelligence.
Ans: Machine Learning is a subset of AI that involves the development of algorithms and statistical models that enable
computers to learn from and make predictions or decisions based on data.
Ans: Supervised Learning involves training a model on a labeled dataset, where each input-output pair is provided, to
learn the mapping between input and output.
Ans: Example: Predicting house prices based on features like square footage, number of bedrooms, and location.
Ans: Unsupervised Learning involves training a model on an unlabelled dataset to discover patterns or structures within
the data.
Ans: Example: Clustering similar customer profiles based on their purchasing behaviour.
Ans: Reinforcement Learning involves training a model to make sequential decisions by interacting with an environment
and receiving feedback in the form of rewards or penalties.
Ans: Example: Training a robot to navigate a maze by rewarding it for reaching the goal and penalizing it for hitting
obstacles.
Ans: A neural network is a computational model inspired by the structure and function of the human brain, composed of
interconnected nodes (neurons) organized in layers.
Ans: A perceptron is the simplest form of a neural network, consisting of a single layer of input nodes connected directly
to an output node.
Ans: Deep Learning is a subset of Machine Learning that uses neural networks with multiple layers (deep neural
networks) to learn hierarchical representations of data.
Ans: A convolutional neural network is a type of deep neural network designed for processing and analyzing visual data,
such as images.
Ans: A recurrent neural network is a type of neural network designed for sequential data processing, such as time series
data or natural language processing.
Ans: Natural Language Processing is a branch of AI that focuses on enabling computers to understand, interpret, and
generate human language.
Ans: Example: Sentiment analysis of customer reviews to determine whether they are positive, negative, or neutral.
Ans: Computer vision is a field of AI that focuses on enabling computers to interpret and understand visual information
from the real world, such as images and videos.
Ans: Example: Object detection in images to identify and locate objects of interest.
Ans: Reinforcement Learning is a type of Machine Learning where an agent learns by interacting with an environment
and receiving feedback in the form of rewards or penalties.
Ans: Supervised Learning is a type of Machine Learning where a model is trained on a labeled dataset to learn the
mapping between input and output.
Ans: Unsupervised Learning is a type of Machine Learning where a model is trained on an unlabeled dataset to discover
patterns or structure within the data.
Ans: Transfer Learning is a technique in Machine Learning where a pre-trained model is used as a starting point for a new
task, allowing the model to leverage knowledge learned from previous tasks.
2|Page EMP SCHOOL RAWALPINDI 03130603330
Unit 5- Application of Computer Science
Q26. What is overfitting?
Ans: Overfitting occurs when a model learns to memorize the training data instead of generalizing, leading to poor
performance on unseen data.
Ans: Underfitting occurs when a model is too simple to capture the underlying structure of the data, leading to poor
performance on both training and test data.
Ans: A hyperparameter is a configuration parameter that is set before the training process begins and affects the learning
process of a model.
Ans: Cross-validation is a technique used to assess the performance of a model by dividing the dataset into multiple
subsets, training the model on some subsets, and evaluating it on others.
Q30. What are some real-world applications of Artificial Intelligence and Machine Learning?
Ans: Applications include self-driving cars, virtual assistants, recommendation systems, fraud detection, medical
diagnosis, and automated trading systems.
Ans: Role of Artificial Intelligence: Artificial Intelligence (AI) is a branch of computer science to make computer-controlled
machines that can intelligently perform human-like tasks. Using AI-based machines is like fixing an intelligent brain in the
machines that has decision-making capabilities to solve complex problems. Using AI technology, computer devices can be
trained to perform various tasks by imitating actions of human beings. It is the technology related with making intelligent
machines and developing intelligent software. In other words, it is the techniques shown by human beings, as the
technology is growing up in machines and with high precision. AI is changing the world by helping us to solve complex
problems what was not possible before.
Q32. Define Machine Learning specify its main area of problem solving?
Ans: Machine Learning: Machine learning is a field within AI that teaches computers to learn from data and experience
without being explicitly programmed. It involves developing algorithms that enable machines to learn from large
amounts of data and make predictions or decisions based on that data. Machine learning can be applied in various areas
to automate decision-making. Machine learning also refers to making decision-making capabilities over time as more
sample data is input in the computers.
Ans: Natural Language Processing, Computer Vision, Robotics, Expert Systems, Machine Learning, and Neural Networks
are some of the main areas.
Ans: Natural Language Processing involves enabling computers to understand, interpret, and generate human language.
Ans: Example: Virtual assistants like Siri or Alexa that understand and respond to voice commands.
Ans: Computer Vision enables computers to interpret and understand visual information from the real world, such as
images and videos.
Ans: Example: Facial recognition systems used for security or photo tagging on social media.
Ans: Robotics involves the design, construction, operation, and use of robots to perform tasks in various environments.
Ans: Expert Systems are AI systems that mimic the decision-making ability of a human expert in a specific domain.
Ans: Example: Medical diagnosis systems that help doctors identify diseases based on symptoms.
Ans: Machine Learning is a subset of AI that enables computers to learn from data and improve their performance over
time without being explicitly programmed.
Ans: Example: Email spam filters that learn to classify emails as spam or not spam based on user feedback.
Ans: Neural Networks are computational models inspired by the structure and function of the human brain, composed of
interconnected nodes (neurons) organized in layers.
Ans: Example: Image recognition systems that use deep neural networks to identify objects in images.
Ans: Deep Learning is a subset of Machine Learning that uses neural networks with multiple layers (deep neural
networks) to learn hierarchical representations of data.
Ans: Example: Language translation systems that use deep neural networks to translate text between different
languages.
Ans: Speech Recognition is the ability of a computer to recognize and transcribe spoken language into text.
Ans: Example: Voice-activated virtual assistants like Google Assistant or Amazon Echo.
Ans: Sentiment Analysis involves analyzing text data to determine the sentiment or opinion expressed by the author, such
as positive, negative, or neutral.
Ans: Example: Analyzing social media posts to gauge public opinion about a product or service.
Ans: Image Segmentation involves dividing an image into multiple segments or regions to simplify its representation and
facilitate analysis.
Ans: Example: Medical imaging systems that segment different organs or tissues in medical images for diagnosis.
Ans: Autonomous Vehicles are vehicles equipped with AI systems that can navigate and operate independently without
human intervention.
Ans: Recommendation Systems are AI systems that suggest relevant items or content to users based on their preferences
and behavior.
Ans: Example: Movie recommendation systems like those used by Netflix or Amazon to suggest movies or products to
users.
Supervised learning algorithms take a set of known input data and known output responses to build a model to make
predictions. In supervised learning, the goal is to learn how to do the mapping from the input to the output. Once the
model is built, it is used to make new predictions on unseen data as well. Machine learning is used to solve complex
problems that involve a large amount of data, but there is no formula to predict the output.
Example:
Assume that we want to predict the price of a car. In this case, we need to create a dataset of cars having the input like:
Number of seats
Front-wheel/rear-wheel drive
Keyless entry
Safety features
Country of Manufacturing
We have to label the cars with their prices. After entering the data for a large number of cars, we can train the algorithm
and create a model. The price of a new car can be predicted based on the input fed in the supervised learning algorithm.
In unsupervised learning, the training data is unseen, and it is un-labeled. The meaning of un-labeled is that the data is
not assigned a category or group. The unseen data is fed into a machine learning algorithm to train the model. The
trained model tries to search for a pattern and gives the desired result. The unsupervised learning algorithm looks for
hidden patterns in the input data. It uses a learning technique known as clustering (grouping). The unsupervised learning
algorithm finds hidden patterns or groupings in the input data to make them suitable for clustering and data analysis.
Example:
A bank wants to predict how capable an applicant is of repaying the loan. A machine learning system is to be set up to
ensure that the loan is given to the applicant who can repay it. In this case, the applicant will provide the data about his
monthly income, debt, credit history, etc., along with his personal data such as age, phone number, gender, etc.
Information about age, mobile number, and gender are not important for determining the loan risk. Therefore, age,
mobile number, and gender can be eliminated for setting up the machine learning system for predicting the loan risk.
Q60. AI machine learning algorithms as shown in the figure below can make errors and produce wrong results. Justify?
Ans: AI machine learning algorithms shown in the figure can make errors and produce wrong results as they do not apply
formulas like traditional algorithms. It is difficult to find out what went wrong in the AI algorithms as there is no proper
breakdown of how the AI algorithm is making decisions. Therefore, sometimes AI algorithms can make wrong decisions.
AI algorithms with a lack of transparency can create dangerous AI systems that can make wrong decisions and harm
people or destroy humanity. The behavior of AI algorithms may even be unpredictable to the developers or experts.
Inaccuracy in AI algorithms works in the background when AI systems are used. Inaccuracy in algorithms can put people
in jail, cause businesses to collapse, or even death of a patient.
Designers of AI algorithms must instill moral and ethical values in AI systems and focus on benefiting people. There are
many benefits of AI systems. The utilization of AI-based systems is transforming our day-to-day activities and improving
our lifestyle. It helps in solving many complex problems that depended on human intelligence in the past. The following
are some important benefits of using AI systems:
AI systems used in hospitals provide better diagnosis and treatment of diseases at early stages such as cancer.
Help in the design and production of high-quality products and increase production in a safe environment.
Help in travel and transportation by suggesting short routes for the drivers and informing them about traffic conditions in
real-time.
Correct decision-making helps in improving marketing, and sales, and enhancing customer satisfaction.
Help in developing better learning software and introducing new teaching techniques.
Usage of AI-based assistants such as Siri and Alexa, suggest products by monitoring our browsing habits.
Ans: AI has various applications across industries such as healthcare, finance, education, transportation, and
entertainment.
Ans: AI in healthcare involves using AI technologies to improve diagnosis, treatment planning, patient care, and drug
discovery.
Ans: Example: AI-powered medical imaging systems that assist radiologists in detecting diseases like cancer from X-rays
or MRI scans.
Ans: AI in finance involves using AI algorithms and tools for tasks like fraud detection, risk assessment, trading, and
customer service.
Ans: Example: Algorithmic trading systems that use AI to analyze market data and make investment decisions.
Ans: AI in education involves using AI technologies to personalize learning experiences, provide feedback, and support
teaching and administrative tasks.
Ans: Example: Intelligent tutoring systems that adapt learning materials and pace based on individual students' needs
and performance.
Ans: AI in transportation involves using AI technologies to improve safety, efficiency, and sustainability in transportation
systems, including autonomous vehicles and traffic management.
Ans: Example: Self-driving cars that use AI algorithms to perceive the environment, make driving decisions, and navigate
routes.
Ans: AI in entertainment involves using AI technologies to create, personalize, and recommend content in areas like
gaming, media, and virtual reality.
Ans: Example: Personalized content recommendations on streaming platforms like Netflix or Spotify based on user
preferences and viewing history.
Ans: AI in customer service involves using AI-powered chatbots, virtual assistants, and sentiment analysis tools to
enhance customer support and satisfaction.
Ans: Example: Chatbots on websites that provide instant responses to customer inquiries and resolve common issues.
Ans: AI in marketing involves using AI technologies for tasks like predictive analytics, personalized recommendations, and
targeted advertising campaigns.
Ans: Example: Targeted advertising on social media platforms like Facebook or Instagram based on user preferences and
behavior.
Ans: AI in agriculture involves using AI technologies for tasks like crop monitoring, yield prediction, pest detection, and
precision farming.
Ans: Example: Drones equipped with AI-powered cameras that analyze crop health and identify areas needing irrigation
or pest control.
Ans: AI in cyber security involves using AI algorithms for threat detection, anomaly detection, and security analytics to
protect against cyber attacks and data breaches.
Ans: Example: AI-powered intrusion detection systems that analyze network traffic patterns to identify and block
suspicious activities.
Ans: Example: AI opponents in video games that use machine learning algorithms to adapt and improve their strategies
based on player behavior.
Ans: AI in environmental monitoring involves using AI technologies for tasks like climate modeling, pollution tracking, and
wildlife conservation.
Ans: Example: AI-powered sensors deployed in oceans to monitor water quality, detect oil spills, and track marine life.
Ans: AI in language translation involves using AI-powered translation tools and natural language processing algorithms to
translate text or speech between different languages.
Ans: Example: Online translation services like Google Translate or Microsoft Translator that use AI to provide instant
translations between languages.
Ans: AI in HR involves using AI technologies for tasks like resume screening, candidate sourcing, employee engagement
analysis, and workforce planning.
Ans: Example: AI-powered recruitment platforms that use machine learning algorithms to match candidates with job
opportunities based on skills and experience.
Ans: AI in retail involves using AI technologies for tasks like demand forecasting, inventory management, customer
segmentation, and personalized shopping experiences.
Ans: Example: Recommendation systems on e-commerce websites like Amazon that suggest products based on past
purchases and browsing history.
Ans: AI in smart homes involves using AI-powered devices and systems to automate household tasks, control home
appliances, and enhance energy efficiency and security.
Q92. Elaborate the importance/ purpose of Speech Recognition. Mention its disadvantages.
Importance/Purpose:
10 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
It is used for various purposes. These include dictating text into a computer or providing a way to issue commands. It is
used by virtual assistants like Siri and Alexa. Artificial assistants are software that take verbal commands and perform
various tasks.
Computer vision is a field of AI that enables computer systems to obtain meaningful information from digital images and
videos. To achieve this, it uses cameras, data, and algorithms.
A large amount of data (images/videos) is fed into the computer. Computer vision applications repeatedly perform data
analysis until it recognizes and distinguishes images. After gaining a deep understanding of data, computer systems carry
out automated actions. AI computer vision gives the ability to computer systems just like it gives ability to think.
Computer vision applications are used in various fields. These include healthcare, security and surveillance, facial
recognition, self-driving cars, parking occupancy detection, traffic flow analysis, manufacturing, construction, and
application of computer vision at crossroads and in traffic flow analysis.
Q94. Analyze the role of Natural Language Processing. Mention its areas of application in our daily life?
Natural Language Processing (NLP) is based on AI. It is about giving computers the ability to understand spoken and
written words just like we do. The purpose of NLP is to provide easy communication between computers and humans by
using natural language. In other words, NLP is concerned with training the computer to process spoken and written
words and take actions accordingly. It helps us to automate our workflow. NLP is a difficult task to achieve. Very complex
algorithms are used to analyze, understand, and translate the natural language in both spoken and written forms instead
of using computer languages.
The following are some areas of application of NLP in our daily life:
Voice recognition
Web search
Chatbots
Sentiment analysis
Ans: Fraud Detection involves using AI systems to identify and prevent fraudulent activities or transactions.
11 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
Q96. Give an example of Fraud Detection.
Ans: Example: Credit card companies using AI algorithms to detect unusual spending patterns and flag potential
fraudulent transactions.
Expert systems are an interactive AI-based computer program designed to solve complex problems. It has decision-
making ability like human experts. It uses knowledge and reasoning to find solutions to problems related to a specific
area.
Cyber security
Q98. Explore the different steps required for the development of Expert Systems?
1. Sufficient amount of knowledge about a specific area is obtained from many experts and fed into the expert
system. A knowledge database is created.
2. When an end user makes a query, the expert system asks the user to enter the required information about it by
filling a questionnaire.
3. The expert system applies rules and reasoning to extract knowledge from the knowledge database and interprets
it to find the solution.
4. Finally, the expert system will provide the solution to the end user.
12 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
Ans: Application of Robotics:
Robotics is concerned with computer-controlled machines that can perform specific tasks with little or no human
intervention. A robot is a machine that contains sensors, cameras, microphones, control systems, etc. Designing of robot
combines mechanical, electrical and structural engineering, mathematics, physics, etc.
Some areas where robots are used include manufacturing industry, transporting goods in warehouses, packaging
medicine, working in extreme temperatures, and handling hazardous material in high-risk environments.
Ans: Game Playing involves developing AI systems capable of playing and winning games against human opponents or
other AI agents.
Ans: Example: DeepMind's AlphaGo, which defeated the world champion in the board game Go.
Ans: Gaming:
AI in gaming refers to the use of computer technology in developing games that give the impression of intelligence and
make the game more challenging, appealing, and fun. AI is applied a lot in modern games to make the opponent player
seem intelligent to present a challenge to the player. It creates exciting playing experiences to keep the player interested
in the game.
Most of the video games, such as car racing, shooting, role-playing, adventure are developed using AI. AI based high
quality 3D graphics technology and virtual reality in games provide a realistic gaming experience to the user and increases
player’s interest in playing the game.
AI filters our spam emails by sending them to spam or trash folders and allow us to see only filtered email. Mobile phones
and laptops use AI technology for facial recognition for identification purposes to provide secure access. Search engines
such as Google and Yahoo use AI to organize information on the Web and make it accessible to us. It provides
personalized recommendations based on our online shopping. The ads that search engines display on our screen while
using the Internet are based on our search history using AI technology. AI is deployed in banking systems to detect fraud
and provide us secure transactions.
AI is used to build self-driving cars. Self-driving cars use AI software connected with devices such as sensors, cameras, and
radars to travel without a driver. The AI software gathers information from these devices and takes real-time driving
decisions. Some companies involved in developing self-driving cars are Audi, BMW, Volkswagen, Tesla, General Motors,
and Volvo, are developing self-driving cars.
Q106. How can AI help for Installing Defense security system to detect threats?
Ans: Defense:
AI is used in defense security systems to detect threats from hackers to steal confidential information. It helps in finding
suspicious activities in computer systems and prevents unauthorized access. It is used in defense to improve surveillance
and develop advanced arms and ammunitions. It helps in training soldiers in computer-simulated wars as well.
Q107. How an AI can work all the time like with Chatbot for customers searching?
13 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
Ans: Chatbot:
A chatbot is a computer program that combines AI with natural language to provide instant answers to website visitors'
questions through text or voice interaction. It mimics human conversation as a virtual assistant and automates responses
to customers' questions. Chatbots are very beneficial in business. Using a chatbot is much cheaper than hiring employees
to provide services to customers. A chatbot can help in selling products and hiring employees. Chatbots are available 24/7
to provide online customer service and improve business.
Ans: Cloud computing is the delivery of computing services over the internet, allowing users to access resources such as
servers, storage, and software on-demand.
Q110. What are the three main types of cloud computing services?
Ans: Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS).
Ans: IaaS provides virtualized computing resources over the internet, including servers, storage, and networking.
Ans: Example: Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform (GCP).
Ans: PaaS provides a platform for developing, testing, and deploying applications over the internet, without the need for
infrastructure management.
Ans: Example: Heroku, Google App Engine, Microsoft Azure App Service.
Ans: SaaS provides access to software applications over the internet on a subscription basis, eliminating the need for local
installation and maintenance.
Ans: A public cloud is a cloud computing environment where resources are owned and operated by a third-party cloud
service provider and shared among multiple users over the internet.
Ans: A private cloud is a cloud computing environment dedicated to a single organization, either hosted on-premises or
by a third-party provider, offering greater control and privacy.
14 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
Ans: A hybrid cloud is a combination of public and private cloud environments, allowing data and applications to be
shared between them.
Ans: A multi-cloud is an approach where an organization uses multiple cloud providers to meet different needs or
mitigate risks.
Ans: Cloud storage is a service that allows users to store, access, and manage data remotely over the internet, eliminating
the need for physical storage devices.
Ans: Virtualization is the process of creating virtual versions of computing resources, such as servers, storage, and
networks, to maximize resource utilization and flexibility.
Ans: Elasticity refers to the ability of cloud computing resources to scale up or down dynamically based on demand,
ensuring optimal performance and cost efficiency.
Ans: Scalability refers to the ability of cloud computing resources to handle increasing workloads or accommodate
growing user demand without compromising performance.
Ans: Cloud security involves protecting data, applications, and infrastructure in cloud computing environments from
unauthorized access, data breaches, and other security threats.
Ans: Cloud migration is the process of moving applications, data, and workloads from on-premises infrastructure to the
cloud or between cloud environments.
Ans: A cloud service provider is a company that offers cloud computing services, such as infrastructure, platforms, and
software, over the internet.
15 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
Ans: AI has numerous positive impacts on our daily lives, such as:
i. Efficiency: AI automates repetitive tasks, saving time and effort. For example, virtual assistants like Siri or Alexa can
help with scheduling, reminders, and searching for information, making daily tasks more efficient.
ii. Personalization: AI algorithms analyze large datasets to provide personalized recommendations in areas like
entertainment, shopping, and content consumption, enhancing user experiences and satisfaction.
iii. Healthcare: AI aids in medical diagnosis, drug discovery, and personalized treatment plans, leading to improved
patient outcomes and faster medical discoveries.
iv. Safety: AI-powered systems enhance safety in various domains, including autonomous vehicles, surveillance, and
cybersecurity, reducing accidents and mitigating risks.
v. Accessibility: AI technologies make information and services more accessible to people with disabilities, such as speech
recognition for the visually impaired or language translation for non-native speakers.
Ans:
Training Labeled data, with input-output pairs provided. Unlabeled data, with only input data provided.
Data
Objectives Predict or classify output based on input data. Discover hidden patterns or structures in data.
Output Model learns to map inputs to desired outputs. Model discovers inherent structure in data.
Evaluation Performance measured using metrics like Evaluation based on measures like silhouette
accuracy, precision, recall, etc. score, coherence score, etc.
Applications:
Example:
Supervised Machine Learning: Predicting house prices based on features like size, location, etc.
Unsupervised Machine Learning: Grouping similar customers based on purchase history without predefined
categories.
16 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
Q3. Describe how computer vision applications help in automation of tasks.
Ans: Computer vision applications automate tasks by leveraging visual data and machine learning algorithms to interpret
and understand the visual world. Here's how they help:
i. Object Detection and Recognition: Computer vision systems can detect and recognize objects in images or videos,
enabling automation in tasks such as inventory management, quality control in manufacturing, and surveillance.
ii. Gesture Recognition: By analyzing human gestures captured through cameras, computer vision systems can automate
tasks like controlling electronic devices, interacting with virtual interfaces, and enabling hands-free operation in various
applications.
iii. Document Processing: Computer vision algorithms can extract text and information from documents, forms, and
images, automating tasks such as data entry, document classification, and content extraction in administrative
workflows.
iv. Autonomous Vehicles: Computer vision enables vehicles to perceive and interpret their surroundings, allowing for
autonomous navigation, object detection, lane following, and collision avoidance, leading to automation in
transportation and logistics.
v. Medical Imaging: In healthcare, computer vision applications automate tasks such as medical image analysis, diagnosis,
and treatment planning by interpreting radiological images, histopathological slides, and other medical imaging data.
Q4. Compare the use of Natural Language Processing (NLP) with computer languages for interaction with computers.
Ans:
Interaction Uses natural human language for Requires users to write code using programming
Method communication, allowing users to interact with languages such as Python, Java, or C++, providing
computers through speech or text input. precise instructions to computers.
Ease of Use:
NLP: Offers a more intuitive and user-friendly interface, allowing individuals with varying technical skills to
interact with computers without the need for programming knowledge.
Computer Languages: Requires users to have programming skills and understanding of syntax, semantics, and
logic to communicate effectively with computers.
Applications:
NLP: Used in virtual assistants, chatbots, voice-controlled devices, sentiment analysis, language translation, and
text summarization, among other applications.
Computer Languages: Used for software development, data analysis, machine learning, and other technical tasks
requiring precise instructions and algorithms.
Flexibility:
NLP: Provides flexibility in communication, allowing users to express commands, queries, or requests in natural
language, which can be interpreted and processed by computers.
Computer Languages: Offers flexibility in programming, enabling users to create custom solutions and algorithms
tailored to specific tasks and requirements.
Learning Curve:
17 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
NLP: Has a lower learning curve for end-users, as it leverages familiar language constructs and does not require
users to learn complex programming concepts or syntax.
Computer Languages: Has a steeper learning curve, requiring users to invest time and effort in learning
programming fundamentals, syntax rules, and best practices.
Limitations:
NLP: May face challenges with ambiguity, context understanding, and language nuances, leading to errors or
misinterpretations in communication with computers.
Computer Languages: Require precise syntax and instructions, making it less forgiving of errors or ambiguities in
code, which can lead to bugs or program failures if not properly written.
Q5. What is a robot? Mention four areas where robots can replace humans that are not mentioned in this unit.
Ans: A robot is a machine designed to carry out tasks autonomously or semi-autonomously, typically with programmable
controls and sensory feedback to interact with its environment.
Robots can come in various forms, from industrial arms on factory assembly lines to humanoid robots in research labs or
service robots in homes and hospitals.
OR (Second Answer)
Robotics:
Robotics is concerned with computer-controlled machines that can perform specific tasks with little or no human
intervention. A robot is a machine that contains sensors, cameras, microphones, control systems, etc. Designing of robot
combines mechanical, electrical and structural engineering, mathematics, physics, etc. Shows the application of robotics
in the automotive industry.
Here are four areas where robots can replace humans that are not mentioned in this unit:
i. Agriculture: Robots can be used in agriculture for tasks such as planting, harvesting, and sorting crops.
ii. Construction: Robots are increasingly being used in construction for tasks such as bricklaying, concrete pouring, and
demolition.
iii. Exploration: Robots are employed in exploration missions in environments where humans cannot easily venture, such
as space, deep sea, or disaster zones.
iv. Retail and Hospitality: Robots are being deployed in retail stores, hotels, and restaurants to automate tasks such as
inventory management, customer service, and food delivery.
Ans: Grammarly:
Grammarly can significantly aid in proofreading and improving writing quality, but it may not be a perfect replacement
for manual proofreading. While Grammarly's AI tool can catch many grammatical errors, spelling mistakes, and suggest
style improvements, it may miss nuanced errors or context-specific issues that a human proofreader would catch.
Additionally, Grammarly may not fully understand the writer's intent or the context of the document, leading to
occasional inaccuracies or inappropriate suggestions. Therefore, while Grammarly can enhance proofreading efficiency
and accuracy, it's often beneficial to combine its use with manual proofreading for the best results.
OR (Second Answer)
Grammarly:
18 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
It is an AI tool for correcting spelling and grammar mistakes in documents. It provides a safe platform for improving
writing skills. To check a document or piece of writing, you copy and paste it into a form and then Grammarly
automatically checks it. It protects users' data that is checked for correction and prevents unauthorized access to their
accounts. It is not a perfect tool as it has some inaccuracy issues. It does not catch every mistake and some suggestions it
gives may not be correct. Since it is not 100% accurate, it is not a replacement of manual proofreading.
Ans:
Education:
AI-based systems in education have many benefits for students, teachers, and school/university administration.
It enhances students' learning and helps teachers to carry out their tasks efficiently to provide quality education.
It helps educational administrators to schedule courses, create class timetables, and analyze students' data to
make better decisions.
It can help university administration in reviewing each student's enrollment application for admission.
Business:
It helps people become efficient, improves productivity, and makes accurate decisions.
Use of AI in business provides better services to customers, helps in business growth, and generates more
revenue.
Q2. Articulate how AI-based technology can improve healthcare professionals and assist farmers in increasing crop
production.
Ans:
Healthcare:
AI-based software is fed in various machines used in hospitals to help in the diagnosis of certain diseases such as
cancer.
AI-based microscope can scan harmful substances and bacteria in samples of blood.
AI-based patient monitoring systems in ICU help in measuring real-time data such as heart-beat, blood pressure,
temperature, etc. that helps doctors in analyzing patients' health conditions.
19 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
AI software provides personalized interaction between the patient and the hospital in managing health by
reducing visits to the hospital.
Agriculture:
AI in agriculture refers to using AI-based modern techniques to help farmers produce high-quality crops and
increase production by using land more efficiently.
To solve the issue of food shortage and livestock in the future, it is important to use AI techniques and innovative
farming ideas to increase production on existing farmland.
AI is used for scanning images of insects that attack crops and livestock to detect and prevent the spread of
disease.
AI can help in monitoring and detecting health problems in livestock using drones, cameras, and computer vision
to avoid the spread of disease.
AI-based farming machinery such as drones, driverless tractors, smart spraying and fertilization systems are very
helpful in increasing crop production.
AI surveillance systems can help in providing security by not allowing unauthorized people and animals that can
harm the crops, to enter the fields.
Q3. Categorize the benefits of cloud computing? Contrast between public and private clouds.
Ans:
Cloud computing offers a wide range of benefits, and these can be categorized into several key areas:
i. Cost Savings: Cloud computing eliminates the need for upfront investments in hardware, software, and infrastructure.
Instead, users pay for the resources they consume on a pay-as-you-go basis, reducing capital expenditures and allowing
for better cost management.
ii. Scalability and Flexibility: Cloud computing offers scalable resources that can be easily adjusted to meet changing
demands. Users can quickly scale up or down their computing resources, storage capacity, and network bandwidth as
needed, allowing for greater flexibility and agility.
iii. Accessibility and Mobility: Cloud computing enables access to data, applications, and services from anywhere with an
internet connection and on any device. This accessibility promotes collaboration, remote work, and mobility, leading to
increased productivity and efficiency.
iv. Reliability and Resilience: Cloud providers typically offer robust infrastructure and redundant systems to ensure high
availability and reliability. Data centers are geographically dispersed, reducing the risk of downtime due to disasters or
hardware failures, thus enhancing resilience and business continuity.
v. Security: Cloud providers invest heavily in security measures to protect data and infrastructure from unauthorized
access, data breaches, and cyber threats. They employ advanced encryption, authentication, and access control
mechanisms to ensure data privacy and compliance with regulatory requirements.
20 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
Ownership Owned and operated by a third-party Owned and operated by a single organization or its
provider, accessible to multiple authorized users.
organizations and users.
Accessibility Publicly accessible over the internet to Accessible over private networks or dedicated
anyone with a valid account or connections, providing greater control over access and
subscription. security.
Resources Resources are shared among multiple Resources are dedicated to a single organization,
Sharing tenants, offering cost efficiencies but providing greater control over performance, security,
potentially raising security and and compliance.
compliance concerns.
Scalability Offers elastic scalability, allowing users Scalability may be more limited, as resources are
to easily scale resources up or down dedicated and provisioned based on organizational
based on demand. needs and capacity planning.
Customization Provides limited customization and Offers greater customization and control over
and Control control over infrastructure and services, infrastructure, services, and security policies, allowing
as they are managed by the cloud for tailored solutions to meet specific organizational
provider. requirements.
Cost Typically offers a pay-as-you-go pricing May involve higher upfront costs for infrastructure and
model, where users pay only for the maintenance, but may offer cost savings in the long
resources they consume. run for organizations with predictable workloads or
compliance requirements.
Q4. Compare between traditional algorithms and AI-based algorithms that use machine learning. Criticize AI-based
algorithms for producing wrong results, at times.
Ans:
Programming Rule-based algorithms designed by Data-driven algorithms that learn from data patterns
Approach humans, with explicit instructions and logic and examples to make predictions or decisions, with
coded to solve specific tasks or problems. minimal human intervention in defining rules.
Problem-solving Approach:
Traditional Algorithms: Designed to solve specific, well-defined problems using predefined rules and logic.
AI-Based Algorithms: Capable of handling complex, dynamic problems with uncertainty or incomplete
information by learning from data patterns and examples.
Performance:
Traditional Algorithms: Performance depends on the accuracy and effectiveness of predefined rules and logic,
which may struggle with complex or noisy datasets.
AI-Based Algorithms: Performance improves with more data and iterations, as machine learning algorithms adapt
and refine their models based on new information and feedback.
Flexibility:
Traditional Algorithms: Limited flexibility and adaptability to changing environments or data patterns, as changes
require manual adjustments to rules and logic.
21 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
AI-Based Algorithms: Highly flexible and adaptable to changing environments or data patterns, as machine
learning algorithms can automatically update and improve their models over time.
Scalability:
Traditional Algorithms: Limited scalability for complex or large-scale problems, as scaling may require significant
manual effort to extend or modify rules and logic.
AI-Based Algorithms: Scalable to large datasets and complex problems, as machine learning algorithms can
handle increasing amounts of data and compute resources efficiently.
Interpretability:
Traditional Algorithms: Highly interpretable, as humans can understand and trace the logic and reasoning behind
the algorithm's decisions or predictions.
AI-Based Algorithms: Less interpretable, as machine learning models may operate as black boxes, making it
challenging to understand the underlying logic or factors driving their decisions.
Examples:
Traditional Algorithms: Sorting algorithms, search algorithms, mathematical models, decision trees, and expert
systems.
AI-Based Algorithms: Linear regression, logistic regression, decision trees, support vector machines, neural
networks, and deep learning models.
AI algorithms are developed by humans who can intentionally or unintentionally introduce bias in them. These
algorithms can produce biased results that can lead to discriminatory consequences on the grounds such as
ethnicity, gender, or age.
Driverless self-driving cars can have an accident. This shows how AI algorithms can cause death.
b) Lovo AI
c) Virtual Assistants
Ans:
a) Chat GPT:
Chat GPT stands for Chat Generative Pre-trained Transformer developed by Open AI. Open AI is an American Artificial
Intelligence Research Laboratory. Chat GPT helps in performing tasks such as creating essays, emails, and coding. It is an
easy-to-use virtual assistant that provides text-based responses to users' questions. It is a very useful AI tool but it raises
some ethical issues as well.
Ethical issues include harm due to misinformation, cheating, and plagiarism in schools and universities that can have a
negative impact on the teaching/learning process and assessment of students' work. It also has issues such as bias,
discrimination, data privacy, and security.
b) Lovo AI:
22 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
Lovo AI is a tool based on an AI algorithm that converts text to speech. It is the award-winning most realistic online text-
to-speech generator. It uses AI techniques to find out the most suitable voice for your text. It supports 500 high-quality
voices and more than 100 languages. It is an easy-to-use tool for creating audio and videos for advertising, marketing,
education, training, etc.
There are some ethical issues that must be considered when developing text-to-voice software.
The developers should take measures to ensure that personal data collected for processing is not mishandled or misused
and there is no violation of privacy.
The training data used for developing the voice AI system should be unbiased.
Developers should also be open and honest about the working of their AI-based algorithm to implement transparency.
AI tools that create new content such as audio, video, music, text, and images can raise the issue of copyright
infringements and harmful content.
It is the responsibility of developers to ensure that the voice AI systems are designed for the benefit of people and do not
harm anyone.
c) Virtual Assistants:
Virtual assistants are an interactive AI-based application program that can understand natural language. Popular virtual
assistants are Apple's Siri, Amazon Alexa, Google Assistant, Chat GPT, and Microsoft Cortana. You can ask a question to it
and it will give you the answer. Virtual assistants have become part of our daily life. It can perform various tasks such as
sending text messages, making phone calls, playing music, making purchases, making search queries, and creating emails.
Developers of virtual assistants have seen many ethical challenges. Virtual assistants store information of people who use
it. The user does not know where the information is stored and if it is protected against security and privacy risks. The
developers of virtual assistants should be honest, trustworthy, and abide by the code of ethics. They should ensure that
the information about people is not misused or cause any type of harm to individuals or people.
23 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
MCQs
S.No Question a) b) c) d)
2 AI-based systems in the Customer service E-commerce Fraud detection Social media
business help with?
5 Which of the following is a High cost Scalability Limited access Physical storage
characteristic of cloud requirement
computing?
8 Which field involves AI systems Computer Vision NLP Robotics Expert Systems
interpreting visual data?
11 Which AI tool is known for Google Assistant Chat GPT Lovo AI Microsoft
creating essays and emails? Cortana
24 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
12 What is a major concern with Cost Misinformation Speed Lack of features
the use of AI tools like Chat
GPT?
15 What does NLP stand for? Natural Life Natural Language Neural Logic Network
Processing Processing Protocol Language
Protocol
16 AI-based surveillance systems Improving user Providing security Enhancing audio Managing
help by? interface quality finances
17 Which cloud service model IaaS PaaS SaaS All of the above
provides virtualized computing
resources?
18 What is one ethical concern Data privacy Low cost Accessibility Usability
related to virtual assistants?
19 In AI-based algorithms, Data patterns Hard coding Predefined rules Fixed logic
flexibility is achieved through?
21 What does "scalability" in Ability to adjust High cost Low latency Limited
cloud computing refer to? resources accessibility
27 Which AI tool is known for its Chat GPT Lovo AI Siri Alexa
text-to-speech capabilities?
25 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
28 What is a disadvantage of AI- Bias introduction High flexibility Increased None of the
based algorithms? accuracy above
Test Paper 1
MCQs
S.No Question a) b) c) d)
1 What is AI used for in education? Personalization Grading Scheduling All of the above
2 AI-based systems in business help Customer E-commerce Fraud detection Social media
with? service
4 AI in agriculture can assist with? Urban planning Pest detection Financial analysis Language
translation
5 Which of the following is a High cost Scalability Limited access Physical storage
characteristic of cloud requirement
computing?
9 What type of AI technique is used NLP Robotics Computer Vision Game Playing
in virtual assistants like Siri?
10 What is a common application of Fraud Gaming Video processing None of the above
AI in finance? detection
Short Questions
9. What ethical concerns arise from the use of AI tools like Chat GPT?
Long Questions
2. Explain the benefits and drawbacks of AI-based algorithms in solving complex problems.
3. Describe the ethical issues related to virtual assistants and how they can be mitigated.
Test Paper 2
MCQs
S.No Question a) b) c) d)
1 Which AI tool is known for Google Assistant Chat GPT Lovo AI Microsoft
creating essays and emails? Cortana
5 What does NLP stand for? Natural Life Natural Language Neural Logic Network
Processing Processing Protocol Language
Protocol
27 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
7 Which cloud service model IaaS PaaS SaaS All of the
provides virtualized computing above
resources?
8 What is one ethical concern Data privacy Low cost Accessibility Usability
related to virtual assistants?
Short Questions
Long Questions
Test Paper 3
MCQs
S.No Question a) b) c) d)
1 What does "scalability" in cloud Ability to adjust High cost Low latency Limited
computing refer to? resources accessibility
28 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
2 What is a significant benefit of Entertainment Safety Marketing Customer
using AI in autonomous support
vehicles?
7 Which AI tool is known for its Chat GPT Lovo AI Siri Alexa
text-to-speech capabilities?
9 Which field uses AI for tasks like Agriculture Healthcare Entertainment Retail
drug discovery and diagnosis?
Short Questions
Long Questions
29 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
5. Describe the challenges and opportunities of AI in the automotive industry.
Test Paper 4
MCQs
S.No Question a) b) c) d)
1 What is AI in gaming used for? Creating intelligent Real-time Social None of the
opponents analysis networking above
2 What is a key advantage of cloud Cost Savings Less data Limited storage No security
computing in businesses?
3 Does AI help in medical imaging Analysing Creating movies Designing Cooking food
by? radiological images clothes
4 What is one application of AI in Building houses Monitoring Cleaning water None of the
agriculture? crop health above
5 Which AI tool is primarily used Virtual Assistants Chat GPT Lovo AI Google Search
for speech recognition?
7 What is a common ethical Bias and Increased Better food Better fashion
concern with AI technologies? discrimination happiness
9 What does AI in finance often Fraud detection Weather Game None of the
involve? forecasting development above
Short Questions
30 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
10. Discuss the use of AI in financial market predictions.
Long Questions
Test Paper 5
MCQs
S.No Question a) b) c) d)
2 What is one key function of AI in Self-driving cars Interior design Marketing Cooking food
the automotive industry? campaigns
4 What is a major ethical issue Privacy concerns High speed Low cost High accuracy
with AI in data analysis?
5 What is the role of AI in game Creating food Enhancing gameplay Teaching None of the
development? players above
31 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0
Unit 5- Application of Computer Science
9 What is the purpose of using AI Forecasting trends Creating art Playing music Writing books
in predictive analytics?
Short Questions
Long Questions
5. Describe the integration and impact of AI in the healthcare sector, focusing on patient care and management.
32 | P a g e E M P S C H O O L R A W A L P I N D I 0 3 1 3 0 6 0 3 3 3 0