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

python paper

basic python paper

Uploaded by

puneet mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

python paper

basic python paper

Uploaded by

puneet mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

( Following paper code and roll no. to be filled by student at the answer books ) a.

a. What are lists and tuples? What is the key difference between the two?
PAPER CODE : BCC302 b. What are the Key features of Python?
ROLL NO.
c. Find out the output of the given code
BBS COLLEGE OF ENGINEERING & TECHNOLOGY, sum = 0
PRAYAGRAJ
FIRST SESSIONAL EXAM (2024-2025) count = 1

BRANCH: B.TECH ( CS) SEM: 3rd while count <= 5:


SUBJECT: Python sum = sum + count
MAX MARKS: 20 MAX TIME: 1:30 HR
count = count + 1
NOTE : 1. QUESTION PAPER CONTAINS THREE PARTS print("The sum is:", sum)
2. ALL QUESTIONS ARE COMPULSORY
d. find out the output of the given code
(SECTION A) [5 X 1 = 5]
number = 10
Q1. ATTEMPT ALL FROM THE FOLLOWING:
while number >= 1:
a. What are the serializable data types in Python?
print(number)
b. What is a dynamically typed language?
number = number – 1
c. What is slicing in Python? e. what are the common built-in data types in Python?

d. Write a program to reverse the string (SECTION C) [5X1 = 5]

e. How do you add a new key-value pair to a dictionary? Q3. ATTEMPT ANY ONE OF THE FOLLOWING:

a. Write a program to check whether a number is Armstrong or not

(SECTION B) [4 X 2.5 = 10] b. Write a Python Program to Find the Factorial of a Number

Q2. ATTEMPT ANY FOUR OF THE FOLLOWING:

You might also like