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

Semester - 4-Python Programming - 69389221

This document outlines the supplementary winter examination details for the B. Tech course in Python Programming at Dr. Babasaheb Ambedkar Technological University, Lonere. It includes instructions for students, a breakdown of questions with marks allocation, and various topics to be covered such as conditional statements, object-oriented programming, and Python's interaction with the operating system. The exam is scheduled for December 31, 2024, with a total of 60 marks available.

Uploaded by

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

Semester - 4-Python Programming - 69389221

This document outlines the supplementary winter examination details for the B. Tech course in Python Programming at Dr. Babasaheb Ambedkar Technological University, Lonere. It includes instructions for students, a breakdown of questions with marks allocation, and various topics to be covered such as conditional statements, object-oriented programming, and Python's interaction with the operating system. The exam is scheduled for December 31, 2024, with a total of 60 marks available.

Uploaded by

sumitberad35
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DR.

BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE


Supplementary Winter Examination – 2024
Course: B. Tech. Semester :IV
Branch : Electronics & Telecommunication Engineering and Allied
Subject Code & Name: Python Programming [BTETPE405E]
Max Marks: 60 Date:31/12/2024 Duration: 3 Hr.
69381427

69381427

69381427
Instructions to the Students:
1. Each question carries 12 marks.
2. Question No. 1 will be compulsory and include objective-type questions.
3. Candidates are required to attempt any four questions from Question No. 2 to Question No. 6.
4. The level of question/expected answer as per OBE or the Course Outcome (CO) on which the question
is based is mentioned in ( ) in front of the question.
5. Use of non-programmable scientific calculators is allowed.
6. Assume suitable data wherever necessary and mention it clearly.
(Level/CO) Marks
Q. 1 Objective type questions. (Compulsory Question) CO 01-03 12
1 Python was first released in year __________ 1
a) 1991 b) 1989 c) 2000 d) 1995
2 How do you run a Python script from the command line? 1
a) python [Link] b) run [Link]
69381427

69381427

69381427
c) execute [Link] d) start [Link]
3 Which of the following variable names is invalid in Python? 1
a) name_1 b) _name c) 1name d) name
4 What is the output of the following code? 1
type(5)
a) <class 'float'> b) <class 'str'> c) <class 'int'> d) <class 'bool'>
5 Which of the following is a membership operator? 1
a) in b) and c) is d) =
6 Which of the following methods is used to add an item to a list? 1
a) add() b) append() c) insert() d) extend()
7 What keyword is used to define anonymous functions in Python? 1
a) function b) lambda c) def d) anon
69381427

69381427

69381427

8 What is a "fruitful function"? 1


a) A function that takes multiple b) A function that does not return any
arguments value
c) A function that returns a value d) A function with default arguments
9 What is PIP in Python? 1
a) A text editor b) A package manager c) A compiler d) A debugger
10 What is the key difference between an error and an exception? 1
a) Errors are recoverable, exceptions b) Exceptions are recoverable, errors
are not are not
c) Both are recoverable d) Neither is recoverable
11 What is the purpose of the turtle module in Python? 1
a) Creating GUIs b) Creating network applications
c) Drawing graphics d) Data analysis

Page 1
12 Why is testing required in Python programming? 1
a) To identify and fix bugs in the code b) To enhance code readability
c) To write code faster d) To avoid using libraries

Q. 2 Solve the following. 12


A) Explain why Python is considered a versatile and widely-used programming 6
language.
B) Explain variables in Python, Also explain how values are assigned to variables in 6
69381427

69381427

69381427
Python

Q.3 Solve the following. 12


A) Explain the use of conditional statements in Python with an example. CO 01, 02 6
B) Compare tuples, sets, and dictionaries in Python. CO 01 6

Q. 4 Solve Any Two of the following. 12


A) Describe the process of creating and using modules in Python with examples. CO 01 6
B) Explain variable-length arguments in Python with examples. CO 01 6
C) Write a Python program to check if a given string is a palindrome (reads the same CO 02 6
forwards and backwards).
Example Input: "TENET" Expected Output: True
69381427

69381427

69381427
Example Input: "PYTHON" Expected Output: False

Q.5 Solve Any Two of the following. 12


A) Write a short note on concept of OOP. CO 01, 02 6
B) Explain methods in Python, including instance methods, class methods, and static CO 01, 02 6
methods, with examples.
C) Write a Python program to implement a basic calculator that can perform CO 02 6
addition, subtraction, multiplication, and division based on user input.

Q. 6 Solve Any Two of the following. 12


A) Describe Python's interaction with the operating system, providing examples. CO 01 6
B) Explain the importance of testing in software development. CO 03 6
69381427

69381427

69381427

C) Write a Python program to find the intersection of two lists. The result should be CO 02 6
a list that contains the elements common to both lists, without duplicates.
Example Input: list1 = [1, 2, 3, 4, 5], list2 = [3, 4, 5, 6, 7]
Expected Output: [3, 4, 5]
*** End ***

Page 2

You might also like