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

MVJ22PLCK25B

This document outlines the examination structure for the Introduction to Python Programming course at MVJ College of Engineering, including details on the duration, maximum marks, and question format. It consists of two parts: Part A requires answers to all questions, while Part B consists of five questions from different modules, each carrying 16 marks. The questions cover various Python programming concepts, including data types, control statements, file handling, and functions.

Uploaded by

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

MVJ22PLCK25B

This document outlines the examination structure for the Introduction to Python Programming course at MVJ College of Engineering, including details on the duration, maximum marks, and question format. It consists of two parts: Part A requires answers to all questions, while Part B consists of five questions from different modules, each carrying 16 marks. The questions cover various Python programming concepts, including data types, control statements, file handling, and functions.

Uploaded by

angelotommy006
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

MVJ COLLEGE OF ENGINEERING-BANGALORE

Second Semester B.E. Degree (Autonomous) Examinations, Jul/Aug


2024

USN
MVJ22PLCK25
Introduction to Python Programming
Common to All Branches
2022
Scheme
Duration: 3 Hrs.
Maximum Marks: 100
Note:
 Answer all Questions in Part-A.
 Answer any five full questions in Part B choosing one full question from each module.
PART-A
Mark
Q.No.
s
1 Develop a Python code that accepts two strings as input and
2
concatenates them into a single string and display the result.
2 Distinguish between break and continue statements. 2
3 Interpret mutable and immutable data types. 2
4 Identify the main differences between a dictionary and a list. 2
5 Create a python code for all the letters in the original string have
2
been converted to uppercase and lowercase letters.
6 Categorize the ways to specify a file path in python. 2
7 Give an syntax for creating folder that contains three folders and
2
four files.
8 Determine how you set a breakpoint on a line of code in IDLE. 2
9 Conclude the two main syntactic differences between methods and
2
functions.
10 Utilize the init() method for Time class and write a python code to
2
print the time.
Part B
Each Questions carries 16 Marks
Q,No. Mark
s
Module-1
1. a) Review the process of importing modules in python. 6
b) Examine the various flow control statements with suitable example. 10
OR
2. a) Analyze the usage of def statements with parameters in python. 6
b) Compare and contrast the local and global scope of variables with 10
1|2Pages MVJ22PLCK25B
an example program.
Module-2
3 a) Design a python code snippet to illustrate the use of in and not in
operators. 6
b) Make use of python built-in methods for finding, adding, removing, 10
and manipulating values in a list with an example.
OR
4 a) Write a python code using keys(), values(), and items() methods 6
and explain the functionality of each methods.
b) Apply the data structures lists and dictionaries to model the Tic- 10
Tac-Toe Board with necessary steps.
Module-3
5 a) Assess the ways to working with strings in python. 6
b) Evaluate the various string methods in python with an appropriate
example. 10
OR
6 a) Test the various steps to read and write files in Python with
example code. 6
b) Appraise the useful functions related to filenames and file paths in 10
os.path module with example.
Module-4
7 a) Demonstrate the various kinds of functions available in shutil 8
module with suitable code.
b) Illustrate how to compress the files with zipfile module in python. 8
OR
8 a) Explain the ways to categorize the log messages with logging
levels. 8
b) Extend the use of assert statement in python with an example. 8
Module-5
9 a) Develop a function named rect_in_circle that takes a Circle and a 8
Rectangle and returns True if the Rectangle lies entirely in or on
the boundary of the circle.
b) Inspect the kinds of functions used to add time values in python 8
with suitable example.
OR
10 a) Apply the concept of polymorphism to find the area of square and a 8
rectangle and implement with python code.
b) Survey the concept of inheritance and the kinds of relationships 8
with simple example.

2|2Pages MVJ22PLCK25B

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy