Worsheet On Ch-3 Python Fundamentals

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

CLASS XI – Informatics Practices

WORKSHEET ON: Chapter-3 Python Fundamentals

General Instructions: Write it in your notebook.

I. Answer the following questions


i. What are the data types supported in python?
ii. What is the purpose of ** and * in Python?
iii. What is the dynamic typing feature of python?
iv. What is None literals in python?
II. Application based questions:

1. Find the output of following code fragment


a) name=’simar’
age=17
print(name,”you are”, age,”now but”, end=’ ‘)
print(“you will be”,age+1,”next year”)

b) x,y=2,6
x,y=y,x+2
print(x,y)

c) x,y=7,2
x,y,x=x+1,y+3,x+10

2. What will be the output produced by these?


a) 12/4 b) 14//14 c)14%4 d) 14.0/4 e)14.0//4 f)14.0%4

e-Learning / CMA, Ankleshwar

You might also like