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

Python Programming KNC302

Python Programming KNC302 paper AKTU for PRE Board

Uploaded by

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

Python Programming KNC302

Python Programming KNC302 paper AKTU for PRE Board

Uploaded by

ravanraj6549
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
“Total nds OF printed pages: 02 Odd PRANVEER SIN Sernaster GHLINS| Able to describe (2, Unsertandl conden snenens lone ecto Able to construct Able to ex: Time: 3 Hrs, ‘QL, Attempt all questions: a) Explain key features of Python. b) Explain Inheritance in Python with an example. ©) Define common built-in data types in Python. 4) Explain List comprehension with example. ©) Define List and Tuple with suitable example. Dy Define type conversion in Python with suitable example. 8) Define index() and pop() functions of list with code example, h) Explain the file handling functions tell() and seek(). i) Discuss the working of *args and *#kwargs i) Explain the concept of String immutability using suitable example. Section B Q2. Attempt all questions: (10X3 = 30 Marks) Construct a python program to get the Fibonacci series for 10 terms using Function. cos b) _ Construct a program which shows the concept of exception handling and its various cO3 clauses in python. Or _s} Construct a program to generate prime numbers from 1 to 100 using Sieve of COs Eratosthenes algorithm. 4) Construct a program to count and display total number of words in a text file, cos Or e) Construct a program in python to display the contents of the file in reverse. 03 Q3. Attempt all questions: ad ii) b i) Section © (0X5 = $0 Marks) “Analyze a merge sort algorithm for time and space complexity slong with its program to CO4 merge the given list A. ‘A= [B8, 27, 43,3, 9, 82, 10, 64, 25, 12, 22, 11] Or ‘Analyze a selection sort algorithm for time and space complexity along with its program CO to merge the given list A A= [64, 25, 12, 22, 11]. eh Qn ‘x Apply the Linear search algorithm in python for searching eerelement from the given list CO3 of numbers. A= [38, 27, 43, 3, 9, 82, 10] Or ‘Apply Higher Order Sort algorithm in python for sorting the given Tist of numbers. C03, Explain the concept of Hybrid inheritance in python with example, cor ee cor Explain the concept of Abstract Class and Abstract Method using suitable example.

You might also like