Regular practice of SSLC IT Theory Questions and Class 10 IT Chapter 3 Computer Language Questions and Answers Notes prepares students for objective and descriptive examinations.
Class 10 IT Chapter 3 Question Answer
SSLC IT Chapter 3 Theory Questions
InText Questions and Answers
Question 1.
Which are the computer languages you have heard of?
Answer:
- Java
- Python
- C
- Ruby
- C++
- PHP
Question 2.
Complete the table

Answer:
| Python Code | Use |
| Color (“red”) | To set the drawing color to red. |
| Circle (100) | To draw a circle of radius 100 unit. |
| Left (45) | To turn the turtle 45° to the left. |
| Right (45) | To turn the turtle 45° to the right |
| range (8) | Generate a sequence of numbers from 0 to 7 (loop) |
![]()
Class 10 IT Chapter 3 Let’s Assess
Question 1.
a = 100
a = a+25
print(a)
What will be the output of this program?
Ans:
125
Question 2.
Which is the python program to print even numbers from 20 to 40?

Answer:

Std 10 IT Chapter 3 Extended Activities
Question 1.
Create and print various lists in Python.
• Names of friends
• Names of flowers
• Names of planets in Solar System
Answer:
• List of names of friends friends
= [“Aswin”, “Krishna”, “Vivek”, “Geethu”]
print(“Friends:”, friends)
• List of names of flowers
flowers = [“Lily”, “Rose”, “Jasmine”, “Sunflower”]
print(“Flowers:”, flowers)
• List of names of planets in the Solar System
planets = [“Mercury”, “Venus”, “Earth”, “Mars”, “Jupiter”, “Saturn”, “Uranus”, “Neptune”] print(“Planets in the Solar System:”, planets)
Question 2.
Write a Python program to find the area of a field if its length is 120,m and width is 50.m.
Answer:
length=120
width=50
area=length*width
print (“The area of the field is”, area, “square meters.”)
Question 3.
Write a Python program that takes three different numbers as input and print the largest number among them.
Answer:

Question 4.
Take the score obtained by a student in a subject (out of 100 marks) as input and write a Python program to calculate the grade based on the following conditions.
Score>=90 Grade=A+
Score>=80 Grade=A
Score>=70 Grade=B+
Score>=60 Grade-B
Score>=50 Grade=C+
Other wise print “Not Eligible”
Answer:
score = int(input ("Enter the score out of 100:"))
if score < 0 or score > 100:
print("Invalid input! Please enter a score between 0 and 100.")
else:
if score >= 90:
grade = "A + "
elif score >= 80:
grade = "A"
elif score >= 70:
grade = "B+"
elif score >= 60:
grade = "B"
elif score >= 50:
grade = "C+"
else:
grade = "Not Eligible"
print(f"Your grade is: {grade}"
Question 5.
Draw a rectangle with a length of 200 units and a width of 100 units, using blue, green, red, and yellow colours for the sides.
Answer:
from turtle import * t = turtle.Turtle() t.pensize (4) length = 200 width = 100 colors = ["blue", "green", "red", "yellow"] for i in range(4): t.pencolor (colors[i]) # Set color for each side if i % 2 = 0: t.forward(length) else: t.forward (width) t.right (90) t.hideturtle() turtle.done()
SSLC IT Computer Language Questions and Answers
Question 1.
From the following select one that is not a computer programming language.
(a) Python
(b) C++
(c) Java
(d) Scanner
Answer:
(d) Scanner
Question 2.
Which command is used to add in the starting of apython program towork graphic commands?
(a) from turtle import *
(b) from input import *
(c) from Gimp input *
(d) None of these
Answer:
(a) from turtle import *
Question 3.
What do the binary digits 1 and 0 represent in a computer?
(a) Start and End
(b) High and Low temperatures
(c) ON and OFF states
(d) Input and Output
Answer:
(c) ON and OFF states
Question 4.
Why do we need translator programs in computers?
(a) To play music
(b) To store data
(c) To convert high-level language into binary
(d) To connect to the internet
Answer:
(c) To convert high-level language into binary
Question 5.
Which of the following is an example of a translator program?
(a) MS Word
(b) Compiler
(c) Excel
(d) Browser
Answer:
(b) Compiler
Question 6.
Binary language is also known as:
(a) Decimal language
(b) Programming language
(c) Machine language
(d) Human lnguage
Answer:
(c) Machine language
![]()
Question 7.
Compilers and interpreters are types of:
(a) Hardware
(b) Input devices
(c) Translator programs
(d) Binary codes
Answer:
(c) Translator programs
Question 8.
What is the function of compiler?
(a) Translates code line by line
(b) Completely converts code into binary
(c) Needs the source code during execution
(d) Edits images
Answer:
(b) Completely converts code into binary
Question 9.
How does an interpreter work?
(a) Translates the whole code at once
(b) Converts code to images
(c) Executes code line by line
(d) Compiles to a separate file
Answer:
(c) Executes code line by line
Question 10.
Which programming language is typically interpreted?
(a) C++
(b) Python
(c) Java
(d) C
Answer:
(b) Python
Question 11.
Which language uses a compiler?
(a) Java
(b) Python
(c) HTML
(d) Ruby
Answer:
(a) Java
Question 12.
What is the main difference between a compiler and an interpreter?
(a) Compiler runs code slower
(b) Interpreter compiles to binary
(c) Compiler produces executable files
(d) Interpreter stores code in images
Answer:
(c) Compiler produces executable files
![]()
Question 13.
What is algorithm?
(a) A type of error
(b) A step-by-step method to solve a program
(c) A code editor
(d) A programming language
Answer:
(b) A step-by-step method to solve a program
Question 14.
What does the python program use to display output?
(a) print() function
(b) display()
(c) show()
(d) output()
Answer:
(a) print() function
Question 15.
What is required during program execution when using an interpreter?
(a) Binary file
(b) Source code
(c) Network connection
(d) No files are needed
Answer:
(b) Source code
Question 16.
Who developed the Python programming language?
(a) Charles Babbage
(b) Dennis Ritchie
(c) Guido van Rossum
(d) Tim Berners-Lee
Answer:
(c) Guido van Rossum
Question 17.
Which of the following best describes Python?
(a) Complex and hard to learn
(b) Limited to mobile app development
(c) Open source and beginner-friendly
(d) Requires licenses
Answer:
(c) Open source and beginner-friendly
Question 18.
What is the purpose of a variable in a computer program?
(a) To perform calculations
(b) To store data temporarily
(c) To print output
(d) To define a function
Answer:
(b) To store data temporarily
![]()
Question 19.
What datatype is automatically assigned in Python when using input()?
(a) Integer
(b) Boolean
(c) String
(d) List
Answer:
(c) String
Question 20.
Which datatype is used to store decimal numbers in Python?
(a) Integer
(b) String
(c) Float
(d) Boolean
Answer:
(c) Float
Question 21.
Which of these is not a valid Python operator?
(a) +
(b) = =
(c) %
(d) –
(e) and
Answer:
(d) –
Question 22.
What is the purpose of IDLE3?
(a) To play games
(b) To search the internet
(c) To write and run programs easily
(d) To open image files
Answer:
(c) To write and run programs easily
Question 23.
Why is it important to type the program without mistakes?
(a) It saves time
(b) It avoids errors during execution
(c) It improves font style
(d) It increases speed
Answer:
(b) It avoids errors during execution
Question 24.
What key can you press as a shortcut to ‘Run Module’ in IDLE3?
(a) F3
(b) F4
(c) F5
(d) F6
Answer:
(c) F5
![]()
Question 25.
What is the purpose of using a conditional statement in a program?
(a) To store user inputs
(b) To print data only
(c) To branch the program flow based on conditions
(d) To calculate the age of a person
Answer:
(c) To branch the program flow based on conditions
Question 26.
Which Python keyword is used to check a condition?
(a) check
(b) elif
(c) for
(d) if
Answer:
(d) if
Question 27.
What is the correct syntax for an if…else statement in Python?
(a) if (condition) then
(b) if :… else:…
(c) when condition do
(d) check condition then
Answer:
(b) if :… else:…
Question 28.
What does the term “syntax” mean in programming?
(a) The name of a software
(b) The visual appearance of a program
(c) The rules and structure for writing programs
(d) The speed of program execution
Answer:
(c) The rules and structure for writing programs
Question 29.
When the line after else: executed?
(a) When the condition is true
(b) Always
(c) Only if the program ends
(d) When the condition is false
Answer:
(d) When the condition is false
Question 30.
Why do we use loops in Python?
(a) To define variables
(b) To exit the program
(c) To repeat a set of instructions
(d) To print only one statement
Answer:
(c) To repeat a set of instructions
![]()
Question 31.
Which of the following is a loop in Python?
(a) if loop
(b) repeat loop
(c) for loop
(d) check loop
Answer:
(c) for loop
Question 32.
Which loop is generally used when the number of repetitions is known?
(a) while loop
(b) if loop
(c) for loop
(d) switch loop
Answer:
(c) for loop
Question 33.
What is the output of the code?
for i in range(2):
print(“Welcome”)
(a) Welcome Welcome Welcome
(b) Welcome Welcome
(c) Welcome
(d) Error
Answer:
(b) Welcome Welcome
Question 34.
What is the output of the code?
x=1
while x<=3:
print(x)
x+=1
(a) 1 2 3
(b) 012
(c) 1 2 3 4
(d) 3 2 1
Answer:
(a) 1 2 3
Question 35.
Which of these statement correctly uses a for loop in Python?
(a) for i to 5 print(i)
(b) for i in range(5): print(i)
(c) for i = 1 to 5: print(i)
(d) for(i=0; i<5; i++)
Answer:
(b) for i in range(5): print(i)
Question 36.
What does range(10) return?
(a) Numbers from 1 to 10
(b) Numbers from 0 to 10
(c) Numbers from 0 to 9
(d) Numbers from 1 to 9
Answer:
(c) Numbers from 0 to 9
![]()
Question 37.
What is the output of range(1, 10)?
(a) 0 to 10
(b) 1 to 10
(c) 1 to 9
(d) 0 to 9
Answer:
(c) 1 to 9
Question 38.
Which of the following will produce numbers 2, 4, 6, 8?
(a) range(2, 10, 2)
(b) range( 1, 10, 2)
(c) range(2, 8, 2)
(d) range(0, 9, 3)
Answer:
(a) range(2, 10, 2)
Question 39.
Which range expression gives numbers from 10 to 1 in reverse?
(a) range( 10, 1)
(b) range( 10, 0, -1)
(c) range(1, 10, -1)
(d) range(0, 10, -1)
Answer:
(b) range( 10, 0, -1)
Question 40.
Which of the following is not avalid range() usage?
(a) range(5)
(b) range(1, 5)
(c) range( 1, 10, 0)
(d) range( 10, 1, -1)
Answer:
(c) range( 1, 10, 0)
Question 41.
From the following which command is equivalent to forward(100)?
(a) fw(100)
(b) for(100)
(c) fd(100)
(d) fwd(100)
Answer:
(c) fd(100)
Question 42.
From which of the following command is equivalent to right (90)
(a) rt(90)
(b) rgt(90)
(c) rht(90)
(d) rgt(90)
Answer:
(a) rt(90)
![]()
Question 43.
What is the output of the following code snippet?
from turtle import*
for i in range(5):
fd(100)
rt(72)

Answer:

Question 44.
___________ command is used to give different colours to gematric shapes created in python graphic window.
(a) color()
(b) forward()
(c) right()
(d) left()
Answer:
(a) color()
Question 45.
Choose the correct code segment from the following.
(a) for i in range():
fd(100)
rt(90)
(b) for i in range (4):
fd(100)
rt(90)
(c) for i in range(4):
fd(100)
rt(90)
(d) for i in range (4):
fd(100)
rt(90)
Answer:
(b) for i in range (4):
fd(100)
rt(90)
(Select two correct answers from the options)
Question 46.
Which of the following represents binary values?
(a) 0
(b) 1
(c) 2
(d) ON
(e) OFF
Answer:
(a) 0 & (b) 1
Question 47.
Which of the following are translator programs?
(a) Compiler
(b) Keyboard
(c) Interpreter
(d) Speaker
(e) Mouse
Answer:
(a) Compiler & (c) Interpreter
Question 48.
Which statements about interpreters are correct?
(a) Translates entire code at a time
(b) Translate line by line
(c) Work like a dictionary
(d) They are used in browsers
(e) It is a type of translator
Answer:
(b) Translate line by line & (e) It is a type of translator
![]()
Question 49.
Which programming languages are mentioned as high-level languages?
(a) Java
(b) C
(c) Python
(d) Binary
(e) Machine code
Answer:
(a) Java & (c) Python
Question 50.
Which of these describes an algorithm?
(a) Step-by-step process
(b) Random guessing
(c) Organized instructions to solve a problem
(d) A type of hardware
(e) A programming language
Answer:
(a) Step-by-step process & (c) Organized instructions to solve a problem
Question 51.
Which of the following are reasons Python is beginner-friendly?
(a) Easy-to-read syntax
(b) Free and open-source
(c) Only used by big companies
(d) Requireas deep math
(e) No online support
Answer:
(a) Easy-to-read syntax & (b) Free and open-source
Question 52.
Which of the following are valid variable name characters in Python?
(a) Digits (0-9) at the beginning
(b) Letters (A-Z, a-z)
(c) Underscore(_)
(d) @ symbol
(e) Hypen(-)
Answer:
(b) Letters (A-Z, a-z) & (c) Underscore(_)
Question 53.
Which of the following are examples of data types in Python?
(a) Image
(b) Integer
(c) Folder
(d) String
(e) File
Answer:
(b) Integer & (d) String
Question 54.
Which are the arithmetic operators in Python?
(a) +
(b) –
(c) ==
(d) and
(e) or
Answer:
(a) + & (b) –
![]()
Question 55.
Which of these options help execute your Python code in IDLE3?
(a) Run → Run Module
(b) File → Exit
(c) Press F5
(d) File → Open
(e) Shift + Tab
Answer:
(a) Run → Run Module & (c) Press F5
Question 56.
What is the use of conditional statement in a program?
(a) To repeat a set of instructions
(b) To branch the program flow based on conditions
(c) To define variables
(d) To execute different instructions based cm conditions
(e) To print outputs only
Answer:
(b) To branch the program flow based on conditions & (d) To execute different instructions based cm conditions
Question 57.
Which of these statements about if…else in Python are correct?
(a) It allows the program to choose between two paths
(b) The else part runs oily when the if condition is false
(c) You can only use it for comparing numbers
(d) It must always include an elif
(e) It can run with or without the else part
Answer:
(a) It allows the program to choose between two paths & (b) The else part runs oily when the if condition is false
Question 58.
Which of the following are types of loops in Python?
(a) for loop
(b) switch loop
(c) do loop
(d) while loop
(e) if loop
Answer:
(a) for loop & (d) while loop
Question 59.
What is true about the range() function in a for loop?
(a) It starts from 1 by default
(b) It helps generate a sequence of numbers
(c) It is optional in loops
(d) It can define start, stop, and step
(e) It works only with strings
Answer:
(b) It helps generate a sequence of numbers & (d) It can define start, stop, and step
Question 60.
Which are valid ways to use range() in a for loop?
(a) for i in range(5):
(b) for i in range(0, 10):
(c) for i to 10:
(d) for i in 0 to 10:
(e) for i in range(1, 10, 2):
Answer:
(a) for i in range(5): & (e) for i in range(1, 10, 2):
![]()
Question 61.
In the turtle module, which commands move the turtle forward and backward?
(a) move()
(b) jump()
(c) forward()
(d) backward()
(e) go()
Answer:
(c) forward() & (d) backward()
Question 62.
Which two commands are used to turn the turtle?
(a) turn()
(b) left()
(c) rotate()
(d) right()
(e) angle()
Answer:
(b) left() & (d) rightv
SSLC IT Chapter 3 Notes
Class 10 IT Chapter 3 Computer Language Notes
Binary Language
A language that uses only ON and OFF is called a binary language. These states are denoted as High, Low or 1, 0 or True and False.
Translators
Our computers have programs that can translate instructions given in a language into binary language. These are known as high-level languages and translator programs.
Translator programs are mainly of two types- Compilers and Interpreters.
Compilers and Interpreters
- Compilers are translators that completely convert instructions into binary language and compile them into a separate file.
- High level languages such as C, C++, and Java use compilers.
- Interpreters process and execute each line of code one at a time during execution.
- Python is an interpreted programming language.
Python
- The process of writing the steps for solving a problem in a specific order is called an algorithm.
- The Python language was developed in 1990 by Guido van Rossum, a computer engineer from the Netherlands.
- Python is an open-source programming language.
Python program
- Open Text Editor.
- Type the program code.
- Save the file using extension .py (Eg. Find_age.py)
- To Rum Python File
- Open the folder where the file is saved.
- Right click on the empty space in the folder. Click on Open in Terminal.
- Then, type the below given command in the terminal and press Enter.
python3 Find_age.py
Variable
Variables are used to temporarily store data required for the program to run. When using variables in a program, their names should start with a letter (alphabet) and must not include special characters, except underscore (_).
Datatype
The term Datatype indicates what type of data each variable contains. Examples of datatypes include integers, floats, strings, images, audios, dates, and times. However, in Python, we don’t need to specify the datatype when creating variables.
String
In Python, the data obtained using the input function is in text format, also known as string.
Information like a person’s name or address is typically made up of alphabetical characters, while details such as year of birth, height, or weight are represented as numbers.
Mathematical operations like addition, subtraction, multiplication, and division cannot be performed on text. Therefore, numbers in text format must be converted to numeric format for calculations
Python Operators
Operators that can be applied to different data and variables in Python.
1. Arithmetic Operators: For doing mathematical operations
- Addition+
- Subtraction –
- Multiplication *
- Division/
- Modulus %
2. Assignment Operator: – To give a value to a variable = is used.
Eg: Mark=50
3. Comparison Operators: To compare values
- Equal to =
- Greater than >
- Less than <
- Greater than or equal >
- Less than or equal <=
- Not equal !=
4. Logical Operators:- For Combining multiple statements
• and, or, not
IDLE3
IDE – Integrated Development Environment
IDE is used to help run the program easily and fix errors.
To run the Program in IDLE3
- Open IDLE3 and open a new editor using the option File → New File.
- Type the program without making mistakes.
- Give file name and save the file using the option File → Save.
- Then Run the program by clicking Run Module from thr Run menu.
Syntax
Each programming language has its own terminologies and rules for writing programs. This is called Syntax. Python statements should be written using lowercase letters of the English alphabet. It is part of the syntax of Python language.
Conditional Statements
Conditional statements in Python allow you to execute different blocks of code based on whether certain conditions are true or false. They are essential for creating programs that can make decisions and respond to various situations.
if….else
The if…else statement (condition) is used to check whether a specific condition is satisfied or not. If the condition is met, the program executes one set of instructions; otherwise, it follows a different path.
Syntax: if: statements for condition true else: statements for condition false
![]()
Loop Statements
Loop statements can be used to give instructions. There are mainly two types of loops in Python. There are mainly two types of loops in Python.
1. while loop
2. for loop
while loop
In Python, while loop is used to execute a block of statements repeatedly until a given condition is true. When the condition becomes false, the line immediately after the loop in the program is executed.
Syntax: while:<condition>: statements to repeat
for loop
In Python, for loop is used to handle iteration statements.
Syntax: for item in sequence: statements
Program using while and for loop to print the numbers from 1 to 100.
while loop: cout=1 while count<=100; print(count) count=count+1 for loop for count in range(1, 101): print(count)
Python Graphics
Python can draw images and geometric shapes, by providing graphical output. Python has library modules to meet various needs. By using the turtle graphics module, we can create programs that generate graphical output in Python.
For this a command “from turtle import *” must be include at the beginning of the program.
- forward(number) or fd(number): It is used to draw a line.
- right (angle) or rt(angle):- Used to turn the turtle in the right direction according to the specified angle.
Lists in Python
A list is a collection used to store multiple items in a single variable.
E.g. colors=[“red”, “yellow”, “blue”, “green”, “orange”, “violet”]