(SEM III) THEORY EXAMINATION 2020-21 PYTHON PROGRAMMING

B.Tech Python Programming 0 downloads
₹29.00

This document is the B.Tech (Semester III) Theory Examination 2020–2021 question paper for the subject Python Programming (KNC302) under Dr. A.P.J. Abdul Kalam Technical University (AKTU).
The exam duration is 3 hours, and the total marks are 100.
The uploaded paper contains 3 sections only: Section A, Section B, Section C, with further subdivisions inside Section C (Q3–Q7).

The paper spans 4 printed pages, all clearly structured with questions, marks, CO mapping, and Python code snippets.

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

As shown on Page 1, this section contains ten brief questions, each for 2 marks.

The questions check fundamental Python concepts:

Use of the raise statement

Writing a recursive reverse-print function

Behavior of range(s, e)

Use of the with statement (context managers)

Identifying incorrect multiple assignment statements

Operator precedence

Reading integer input from the user

Error due to string immutability in nested indexing

Output of a lambda expression

Use of the __lt__() function in Python classes

Every question is conceptual and designed to test Python basics.
 

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

Section B appears on Page 2.
Students must attempt any three of the five 10-mark questions.

Topics include:

Writing a function removekth(s, k)

Computing average of list elements using try–except for empty list

Difference between linear search and binary search

Filtering values using list comprehension

Program to find all positive factors of a number

These questions require coding, explanation, and understanding of Python error handling, algorithms, and list operations.

SECTION C — Advanced / Applied Python Questions (Q3 to Q7, Each 10 Marks)

Section C appears across pages 2, 3, and 4.
Each question has two alternative parts, and the student must attempt one from each Q-number.

Q3 — Python Modules & Import System

(Shown on Page 2)

Creating a Python file that works both as a module and a standalone script
OR

Difference between

import library

from library import *

Q4 — Lists, Functions, Arguments

(Page 3)

Writing makePairs to pair elements from two lists
OR

Example using both keyword and default arguments in one function call

Q5 — Interpreter Concept & Short-Circuiting

(Page 3)

Why Python is called an interpreted language
OR

Short-circuit evaluation with program output for c or a

Q6 — Looping, Patterns, Number Theory

(Page 4)

Writing the triangle(N) pattern-printing program
OR

countSquares(N) to count perfect squares ≤ N

Q7 — Sequence Analysis & Searching

(Page 4)

alternating(lst) to check alternating even-odd pattern
OR

searchMany(s, x, k) to verify max. k occurrences of a value

OVERALL DESCRIPTION OF THE DOCUMENT

The uploaded question paper thoroughly evaluates:

Python syntax fundamentals

Functions, recursion, arguments

Exception handling

List operations, list comprehension

Searching algorithms

Lambda expressions

Pattern printing

Counting and logical conditions

Import mechanisms & Python script structure

Control flow (short-circuiting)

Using Python for mathematical and logical problems

The three-section structure includes:

Section A: 20 marks → Conceptual short answers

Section B: 30 marks → Programming-based descriptive questions

Section C: 50 marks → Advanced Python coding, logic, and reasoning

All pages include neat tabular formatting and Python code snippets, ensuring clarity and comprehensive coverage of Python fundamentals and intermediate-level programming.

File Size
157.74 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

Yoga Classes Near Saket – Transform Your Mind, Body & Lifestyle Saket, Delhi
Guitar Classes Near By Malviya Nagar Learn Guitar with Expert Trainers & Turn Your Passion into Skill in 2026 Malviya Nagar, Delhi
Personal Fitness Training Near Sector 134 Greater Noida – Achieve Your Fitness Goals with Expert Guidance Sector 134, Noida
Public Speaking Training Near Uttam Nagar – Speak with Confidence & Impact Uttam Nagar, Delhi
Spoken English Classes Near By Malviya Nagar Build Confidence, Improve Fluency & Unlock Career Opportunities in 2026 Malviya Nagar, Delhi
Drum Lessons (Electronic Drums Preferred at Home) Near DLF Phase 4 Gurugram DLF Phase IV, Gurugram
Spoken English Classes Near Central Park 1 – Improve Confidence and Communication Skills Central Park 2, Gurugram
Japanese Language Classes Near Uttam Nagar – Learn Japanese for Global Opportunities Uttam Nagar, Delhi
Meditation Coaching Near Malibu Town, Gurugram – Find Inner Calm & Mental Clarity Malibu Town, Gurugram
Stenography Classes Near Sector 93 Gurugram – Build Speed, Accuracy & Secure Government Career Opportunities Sector 93, Gurugram
Tally / Accounting Software Classes Near By Kirti Nagar – Become a Skilled Accounts Professional Kirti Nagar, Delhi
Diet & Nutrition Consultation Near Sector 127 Noida – A Complete Guide to Healthy Living Noida
Hotel Management Course Near Sector 93A Gurugram – Build a Successful Career in Hospitality Sector 93, Gurugram
Meditation Coaching Near Sector 128 Noida – A Complete Guide to Inner Peace and Mental Wellness Sector 128, Noida
Meditation Coaching Near Sector 126 Noida – A Complete Guide to Mental Wellness and Inner Peace Sector 126, Noida
Physiotherapy Guidance (Certified Professionals Only) Near Sector 122 Noida – Complete Support for Pain Relief and Physical Recovery Sector 122, Noida
Singing / Vocal Training Near Sector 18 Market Area Noida – Learn Music with Professional Vocal Trainers Noida Sector 18, Noida
App Development Course Near Sector 60 Gurugram – Build Android & iOS Apps with Industry Experts Gurugram
Painting Classes Near By Dwarka Mor – Discover the Artist Within You Dwarka Mor, Delhi
Dance Classes (Bollywood, Hip-Hop, Classical) Near Palam Vihar Extension – Learn Dance with Professional Trainers New Palam Vihar, Gurugram
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020