0% found this document useful (0 votes)
10 views2 pages

Python and AI Concepts Quiz

The document outlines an examination format with various sections including fill in the blanks, true or false, multiple choice questions, one word answers, short answer questions, and case-based questions. It covers topics related to Python programming, Artificial Intelligence, Sustainable Development Goals, and data analysis. The exam is designed to assess knowledge in these areas over a duration of 1½ hours for a total of 50 marks.

Uploaded by

abpsonlineclass
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Python and AI Concepts Quiz

The document outlines an examination format with various sections including fill in the blanks, true or false, multiple choice questions, one word answers, short answer questions, and case-based questions. It covers topics related to Python programming, Artificial Intelligence, Sustainable Development Goals, and data analysis. The exam is designed to assess knowledge in these areas over a duration of 1½ hours for a total of 50 marks.

Uploaded by

abpsonlineclass
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Time: 1½ Hours

Maximum Marks: 50

SECTION A – Fill in the Blanks (5 × 1 = 5)


1. The __________ statement is used when a condition is false in Python.
2. A function is defined in Python using the keyword __________.
3. Artificial Intelligence enables machines to think like __________.
4. SDGs were adopted in the year __________.
5. A Python list is enclosed within __________ brackets.

SECTION B – True or False (5 × 1 = 5)


6. Python does not allow nested if statements.
7. Strings in Python are immutable.
8. Machine Learning is a domain of Artificial Intelligence.
9. Data Science helps in analysing large amounts of data.
10. Robotics is unrelated to Artificial Intelligence.

SECTION C – Multiple Choice Questions (5 × 1 = 5)


11. Which loop is used when the number of iterations is known?
a) while b) for c) if d) break

12. Which data type stores multiple values in a single variable?


a) int b) string c) list d) float

13. Which AI domain deals with human language?


a) Robotics b) NLP c) Computer Vision d) Data Science

14. How many Sustainable Development Goals are there?


a) 12 b) 15 c) 17 d) 20

15. Which field of AI helps computers identify images?


a) NLP b) Expert Systems c) Computer Vision d) Robotics

SECTION D – One Word Answers (5 × 1 = 5)


16. Name the statement used to check multiple conditions in Python.
17. What is the output of a function called?
18. Name the AI field used in chatbots.
19. Write the SDG number for Quality Education.
20. What do we call the process of extracting information from data?

SECTION E – Short Answer Questions (5 × 4 = 20)


21. Explain if–elif–else control structure with an example.
22. What are functions? Write any two advantages.
23. Define Artificial Intelligence and explain two AI domains.
24. What are Sustainable Development Goals? Why are they important?
25. Explain strings and lists in Python with examples.

SECTION F – Case-Based Questions (2 × 5 = 10)


26. A school wants to automate attendance using Python.
a) Which control structure will be used?
b) Which data type will store student names?
c) Why are functions useful?

27. An AI system analyses pollution data to suggest solutions.


a) Name the related SDG.
b) Which AI field helps analyse data?
c) How does AI help the environment?

Common questions

Powered by AI

Lists in Python are mutable and can store multiple data types, allowing modification of elements, while strings are immutable sequences of characters, meaning once defined, they cannot be changed. These differences are significant in programming as they affect how data can be manipulated and accessed .

Sustainable Development Goals (SDGs) are a global framework adopted to address pressing challenges like poverty, inequality, and environmental sustainability. The goals highlighted in the document include the overarching goals adopted in 2015 and Quality Education linked to a specific SDG number .

The 'for' loop is ideal for iterating over a collection of student names in an attendance system because it allows iteration over a sequence or a range when the number of iterations is known, such as iterating over elements in a list of student names .

Python control structures, such as loops and conditional statements, automate tasks by executing repetitive attendance checks or processing student data efficiently. However, potential limitations include the complexity of debugging nested conditions and the requirement of correct logic to prevent errors in automation results .

In a Python-based attendance system, using lists to store student names is relevant because lists can hold collections of data and are mutable, allowing the system to easily update, add, and remove student names as needed .

The if–elif–else control structure enhances decision-making in Python by allowing conditional execution of code blocks based on various outcomes, providing a structured and clear way to handle multiple conditional scenarios efficiently in a program's flow .

Functions in Python are crucial for organizing and reusing code, leading to improved readability and maintenance. Two specific advantages include reducing redundancy by allowing code to be written once and used multiple times, and enhancing code modularity, making it easier to debug and test individual parts .

Natural Language Processing (NLP) is primarily used in developing AI chat systems as it deals with the interaction between computers and humans through natural language, making it significant for interpreting and generating human language .

The intersection of Sustainable Development Goals (SDGs) and Artificial Intelligence is evident in addressing environmental challenges by using AI in data analysis to assess and suggest solutions, such as in pollution reduction aligned with SDG goals related to climate action .

Machine Learning is essential within AI as it enables systems to learn from data and improve over time without being explicitly programmed. It relates to Data Science, another AI field, as both require analyzing large amounts of data to extract meaningful insights and predictions, strengthening their capability in decision-making .

You might also like