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

Python 2023

Question paper

Uploaded by

Smrithi Suresh
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)
45 views

Python 2023

Question paper

Uploaded by

Smrithi Suresh
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

1

447866

4
D 51703 (Pages : 2) Name.........................................

Reg. No.....................................

1
THIRD SEMESTER (CBCSS—UG) DEGREE EXAMINATION
NOVEMBER 2023

1
Common Course (B.Sc. LRP (Alternate Pattern))

A11—PYTHON PROGRAMMING

(2019—2022 Admissions)

Time : Two Hours and a Half Maximum : 80 Marks

Section A

1
Answer the following questions (1-15).
Each question carries 2 marks.

4
1. What are the features of Python programming ?

2. State about logical operators available in Python language with example.

1
3. What is the difference between a = 10 and a = =10 ?

4. Write a program to calculate the square and cube of a number using * operator.

1
5. Define Boolean expression with example.

6. Differentiate between void function and fruitful function.

7. What do you mean by nested loop ?

8. Write the syntax for if.. ..elif....else conditionals.

9. Explain about variable-length arguments.

10. How to call a function in Python ? Explain with an example.

1
11. What is a default parameter ?

12. What is the use of the len() function ? Give one example.

4
13. What are the different types of string operators in Python ?

14. What are Python’s dictionaries ?

1
15. What is a List ? How lists differ from tuples ?

(Ceiling = 25 marks)

1
Turn over

447866
1
447866

4
2 D 51703

Section B

1
Answer the following questions (15-23).
Each question carries 5 marks.

1
16. How will you define function in Python ? Give suitable example.

17. Distinguish between global and local variables with examples.

18. Write a Python program using nested if statement ?

19. With an example, discuss about Python range function.

20. Explain about Python built in functions.

1
21. What do you mean by user defined functions ? How to create it in Python.

22. Explain the different ways in which the lists can be created

4
23. What are sets in Python ? Explain different operations on sets with examples ?

(Ceiling = 35 marks)

Section C

1
Answer any two questions (24-27).
Each question carries 10 marks.

1
24. Describe about the concept of precedence and associativity of operators with examples.

25. Explain with an example while loop, break statement and continuous statement in Python.

26. Give a note on return statement in Python. Write a Python program illustrating use of return
statement.

27. Explain about the various operations that can be performed on tuples.

(2 × 10 = 20 marks)

1 41
1
447866

You might also like