0% found this document useful (0 votes)
19 views4 pages

Ai Answer Key 7 Sample Paper-1

This document is a sample paper for Class 7 AI at PM SHRI Kendriya Vidyalaya Guna, covering multiple choice questions, fill in the blanks, matching, and open-ended questions related to programming concepts, particularly in Python. It includes topics such as Natural Language Processing, Python IDLE modes, function arguments, turtle graphics, and the significance of indentation in Python. The answer key is provided for each section to guide students in their learning.

Uploaded by

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

Ai Answer Key 7 Sample Paper-1

This document is a sample paper for Class 7 AI at PM SHRI Kendriya Vidyalaya Guna, covering multiple choice questions, fill in the blanks, matching, and open-ended questions related to programming concepts, particularly in Python. It includes topics such as Natural Language Processing, Python IDLE modes, function arguments, turtle graphics, and the significance of indentation in Python. The answer key is provided for each section to guide students in their learning.

Uploaded by

e3.sujit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

PM SHRI Kendriya Vidyalaya Guna (M.P.

)
Term-2 Sample Paper -1 Class-7 Subject: AI

Answer Key
Section A: Multiple Choice Questions (MCQs) [5 Marks]

1. b. Sender

2. c. Programming language

3. d. Indented

4. a. floats

5. d. .py
6. c. Argument

7. b. else

8. a. Library

9. a. print()

10. a. Same

Section B: Fill in the Blanks [5 Marks]

1. Syntax helps in framing a sentence while Semantics helps in understanding it.


2. Meaning

3. Communication

4. penup()

5. Canvas

Section C: Match the Following [5 Marks]

1. Syntax → (d) Adjective


2. Pen() → (a) Creates a turtle by some name

3. reset() → (e) Brings turtle to coordinates 0,0

4. Semantics → (b) Multiple meaning

5. Encoding → (c) Sender


Section E: Questions-Answers [20 Marks]
1. What do you mean by the term NLP? OR What is the use of digital assistants?
Answer: Natural Language Processing (NLP) is a domain of AI that enables computers to understand,
interpret, and respond to human language. It is used in chatbots, voice assistants, and text analysis
applications.
OR
Digital Assistants like Alexa, Siri, and Google Assistant help users by responding to voice commands,
setting reminders, answering queries, and automating tasks.

2. How is interactive mode of Python IDLE different from Script mode?


Answer:

o Interactive Mode allows executing Python commands one at a time and displays the output
immediately. It is useful for quick testing.

o Script Mode is used for writing complete Python programs in a file (.py) and executing them
later. It is useful for developing larger programs.

3. What is a function argument? Explain with a small example.


Answer: Function Argument in Python

A function argument is a value that is passed to a function when it is called. Arguments allow functions
to receive input data and process it.

Example:

def greet(name): # 'name' is a function argument


print("Hello,", name)
greet("Dev") # Passing "Alice" as an argument
4. Briefly explain Python turtle canvas coordinates.
Answer: Python Turtle uses a coordinate system where the centre of the screen is (0,0). The x-axis runs
left (-ve) to right (+ve), and the y-axis runs bottom (-ve) to top (+ve). Movements are made relative to
this system using commands like goto(x, y).

5. What is the significance of indentation in Python programming?


Answer: Indentation in Python defines blocks of code and replaces traditional curly brackets {}. It is
mandatory in structures like loops, functions, and conditionals to maintain readability and execution
order.

6.
Output Analysis
The script iterates over the nums list.
It checks if the current number is even (num % 2 == 0).
If even, it prints "Yes"; otherwise, it prints "No".
Step-by-Step Execution

Number num % 2 Output


1 1 No
17 1 No
4 0 Yes
28 0 Yes
19 1 No
72 0 Yes
103 1 No
68 0 Yes
47 1 No

Final Output

No
No

Yes

Yes

No

Yes

No

Yes
No

OR

Explanation

import turtle – Imports the Turtle module.


tom = turtle.Pen() – Creates a turtle object named tom.
tom.width(5) – Sets the pen width to 5.
tom.pencolor("red") – Sets the drawing color to red.
Loop (for c in range(1,10)):
Moves forward 10 units while drawing.
Lifts the pen (penup()), so no line is drawn.
Moves forward another 10 units.
Puts the pen down (pendown()), so drawing resumes.

OUTPUT:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy