(SEM III) THEORY EXAMINATION 2022-23 PYTHON PROGRAMMING

B.Tech Python Programming 0 downloads
₹29.00

This question paper is a comprehensive examination designed to evaluate a student's understanding of Python programming fundamentals, control structures, data structures, object-oriented programming concepts, functions, file handling, and algorithmic problem-solving. The paper is divided into three sections: A, B, and C, guiding the student from basic conceptual knowledge to moderate analytical questions and finally to advanced applications of Python.

SECTION A – Short Questions (10 Marks)

This section contains ten brief questions, each worth 1 mark, focusing on essential Python concepts. These questions are designed to quickly assess the student’s theoretical knowledge and basic understanding.

Topics include:

Python Programming Cycle – highlighting how Python programs are written, compiled/interpreted, executed, and debugged.

List Slicing – an important Python data manipulation technique with indexing.

Module Importing – understanding import, from … import, and alias usage.

Difference between Python Lists and Arrays – touching on mutability, data types, and use-cases.

Floor Division – using // operator with examples.

Difference between append() and extend() – essential for list operations.

Python Dictionary – definition and usage of key-value pairs.

Object-Oriented Programming (OOP) – including classes, objects, and example snippets.

Two code-based output questions checking understanding of:

Vowel counting using loops and conditionals

String join() function to join list elements

This section tests precision, clarity of concepts, and memory of Python syntax.

SECTION B – Descriptive & Coding Questions (15 Marks)

Students must attempt any three questions, each worth 5 marks.
This section examines the student’s ability to apply Python logic, write programs, demonstrate concepts, and analyze the flow of control.

Topics covered:

1. String Built-in Functions & Palindrome Program

Students must demonstrate five string functions (e.g., upper(), lower(), replace(), split(), strip()) and write code to check whether a string reads the same backward and forward.

2. For and While Loops (Flow Diagrams, Syntax, Examples)

Emphasizes understanding of iteration, logic flow, and proper loop construction.

3. Continue, Break, Pass Statements

Tests the ability to control loop execution and understand when to skip iterations, exit loops, or leave placeholder blocks.

4. Reverse Number Program

A classic logic-building exercise using loops or string conversion.

5. List Comprehension

Conceptual and practical demonstration of Python’s most concise list-building technique.

This section ensures students are comfortable with programming logic, flow control, and real code execution.

SECTION C – Advanced Python Concepts (25 Marks)

This section contains five higher-order questions, each offering two internal choices. Students must attempt one part per question. Each carries 5 marks, making this section crucial for scoring.

This section tests deep understanding and application of Python concepts.

Q3 – Sequence Handling OR Lambda Functions

Part (a): Students must explain

Unpacking Sequences

Mutable Sequences

List Comprehension
with examples.

Part (b): Students explain

Lambda Functions

Their role in higher-order functions

Use of map() function with example

This tests understanding of functional programming concepts.

Q4 – Argument Passing OR OOP Concepts

Part (a): Explanation of different argument types:

Positional

Keyword

Default

Variable-length (*args, **kwargs)
with examples.

Part (b): Students write short notes on:

Encapsulation (data hiding using classes)

Inheritance (code reusability)
with examples.

This question tests function flexibility and OOP fundamentals.

Q5 – File Handling OR Prime Number Algorithm

Part (a): Tests practical skills of:

Creating files

Writing data

Reading data

Displaying output

Part (b): Students must explain the Sieve of Eratosthenes and write a Python program to print primes from 1 to 100.

This section checks algorithmic thinking and Python I/O operations.

Q6 – Sorting OR Searching Algorithms

Part (a): Students write and explain Selection Sort, including complexity analysis.
Part (b): Students must explain Binary Search, give code, and analyze time complexity.

This tests understanding of basic data structures and algorithms.

Q7 – Exception Handling OR Recursion (Tower of Hanoi)

Part (a): Students explain importance of exception handling, the use of try, except, finally with examples.

Part (b): Students explain the Tower of Hanoi puzzle along with its recursive Python function.

This section tests error-handling, recursion, and logical reasoning.

OVERALL PURPOSE OF THE PAPER

This exam evaluates a student’s:

Core Python fundamentals

Data structures (lists, dictionaries, sequences)

Control flow understanding

Ability to write and analyze Python programs

Use of functions, arguments, loops, and conditionals

Knowledge of OOP concepts

Real-world coding skills (file handling, sorting, searching)

Logic building using recursion and algorithms

Strength in problem-solving and coding accuracy

The paper ensures students have both theoretical knowledge and practical programming ability, making it suitable for diploma, BCA, B.Tech, or introductory Python programming courses.

File Size
104.83 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

Spoken English Classes Near By Lajpat Nagar Build Fluency, Confidence & Professional Communication Skills in 2026 Lajpat Nagar, Delhi
Fashion Designing Classes Near By Dwarka Mor – Turn Your Creativity into a Stylish Career Dwarka Mor, Delhi
Tailoring & Stitching Classes Near Sector 81A Gurugram – Learn Professional Garment Making Skills Sector 81A, Gurugram
Legal Documentation Assistance Near By Dwarka Mor Reliable, Accurate & Professional Legal Drafting Dwarka Mor, Delhi
History Classes Near Sector 91 Gurugram – Build Strong Understanding of the Past for a Better Future Gurugram
Diet & Nutrition Consultation Near Sector 127 Noida – A Complete Guide to Healthy Living Noida
Guitar Classes Near By Lajpat Nagar Learn Guitar with Expert Trainers & Turn Your Passion into a Powerful Skill Lajpat Nagar, Delhi
Diet & Nutrition Consultation Near Malibu Town – Personalized Guidance for a Healthy Lifestyle Malibu Town, Gurugram
Yoga Classes Near Sector 137 Greater Noida – Improve Health, Fitness and Mental Well-Being Through Professional Yoga Training Sector 137, Noida
Web Development Classes Near Uttam Nagar – Learn to Build Modern Websites Uttam Nagar, Delhi
Painting Classes Near Sector 67A Gurugram – Explore Creativity & Master Artistic Expression Sector 67A, Gurugram
Physiotherapy Guidance Near Tilak Nagar (Certified Professionals Only) Tilak Nagar, Delhi
🇩🇪 German Language Classes Near Sector 116 Noida – Learn German with Professional Training Sector 116, Noida
Resume & Interview Coaching Near By Sector 102 Gurugram (Dwarka Expressway) – Build Confidence, Crack Interviews, Get Hired Sector 102, Gurugram
Digital Marketing Classes Near Noida Sector 98 – Learn Modern Marketing Skills and Build a Successful Career Expressway, Sector 98, Noida, Noida
Yoga Classes Near By Greater Kailash Achieve Strength, Flexibility & Mental Peace with Expert Yoga Training in 2026 Greater Kailash, Delhi
Physiotherapy Guidance (Certified Professionals Only) Near Sector 120 Noida – Expert Care for Pain Relief and Recovery Sector 120, Noida
Spoken English Classes Near By Kirti Nagar Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Kirti Nagar, Delhi
Career Counseling Near Sector 100 Dwarka Expressway, Gurugram – Guidance for a Clear & Confident Future Gurugram
Cake Decoration Classes Near By Dwarka Mor – Master the Art of Creative Cake Designing Dwarka Mor, Delhi
⭐ 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