Wednesday, November 5, 2025

Python Introduction and Python Conditional Statements, Class 8 Artificial Intelligence Question and Answer notes

 

🧠 Class 8 Artificial Intelligence Worksheet

📘 Chapter 1: Python Introduction

📗 Chapter 2: Python Conditional Statements


🔹 Section A — Textual Questions and Answers

Q1. What is Python?

Answer:
Python is a high-level, interpreted programming language used for general-purpose programming. It is easy to learn, read, and write because of its simple syntax.


Q2. List any four features of Python programming.

Answer:

  1. Easy to learn and use

  2. Open-source and free

  3. Portable and platform independent

  4. Large standard library and community support


Q3. What is an Interpreter in Python?

Answer:
An interpreter is a program that executes Python code line by line, translating it into machine language directly without the need for compilation.


Q4. What is IDLE in Python?

Answer:
IDLE (Integrated Development and Learning Environment) is the default editor that comes with Python. It provides an interface to write, run, and debug Python programs.


Q5. What is the difference between Python Shell and Script Mode?

Answer:

  • Shell Mode: Executes Python commands one at a time (interactive).

  • Script Mode: Used for writing and saving programs that can be executed later as a complete file.


Q6. What are Lines and Indentation in Python?

Answer:
In Python, indentation (spaces at the beginning of a line) is used to define code blocks instead of braces {}. Proper indentation is necessary for the code to run correctly.


Q7. What are Identifiers in Python?

Answer:
Identifiers are names used to identify variables, functions, classes, or other objects in Python.
Example: age, total_sum, printData


Q8. What are Keywords in Python?

Answer:
Keywords are reserved words in Python that have a special meaning and cannot be used as identifiers.
Example: if, else, for, while, def, return


Q9. What are Literals?

Answer:
Literals are constant values assigned to variables.
Example: 10, 'Hello', 3.14, True


Q10. What are Operators? Give examples.

Answer:
Operators are special symbols used to perform operations on variables and values.
Example:
+ (Addition), - (Subtraction), * (Multiplication), / (Division)


Q11. What are Variables in Python?

Answer:
Variables are used to store data values. Python automatically creates a variable when you assign a value to it.
Example:
x = 10


Q12. What are Delimiters in Python?

Answer:
Delimiters are symbols used to separate statements or indicate grouping in Python.
Examples:
( ), [ ], { }, :, ,, =, ;


Q13. What is the use of the input() function in Python?

Answer:
input() function allows the user to enter data from the keyboard during program execution.
Example:
name = input("Enter your name: ")


Q14. What is the use of the print() function in Python?

Answer:
print() function is used to display output on the screen.
Example:
print("Welcome to Python")


🔹 Section B — Python Conditional Statements

Q1. What are Conditional Statements in Python?

Answer:
Conditional statements allow a program to make decisions and execute different code based on certain conditions.


Q2. What are the types of Conditional Statements in Python?

Answer:

  1. if statement

  2. if...else statement

  3. if...elif...else statement

  4. Nested if statement


Q3. Write an example of an if statement.

Answer:

age = 18
if age >= 18:
    print("You are eligible to vote.")

Q4. Write an example of an if...else statement.

Answer:

num = 10
if num % 2 == 0:
    print("Even number")
else:
    print("Odd number")

Q5. Write an example of an if...elif...else statement.

Answer:

marks = 85
if marks >= 90:
    print("Grade A")
elif marks >= 75:
    print("Grade B")
else:
    print("Grade C")

Q6. What is a Nested if statement?

Answer:
A Nested if statement means using one if inside another if block to check multiple conditions.


🔹 Section C — Extra Short Answer Questions (1–2 Marks)

  1. Who developed Python?
    Answer: Guido van Rossum

  2. In which year was Python developed?
    Answer: 1991

  3. Name two data types in Python.
    Answer: Integer, String

  4. What symbol is used for comments in Python?
    Answer: # (hash symbol)

  5. Write the output of:

    print(2 + 3 * 4)
    

    Answer: 14

  6. What is the output of print("AI" * 3)?
    Answer: AIAIAI


🔹 Section D — Long Answer Questions (5–6 Marks)

Q1. Explain any five features of Python with examples.

Answer:

  1. Easy to Learn: Simple English-like syntax.
    Example: print("Hello")

  2. Interpreted Language: Executes line by line.

  3. Portable: Works on Windows, Mac, and Linux.

  4. Extensive Libraries: Has built-in modules like math, random, etc.

  5. Object-Oriented: Supports classes and objects.


Q2. Explain different types of conditional statements with examples.

Answer:
Python provides four main conditional statements:

  • if → Executes a block if condition is true.

  • if...else → Executes one block if true, another if false.

  • if...elif...else → Multiple condition checking.

  • Nested if → Condition inside another if.


🔹 Section E — Multiple Choice Questions (MCQs)

  1. Python was developed by _______.
    a) Dennis Ritchie
    b) James Gosling
    ✅ c) Guido van Rossum
    d) Charles Babbage

  2. Which of the following is a Python keyword?
    a) value
    ✅ b) while
    c) main
    d) print

  3. What is the correct file extension for Python files?
    ✅ a) .py
    b) .pt
    c) .python
    d) .p

  4. Which of the following is used for comments in Python?
    ✅ a) #
    b) //
    c) /* */
    d) !

  5. What is the output of print(5 > 3)?
    ✅ a) True
    b) False
    c) Error
    d) None

  6. Which function is used to get input from the user?
    a) scan()
    ✅ b) input()
    c) get()
    d) type()

  7. In an if statement, the condition must return:
    ✅ a) True or False
    b) 0 or 1
    c) Number
    d) Character

  8. Which symbol is used for assignment in Python?
    ✅ a) =
    b) ==
    c) :=
    d) =>


The Elephant and the Tragopan by Vikram Seth, Class 8, English Literature, Q&A, English Preparation, Question and Answer notes,

 

📘 Class 8 English Literature Notes

Chapter: The Elephant and the Tragopan

Author: Vikram Seth


📝 About the Author

Vikram Seth is an Indian novelist, poet, and travel writer known for his storytelling, sensitivity to nature, and musical rhythm in verse. His works often reflect a balance between human emotion and environmental awareness.


🌳 Summary of the Poem

The Elephant and the Tragopan is a verse play that highlights environmental conservation and the importance of coexistence between humans and wildlife. The poem features a conversation between an elephant and a tragopan (a type of pheasant found in the Himalayas).
The elephant, once hunted and killed, returns as a spirit to advocate for saving the forests and the creatures that depend on them. Through their dialogue, the poet conveys a message about respect for nature, protection of wildlife, and the need for balance between development and preservation.


📖 Textual Questions and Answers

1. Why was the elephant shot by the man?

Answer:
The elephant was shot by the man because humans considered him dangerous and wanted his tusks for ivory. This act represents human greed and disregard for animal life.


2. What message does the elephant convey after coming back to life?

Answer:
The elephant urges everyone to protect forests and wildlife. He emphasizes that all living creatures have a right to exist and that destroying nature will harm humanity too.


3. How does the tragopan react to the elephant’s words?

Answer:
The tragopan listens with deep concern and agrees with the elephant’s message. He too feels saddened by how humans destroy forests, leading to loss of habitat for birds and animals.


4. What does the poem teach us about human actions and their consequences?

Answer:
The poem teaches that human greed and carelessness lead to the destruction of nature. If humans continue to harm the environment, they will eventually destroy their own survival.


5. Why is the poem called ‘The Elephant and the Tragopan’?

Answer:
The poem is named after its two main characters — the elephant and the tragopan — who represent the voice of the animal kingdom and serve as symbols of environmental awareness.


✏️ Extra Short Answer Questions (1–2 Marks)

  1. Who wrote “The Elephant and the Tragopan”?
    Vikram Seth.

  2. What kind of poem is “The Elephant and the Tragopan”?
    → It is a verse play or dramatic poem.

  3. Where is the tragopan usually found?
    → In the Himalayan forests.

  4. What happens to the elephant in the poem?
    → The elephant is shot dead by a man but later returns as a spirit.

  5. What does the elephant symbolize?
    → He symbolizes wisdom, strength, and the voice of nature.


🧠 Short Answer Questions (3–4 Marks)

1. Describe the interaction between the elephant and the tragopan.

Answer:
The elephant and the tragopan discuss the harm caused by humans to forests and animals. The elephant, having experienced death, speaks about the cruelty of humans, while the tragopan expresses sorrow for the loss of their natural home. Together, they highlight the need for environmental protection.


2. What is the main theme of the poem?

Answer:
The main theme of the poem is environmental conservation. Vikram Seth warns against deforestation, poaching, and pollution, reminding humans to respect all forms of life and preserve ecological balance.


3. What emotion dominates the poem?

Answer:
The poem is filled with sadness and regret, as both animals mourn the destruction of their natural habitats. However, it also contains hope that humans will learn to care for the environment.


📚 Long Answer Questions (5–6 Marks)

1. How does Vikram Seth use animals to deliver an environmental message?

Answer:
Vikram Seth personifies the elephant and the tragopan to express feelings and wisdom that mirror human thought. By allowing animals to speak, he gives them a voice to protest against human exploitation. The elephant’s spirit and the tragopan’s lament remind readers that nature is alive and interconnected. Seth’s use of poetic dialogue makes the environmental message emotionally powerful and thought-provoking.


2. What lessons can humans learn from the poem “The Elephant and the Tragopan”?

Answer:
Humans can learn to:

  • Respect all forms of life.

  • Avoid destroying forests for greed.

  • Understand that harming nature ultimately harms humankind.

  • Protect endangered species and maintain ecological balance.
    The poem serves as a call for awareness, empathy, and action toward a sustainable future.


🎯 Multiple Choice Questions (MCQs)

  1. Who is the author of the poem?
    a) Ruskin Bond
    b) Vikram Seth
    c) R.K. Narayan
    d) Rabindranath Tagore
    Answer: b) Vikram Seth

  2. The poem “The Elephant and the Tragopan” mainly focuses on—
    a) Friendship
    b) Nature conservation
    c) Adventure
    d) City life
    Answer: b) Nature conservation

  3. What happens to the elephant in the beginning?
    a) He runs away
    b) He is shot by a man
    c) He saves the tragopan
    d) He goes to another forest
    Answer: b) He is shot by a man

  4. The tragopan is a type of—
    a) Deer
    b) Bird
    c) Fish
    d) Insect
    Answer: b) Bird

  5. The poem encourages humans to—
    a) Cut more trees
    b) Hunt responsibly
    c) Protect nature
    d) Build more cities
    Answer: c) Protect nature


Worksheet Format (for class or homework)

Student Name: _____________________
Class/Section: _____________________
Date: _____________________

Type Question Answer/Response
Textual Q1 Why was the elephant shot? ____________________________
Textual Q2 What message does the poem give? ____________________________
Short Q Describe the dialogue between the elephant and the tragopan. ____________________________
MCQ 1 The poem is written by _______. ☐ Ruskin Bond ☐ Vikram Seth ☐ Tagore
MCQ 2 The main theme of the poem is _______. ☐ Nature ☐ War ☐ Friendship
True/False The tragopan is a kind of tiger. ☐ True ☐ False