03010501DA01_5873_Question_Paper
03010501DA01_5873_Question_Paper
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.
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