0% found this document useful (0 votes)
28 views2 pages

03010501DA01_5873_Question_Paper

This document outlines the examination details for the B.Sc. Winter 2023-24 semester at Parul University, focusing on the subject 'Programming in Python'. It includes instructions for the exam, a breakdown of questions to be attempted, and marks allocation for each question. The exam covers various Python programming concepts, including data types, operations, and functions.

Uploaded by

cchim
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)
28 views2 pages

03010501DA01_5873_Question_Paper

This document outlines the examination details for the B.Sc. Winter 2023-24 semester at Parul University, focusing on the subject 'Programming in Python'. It includes instructions for the exam, a breakdown of questions to be attempted, and marks allocation for each question. The exam covers various Python programming concepts, including data types, operations, and functions.

Uploaded by

cchim
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

Seat No:______________ Enrollment No:______________

PARUL UNIVERSITY
FACULTY OF APPLIED SCIENCE
B.Sc. Winter 2023-24 Examination
Semester: 1 Date: 17-01-2024
Subject Code: 03010501DA01 Time: 10:30am to 1:00pm
Subject Name: Programming in Python Total Marks: 60
Instructions:
1. All questions are compulsory.
2. Figures to the right indicate full marks.
3. Make suitable assumptions wherever necessary.
4. Start new question on new page.

Q.1 Essay type (Attempt any two) (16) CO PO Bloom’s


Taxonomy
1. Write a Program to read and display the following information. (08) 1 2
Name, Address, Phone no. in python.
2. Write a Program to read two numbers from the keyboard and (08) 1 3
display the larger one on the screen.
3. Write a Program to read a set of numbers from keyboard & to find (08) 3 1
the sum of all elements of the given array using a function.
Q.2 Answer the following questions (Attempt any four) (24) CO PO Bloom’s
Taxonomy
1. Explain the fundamental arithmetic operations in Python and (06) 1 2
provide examples for each.
2. Can a variable's data type be changed after it has been assigned a (06) 3 2
value, and how does dynamic typing work in Python? Give an
example.
3. What is the purpose of the json.loads() function in Python? (06) 2 3
4. What will be the output of the following Python code snippet? (06) 1 1
z=set('abc') z.add('san') z.update(set(['t', 'u'])) z
5. How do you open a file in Python for reading? (06) 4 1
6. What does JSON stand for? (06) 4 2
Q.3 Answer the following questions (Attempt any four) (12) CO PO Bloom’s
Taxonomy
1. What is the difference between single ('') and double ("") quotes (03) 1 1
when defining a string?
2. What is the difference between ‘int’ and ‘float’ data types in (03) 1 1
Python?
3. How can you convert a string to uppercase in Python? (03) 4 2
4. How do you use the pass statement in Python in the context of if- (03) 2 3
else statements and loops?
5. What is the syntax for a for loop in Python? (03) 2 1
6. What is the purpose of the else clause in Python's if-else statement? (03) 1 1
Q.4 Answer the following questions (08) CO PO Bloom’s
Taxonomy
1. What is a list in Python? (01) 1 1
2. What will be the output of the following Python code? >>> (01) 2 2
a=(2,3,1,5) >>> a.sort() >>> a
3. How do you assign a value to a variable in Python? (01) 1 2
4. What is the data type of the result when you divide two integers in (01) 1 1
Python?

Page 1 of 2
5. What will be the output of the following Python code? numbers = (01) 1 2
[1, 2, 3, 4] numbers.append([5,6,7,8]) print(len(numbers))
6. Suppose list1 is [2, 3,6], What is list1 * 2? (01) 2 2
7. How do you remove the last element from a list in Python? (01) 2 1
8. How do you access the last element of a list in Python? (01) 3 2

Page 2 of 2

You might also like