0% found this document useful (0 votes)
62 views

Class 10 Computer Science MCQ and Programs

This document provides study material and Python programs for a Class 10 Computer Science course. It includes 10 multiple choice questions about Python concepts like data types, operators, lists, and tuples. It then provides 5 Python programs: 1) a program to perform all arithmetic operations on two numbers, 2) a program to calculate the area of a rectangle, 3) a program to convert meters to kilometers, 4) a program to calculate the total and average of 5 subject marks, and 5) a program to calculate simple interest. Students are asked to prepare textbook MCQs from given page numbers and run the provided Python programs.

Uploaded by

Sobana Joy
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)
62 views

Class 10 Computer Science MCQ and Programs

This document provides study material and Python programs for a Class 10 Computer Science course. It includes 10 multiple choice questions about Python concepts like data types, operators, lists, and tuples. It then provides 5 Python programs: 1) a program to perform all arithmetic operations on two numbers, 2) a program to calculate the area of a rectangle, 3) a program to convert meters to kilometers, 4) a program to calculate the total and average of 5 subject marks, and 5) a program to calculate simple interest. Students are asked to prepare textbook MCQs from given page numbers and run the provided Python programs.

Uploaded by

Sobana Joy
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/ 2

TERM 1

Study Material

Class 10 : COMPUTER SCIENCE MCQ & PYTHON PROGRAMS

1.Which of the following is used for single line comment in python program?
a)$ b)/ c)# d)&
2.) _________function is used to display information in python program
a) display( ) b) get() c) print() d)int( )
3.)_________________function is used to get input value in python .
a) in ( ) b) enter( ) c) print( ) d) input( )
4.) which is the correct method to assign value in python
a) 30= mark b)mark=30 c) mark==30 d) mark(30)
5.)what will be output of this code:
print(type(34))
ans: <class_int> or integer

6.) ___________operator is used to find remainder in python.


a)+ b)/ c)% d)**
7.) X=[10,20,30]
What is X[1]? Ans: 20
8.) name= “Mickey” , what type is name variable?
a)integer b)string c)float
9.) if list1=[2,4,6] what will be list1*2 ? ans: [2,4,6,2,4,6]

10.) Which among the following is a tuple?


a)(11,22,33,44,55) b)[8,9,7] c) {1,2,3} d) ”tuple”

PREPARE TEXTBOOK MCQ FROM PAGE NUMBER 129, 203-205.

PART 2- PYTHON PROGRAM

1.write a python program to get two numbers and perform all arithmetic operations .

num1=int(input(“enter num1”))
num2=int(input(“enter num2”))
print(“addition” , num1+num2)
print(“subtraction” , num1-num2)
print(“multiplication” , num1*num2)
print(“division ” , num1/num2)
print(“remainder or modulous”, num1%num2)
print(“power” , num1**num2)
print(“floor division ” , num1//num2)

2. write a program to find area of rectangle for given length and breadth.

length=int(input(“enter length ”))


breadth=int(input(“enter breadth”))
area=length*breadth
print( “ area= ” , area )

3.write a program to convert given distance in meters into kilometers.

meters=int(input(“enter distance in meters ”))


km=meters/1000
print( “ converted to km= ” , km)
4.write a program to find average and total of 5 subject marks

m1=int(input(“enter mark”))
m2=int(input(“enter mark”))
m3=int(input(“enter mark”))
m4=int(input(“enter mark”))
m5=int(input(“enter mark”))
total=m1+m2+m3+m4+m5
avg=total/5
print( “total=”, total )
print (“average=”, avg )

5.write a program to get principal amount , rate of interest , number of years and calculate simple interest .

p=float(input(“enter principal amount”))


r=int(input(“enter rate”))
t=int(input(“enter number of years”))
simpleinterest = ( p * r * t )/100
print(“simple interest=” , simpleinterest)

You might also like