(SEM V) THEORY EXAMINATION 2023-24 PROGRAMMING, DATA STRUCTURES AND ALGORITHMS USING PYTHON

B.Tech Data Structure 0 downloads
₹29.00

Course: B.Tech (Mechanical / Computer Science Engineering)

Semester: V

Subject Code: KME056

Subject Title: Programming, Data Structures & Algorithms using Python

Maximum Marks: 100

Time: 3 Hours


Paper Structure:

Section A: Short answer (20 marks)

Section B: Medium / descriptive (30 marks)

Section C: Long / application-based (50 marks)


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


Ten brief conceptual questions to test core understanding:

Two characteristics of Python programming language.          How to initialize a string in Python.

Difference between an array and a list.                                  Definition and use of slicing.

How to define a function in Python.                                       Meaning of global scope in functions.

What is a stack?                                                                       Define a queue in Python.

Explain Big-O notation.                                                          Define dynamic programming.


These questions assess basic syntax, theory, and algorithmic concepts.


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

Attempt any three questions.
 

Explain data types in Python (int, float, string, bool, list, tuple, set, dict).

                                                           Explain tuples and dictionaries with examples and operations.

Define file handle and its use with examples (open(), read(), write(), etc.).

Describe commands related to stacks and queues (append(), pop(), enqueue(), dequeue()).

Write a Python program for matrix multiplication using nested loops or NumPy.


This section focuses on practical knowledge and implementation clarity


SECTION C — Long Answer Questions (10 × 5 = 50 Marks)

Students must attempt one part from each question (Q3–Q7).
 

Q3 — Control Statements and IDE

a. Explain break, continue, and pass with examples.
b. Explain functions of Python IDEs (like IDLE, PyCharm, Jupyter).


Q4 — List and Sorting

a. Explain list operations with examples (append, extend, insert, remove, sort, reverse).
b. Write and explain a Selection Sort program in Python.


Q5 — File Handling

a. Explain commands for reading files (read(), readline(), readlines()).
b. Summarize Python commands commonly used in data handling (with, open, write).


Q6 — OOP and Trees

a. Explain classes and objects in Python with a valid program.
b. Define search trees and explain binary trees with structure and traversal.


Q7 — Algorithms

a. Write a Python program to calculate the GCD (Greatest Common Divisor).
b. Write and explain Euclid’s Algorithm for GCD.

These long questions test both coding ability and conceptual clarity


Core Topics Covered

Python fundamentals and syntax                    Data structures (lists, tuples, dictionaries, stacks, queues)

Sorting and searching algorithms                   File handling and I/O

Object-oriented programming                       Computational complexity (Big-O)

Recursion and dynamic programming            Algorithmic problem solving


 

FAQs
 

Q1. What is the difference between an array and a list in Python?
Arrays store elements of the same type, while lists can store mixed data types.


Q2. What is Big-O notation?
Big-O represents the time complexity of an algorithm — how efficiently it runs as data size increases.


Q3. What is the use of a stack?
A stack follows the LIFO principle (Last In, First Out) used in function calls and backtracking.


Q4. What is slicing in Python?
Slicing allows extracting a part of a sequence using index ranges, e.g., my_list[1:4].


Q5. What is the difference between break and continue?
break exits the loop entirely, while continue skips the current iteration and moves to the next.

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

Prenatal Yoga Training Near By Uttam Nagar – Safe & Guided Pregnancy Wellness Uttam Nagar, Delhi
Yoga Classes Near By Defence Colony Experience Holistic Fitness, Mental Peace & Lifestyle Transformation in 2026 Defence Colony, Delhi
Resume & Interview Coaching Near Sector 102 Gurugram (Dwarka Expressway) – Build Confidence, Crack Interviews, Get Hired Sector 102, Gurugram
Personality Development Classes Near Uttam Nagar – Build Confidence & Leadership Skills Uttam Nagar, Delhi
Spoken English Classes Near By Vasant Kunj Improve Fluency, Build Confidence & Achieve Career Growth in 2026 Vasant Kunj, Delhi
Spoken English Classes Near By Najafgarh Improve Fluency, Build Confidence & Open New Career Opportunities in 2026 Najafgarh, Delhi
Fitness Training Near By Najafgarh Professional Workout Programs for Strength, Weight Loss & Overall Wellness Najafgarh, Delhi
Foreign Language Classes Near By Kirti Nagar Learn Global Languages & Unlock International Opportunities Kirti Nagar, Delhi
Spoken English Classes Near By Jangpura Improve Fluency, Build Confidence & Grow Career Opportunities in 2026 Jangpura, Delhi
Diet & Nutrition Consultation Near Vatika City, Gurugram – Your Path to Healthy Living Vatika City, Gurugram
Harmonium Classes Near Sector 141 – Learn Classical & Devotional Music Professionally Noida
Guitar Classes Near By Hauz Khas Learn Guitar with Expert Guidance & Turn Your Passion into a Powerful Skill Hauz Khas, Delhi
Guitar Classes Near Chhatarpur – Professional Guitar Training in South Delhi Chhatarpur, Delhi
Painting Classes Near Sector 67A Gurugram – Explore Creativity & Master Artistic Expression Sector 67A, Gurugram
Spoken English Classes Near By Defence Colony Improve Communication Skills, Confidence & Career Opportunities in 2026 Defence Colony, Delhi
Spoken English Classes Near Tilak Nagar – Speak Fluently & Confidently Tilak Nagar, Delhi
Guitar Classes Near By Kalkaji Learn Guitar from Experts & Turn Your Musical Passion into a Lifelong Skill Kalkaji, Delhi
Drawing & Sketching Classes Near Sector 67 Gurugram – Nurture Creativity & Artistic Skills Sector 67, Gurugram
Tally / Accounting Software Course Near Sector 64 Gurugram – Build a Strong Career in Accounts & Finance Sector 64, Gurugram
Maths Coaching Near Sector 88 Gurugram – Build Strong Concepts, Improve Scores, and Gain Confidence Sector 88, 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