Previous year paper

(SEM III) THEORY EXAMINATION 2019-20 PYTHON PROGRAMMING

Python Programming B.Tech 0 downloads

About this previous year paper

This document is the B.Tech SEM–III Theory Examination 2019–20 question paper for Python Programming (Sub Code: KNC302) under Dr. A.P.J. Abdul Kalam Technical University (AKTU).
The uploaded file contains two pages, printed clearly and formatted into three sections — SECTION A, SECTION B, and SECTION C.
The total marks are 100, and the exam duration is 3 hours.

The paper evaluates foundational to advanced Python concepts such as data types, lists & tuples, variables, loops, functions, higher-order functions, unpacking, list comprehension, file handling, exceptions, and Python program writing.

SECTION A — Short Questions (10 × 2 = 20 Marks)

(Visible on Page 1 of the uploaded paper)

Section A contains ten 2-mark questions that test quick, conceptual understanding of Python basics.

The questions include:

List vs Tuple difference

Semi-colon usage in Python

Five benefits of Python

Why Python is interpreted

Types of language Python is

Local vs Global variables

Difference between Python Arrays and Lists

Define ADT Interface

Floor division with example

Differentiate Fruitful vs Void functions

These questions appear inside a structured table with CO mapping.

SECTION B — Long Descriptive Questions (Any 3 × 10 = 30 Marks)

(Shown on Page 1, bottom section)

Students must attempt any three out of five 10-mark questions.

Topics include:

Algorithm to find frequency of elements in a list

Python program to remove brackets from an algebraic expression

Functions accepting variable number of arguments

Difference between iteration and recursion with examples

Python program for Fibonacci series

Each question requires explanation plus Python program writing.

SECTION C — Applied & Program-Based Questions (Q4, Q5, Q6)

(Displayed on Page 2)

Section C contains three main questions (Q4, Q5, Q6), each with two alternatives (a or b).
Students must answer one part from each pair.
Each part carries 10 marks.

Q4 — Expression Evaluation / Looping Concepts

(a) Explain expression evaluation & float representation.
Write a Python program to check if a number is Fibonacci.

(b) Explain loops, break & continue.
Write a Python program to convert 12-hour time to 24-hour format.

Q5 — Higher-Order Functions / Sequence Unpacking

(a) Explain higher-order functions w.r.t lambda.
Write code to count occurrences of an element in a list.

(b) Explain unpacking sequences, mutable sequences, and list comprehension with examples.
Write a program to sort a list of dictionaries using lambda.

Q6 — File Handling / Exception Handling

(a) Discuss Python File I/O.
Write a program to read a file line-by-line and store it in a variable.

(b) Discuss Python Exceptions and Assertions.
Explain five built-in exceptions with example.

All questions are visible clearly on the second page in structured table format.

OVERALL SUMMARY OF THE DOCUMENT

The Python Programming (KNC302) exam paper evaluates the student's skills in:

Python basics (lists, tuples, variables, operators)

ADT concepts

Looping, break and continue

Recursion vs iteration

Functions & higher-order functions

Lambda expressions

Mutable vs immutable sequences

List comprehension

Dictionary sorting

File I/O operations

Exception handling

Writing clean Python programs

The uploaded file is 2 pages, cleanly formatted with tables, question numbering, CO mapping, and Python-based problem statements.

TypePrevious year paper
SubjectPython Programming
Board / courseB.Tech
FilePDF · 62.58 KB
Shared by SuGanta International

Added by the SuGanta team.