Question paper 1 :
1. What are Operators and Variables in Scratch?
Variables in Scratch
● A variable is used to store data (numbers or text).
● The value of a variable can change while the program is running.
Examples in Scratch:
● score
● count
● speed
📌 Use:
Variables store values like score in a game, timer value, or player name.
Operators in Scratch
● Operators are blocks used to perform calculations and comparisons.
Types of Operators:
1. Arithmetic Operators
○ + (addition)
○ - (subtraction)
○ * (multiplication)
○ / (division)
2. Comparison Operators
○ < less than
○ > greater than
○ = equal to
3. Logical Operators
○ and
○ or
○ not
📌 Use:
Operators help in decision making, calculations, and conditions.
2. What is a List and Blocks in Scratch?
List in Scratch
● A list is a collection of multiple values stored in one variable.
● It is used when we need to store many items of the same type.
Example:
● List name: students
● Values: A, B, C, D
📌 Uses of List:
● Store scores
● Store names
● Store repeated data
Blocks in Scratch
● Blocks are puzzle-shaped coding pieces used to create programs.
● Programs are made by dragging and joining blocks.
Types of Blocks:
1. Motion blocks
2. Looks blocks
3. Sound blocks
4. Events blocks
5. Control blocks
6. Sensing blocks
7. Operators blocks
8. Variables blocks
📌 Use:
Blocks help beginners code easily without typing.
3. What is a Function to Strings?
Function
● A function is a block of reusable code that performs a specific task.
Strings
● A string is a sequence of characters (text).
● Strings are written inside quotes.
Example of String:
name = "Visal"
Functions on Strings (Python Examples):
text = "hello"
print([Link]()) # HELLO
print([Link]()) # hello
print(len(text)) # 5
📌 Use:
String functions help in modifying and analyzing text data.
4. What is a List Comprehension?
● List comprehension is a short and easy way to create lists in Python.
● It replaces long for loops with one line of code.
Normal Method
numbers = []
for i in range(5):
[Link](i)
List Comprehension Method
numbers = [i for i in range(5)]
📌 Advantages:
● Shorter code
● Easy to read
● Faster execution
5. What is a Class and Object?
Class
● A class is a blueprint or template.
● It defines properties (variables) and methods (functions).
Object
● An object is a real instance of a class.
● Objects use the class definition.
Example in Python
class Student:
def __init__(self, name):
[Link] = name
s1 = Student("Visal")
print(s1)
📌 Explanation:
● Student → Class
● s1 → Object
● "Visal" → Data stored in object
1. (a) What are Animation, Looks, Sounds, Operators,
and Variables?
5
Animation
● Animation means showing movement.
● It is created by changing sprite position or costume again and again.
● Example: a character walking or jumping.
Looks
● Looks control the appearance of a sprite.
● It changes costume, size, color, and speech.
● Example: sprite saying “Hello”.
Sounds
● Sounds add audio effects or music.
● Example: playing a sound when a button is clicked.
Operators
● Operators are used to do calculations and comparisons.
● Examples: + , - , * , / , < , > , = , and , or.
Variables
● Variables are used to store values.
● Example: score, count, name.
👉 These features make programs interactive and attractive.
1. (b) What is Interactive Gaming and Sensing
(user input, mouse response, callbacks)?
4
Interactive Gaming
● Interactive games respond to user actions.
● Users control games using keyboard or mouse.
Sensing (User Input)
● Sensing blocks detect user actions.
● Example: asking user name, checking key press.
Responding to Mouse
● Program reacts when mouse is clicked or moved.
● Example: sprite follows mouse pointer.
Callbacks (Events)
● Actions happen automatically when an event occurs.
● Example: clicking a sprite triggers an action.
👉 Makes games responsive and fun.
2. (a) What are Control Structures
(if/else, loops – repeat, wait, until, forever)?
Control Structures
● Control structures decide how the program runs.
if / else
● if runs code when condition is true.
● else runs code when condition is false.
Loops
● repeat – runs fixed number of times
● wait – pauses program
● repeat until – runs until condition is true
● forever – runs continuously
👉 They control the flow of execution.
2. (b) What are Strings, Lists, Numbers, Tuples,
Dictionaries?
String
● Stores text
name = "Python"
Number
● Stores numeric values
a = 10
List
● Stores multiple values (changeable)
marks = [60, 70, 80]
Tuple
● Stores multiple values (not changeable)
point = (10, 20)
Dictionary
● Stores data in key–value pairs
student = {"name":"Visal", "age":20}
3. (a) What are Basic String Functions
(Concatenation, Reverse)?
Concatenation
● Joining two strings using +
a = "Hello"
b = "World"
print(a + b)
Reverse String
text = "Python"
print(text[::-1])
👉 Used to process and format text.
3. (b) What are Numbers and Functions Available for
Numbers?
Numbers
● Integers: 10
● Floats: 3.14
Number Functions
abs(-5) # 5
pow(2,3) # 8
max(1,5,3) # 5
min(1,5,3) # 1
round(3.6) # 4
👉 Used for mathematical operations.
4. (a) What is Control and Conditional Code in Python
using Boolean Variables?
Boolean Variables
● Boolean stores:
○ True
○ False
is_pass = True
Conditional Code
● Uses if, elif, else
marks = 60
if marks >= 50:
print("Pass")
else:
print("Fail")
👉 Used for decision making in programs.
Question paper 2 :
1. Analyse about Animation, Looks, and Sounds :
Animation
● Animation means showing movement.
● It is created by changing the position or costume of a sprite again and again.
● Example: A character walking or jumping.
👉 Use: Makes programs lively and attractive.
Looks
● Looks control how a sprite appears.
● It changes costume, size, color, and speech.
● Example: Sprite saying “Hello” or changing dress.
👉 Use: Improves visual appearance.
Sounds
● Sounds add audio like music or effects.
● Example: Playing a sound when a button is clicked.
👉 Use: Makes programs more interesting and interactive.
2. What are the Applications of Python Programming?
Python is used in many areas:
1. Web Development – creating websites
2. Software Development – building applications
3. Data Science – analyzing data
4. Machine Learning & AI – smart programs
5. Game Development – simple games
6. Automation – doing repeated work automatically
👉 Reason: Python is easy to learn and powerful.
3. Define Variables in Python
● A variable is used to store data.
● The value of a variable can change.
Example:
age = 20
name = "Visal"
👉 Here:
● age and name are variables
● 20 and "Visal" are values
4. Write short notes about Code Reusability
● Code reusability means using the same code again and again.
● Functions and classes help in reusing code.
● It saves time and reduces errors.
👉 Example:
A function written once can be called many times.
5. How do you create a Class and Object in Python?
Class
● A class is a blueprint or template.
Object
● An object is created from a class.
Example:
class Student:
def __init__(self, name):
[Link] = name
s1 = Student("Visal")
👉 Here:
● Student → Class
● s1 → Object
6. (a) Illustrate the Principles of Visual Programming
Visual programming allows users to create programs using graphical blocks instead of
typing code.
Principles of Visual Programming:
1. Block-based coding
○ Programs are created by dragging and dropping blocks.
○ No syntax errors.
2. Event-driven programming
○ Actions happen based on events like key press or mouse click.
3. Flow control
○ Uses visual loops and conditions to control execution.
4. Immediate feedback
○ Output is seen instantly on screen.
5. User-friendly design
○ Easy for beginners and students.
👉 Purpose:
Makes programming simple, visual, and easy to learn.
6. (b) List the Operators Used in Visual Programming
Language
Operators perform calculations and comparisons.
Types of Operators:
1. Arithmetic operators
○ +, -, *, /
2. Comparison operators
○ <, >, =
3. Logical operators
○ and, or, not
👉 Use:
Used for calculations and decision making in programs.
7. (a) Write the Steps to Get Started with Python
1. Install Python software
2. Install a code editor (IDLE / VS Code)
3. Learn basic syntax (print, variables)
4. Practice simple programs
5. Learn conditions and loops
6. Practice daily with small programs
👉 Result:
You can start writing Python programs easily.
7. (b) Discuss the Benefits of Learning Python
1. Easy to learn and read
2. Simple English-like syntax
3. Used in many fields (AI, web, data)
4. Saves development time
5. Large community support
👉 Conclusion:
Python is beginner-friendly and powerful.
8. (a) Categorize the Data Types
Python data types are classified as:
1. Numeric Data Types
● int → whole numbers
● float → decimal numbers
2. Text Data Type
● str → text data
3. Boolean Data Type
● bool → True / False
4. Collection Data Types
● list → changeable collection
● tuple → unchangeable collection
● set → unique values
● dict → key-value pairs
8. (b) Identify the Basic Functions of Strings
Common String Functions:
text = "python"
len(text) # length
[Link]() # PYTHON
[Link]() # python
[Link]()# Python
[Link]("p","P") # Python
👉 Use:
Used to modify and process text data.
9. (a) Explain List Comprehension and Conditional List
Comprehension
List Comprehension
● Short method to create a list.
numbers = [x for x in range(5)]
Conditional List Comprehension
● Creates list with condition.
even = [x for x in range(10) if x % 2 == 0]
👉 Advantage:
Short, readable, and faster code.
9. (b) Justify the range() Function with Example
● range() generates a sequence of numbers.
Example:
for i in range(5):
print(i)
Output:
0 1 2 3 4
👉 Use:
Used in loops to repeat actions.
10. (a) State OOPS Concepts in Python
Main OOPS concepts are:
1. Class
2. Object
3. Encapsulation
4. Inheritance
5. Polymorphism
6. Abstraction
👉 Purpose:
Organizes code and improves reusability.
10. (b) Explain Briefly about Methods in Python
● A method is a function defined inside a class.
● It works on object data.
Example:
class Student:
def greet(self):
print("Hello")
👉 Use:
Methods define the behavior of objects.
Question paper 3 :
1. Define Lists in Visual Programming
Answer:
● A list is a collection of items stored in a single variable.
● Lists can store numbers, strings, or mixed data.
● Items in a list are stored in order.
● Each item has an index position.
● Lists are mutable (values can be changed).
Example:
[10, 20, 30]
Diagram:
Index: 0 1 2
List: 10 20 30
2. What is Python Programming and its Applications?
Answer:
● Python is a high-level, interpreted programming language.
● It is easy to learn and write.
● Python uses simple English-like syntax.
● It supports OOP, functional and procedural programming.
● It is widely used in many fields.
Applications:
● Web Development
● Machine Learning & AI
● Data Science
● Automation
● Game Development
3. Write a Short Note on Expressions
Answer:
● An expression is a combination of values, variables and operators.
● Expressions produce a result.
● They can be arithmetic, logical or relational.
● Expressions are evaluated by the interpreter.
● Used in calculations and decision making.
Example:
a + b * 2
4. Outline Boolean Variables
Answer:
● Boolean variables store True or False.
● Used in decision making.
● Result of comparison operators.
● Used with logical operators.
● Helps control program flow.
Example:
is_pass = True
5. Why is Python Called an OOP Language?
Answer:
● Python supports classes and objects.
● It allows encapsulation of data.
● Supports inheritance.
● Supports polymorphism.
● Supports abstraction.
6. (a) Explain briefly about Loops in Visual
Programming
What is a Loop?
● A loop is used to repeat the same action again and again.
● In visual programming (like Scratch), loops are shown as control blocks.
Types of Loops:
1. Repeat
○ Repeats actions for a fixed number of times
○ Example: Repeat 10 times (move 10 steps)
2. Forever
○ Repeats actions continuously without stopping
○ Example: Keep moving the sprite forever
3. Repeat Until
○ Repeats actions until a condition becomes true
○ Example: Repeat until touching edge
Importance:
● Reduces repeated code
● Makes programs simple and efficient
6. (b) Justify the Events Responding to Keyboard and
Broadcast
Keyboard Events
● These events trigger actions when a key is pressed.
● Example:
○ When up arrow is pressed → sprite moves up
Broadcast Events
● Broadcast sends a message to all sprites.
● Other sprites respond when they receive the message.
Example:
● Broadcasting “game over”
● All sprites stop when message is received
Importance:
● Makes programs interactive
● Helps sprites communicate with each other
7. (a) Discuss how to Stay Motivated while Learning
Python
Key Points:
1. Set small goals (learn one topic per day)
2. Practice with simple programs
3. Make mistakes and learn from them
4. Build small projects
5. Stay consistent and patient
Why Motivation is Important?
● Programming needs practice
● Motivation helps overcome errors and confusion
7. (b) What are the Application Areas of Python?
Python is used in many fields:
1. Web development
2. Software development
3. Data science
4. Machine learning and AI
5. Automation
6. Game development
👉 Python is popular because it is easy, powerful, and flexible.
8. (a) Illustrate Variables and Strings
Variables
● A variable stores data.
age = 20
Strings
● A string stores text.
name = "Visal"
Example:
name = "Python"
print(name)
👉 Variables hold values, and strings hold text data.
8. (b) Recognize the Functions Available for Numbers
Common Number Functions in Python:
abs(-5) # gives 5
pow(2,3) # gives 8
max(1,5,3) # gives 5
min(1,5,3) # gives 1
round(3.6) # gives 4
Use:
● Used for mathematical calculations
● Makes numeric operations easy
9. (a) What are the Uses of Conditional Code in Python?
Conditional Code:
● Used to make decisions in a program.
● Uses if, elif, else.
Example:
marks = 60
if marks >= 50:
print("Pass")
else:
print("Fail")
Uses:
● Decision making
● Checking conditions
● Controlling program flow
9. (b) Name the Creating Functions for Modularity
Modularity
● Modularity means breaking a program into small parts.
Functions Used:
● def → to create functions
Example:
def add(a, b):
return a + b
Benefits:
● Code reusability
● Easy debugging
● Better readability
10. (a) Criticize the OOPS Concept in Python
OOPS in Python:
● Uses classes and objects
● Organizes code better
Advantages:
● Code reusability
● Easy maintenance
● Better structure
Limitations:
● Slightly complex for beginners
● More memory usage than simple programs
👉 Still, OOPS is very powerful for large programs.
10. (b) Classify the Inheritance in Python
Types of Inheritance:
1. Single Inheritance
○ One parent → one child
2. Multiple Inheritance
○ Multiple parents → one child
3. Multilevel Inheritance
○ Parent → child → grandchild
4. Hierarchical Inheritance
○ One parent → many children
5. Hybrid Inheritance
○ Combination of different types
Use:
● Reuses existing code
● Saves time and effort
Main Data Types in Python
1. Integer (int)
● Stores whole numbers
● No decimal point
a = 10
b = -5
👉 Examples: 1, 25, -100
2. Float (float)
● Stores decimal numbers
pi = 3.14
👉 Examples: 2.5, 0.75
3. String (str)
● Stores text
● Written inside quotes
name = "Visal"
👉 Examples: "Hello", "Python"
4. Boolean (bool)
● Stores only True or False
is_pass = True
👉 Used for conditions and decisions.
5. List (list)
● Stores multiple values
● Values can be changed
marks = [60, 70, 80]
6. Tuple (tuple)
● Stores multiple values
● Values cannot be changed
point = (10, 20)
7. Dictionary (dict)
● Stores data in key : value form
student = {"name": "Visal", "age": 20}
8. Set (set)
● Stores unique values
● No duplicates allowed
nums = {1, 2, 3}
⭐ Simple Exam Table
Data Type Meaning
int Whole numbers
float Decimal numbers
str Text
bool True / False
list Multiple values (changeable)
tuple Multiple values (unchangeable)
dict Key–value pairs
set Unique values
What is OOPS?
👉 OOPS is a programming method where we write programs using
objects and classes instead of only functions.
● It helps to organize code better
● It makes programs easy to understand and reuse
Main Concepts of OOPS
1. Class
● A class is a blueprint or template.
● It defines what an object will have (data and actions).
class Student:
pass
👉 Example: Design of a student
2. Object
● An object is a real thing created from a class.
s1 = Student()
👉 Example: A real student
3. Encapsulation
● Encapsulation means binding data and methods together.
● It protects data from direct access.
👉 Example: Data inside a class
4. Inheritance
● Inheritance allows one class to use properties of another class.
● It avoids rewriting code.
👉 Example: Child class using parent class features
5. Polymorphism
● Polymorphism means one function, many forms.
● Same method name, different actions.
👉 Example: add() works for numbers and strings
6. Abstraction
● Abstraction means showing only important details.
● Hides unnecessary information.
👉 Example: Using mobile without knowing internal working