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

Bca 002 004

Uploaded by

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

Bca 002 004

Uploaded by

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

Filling the Roll No is compulsory:

Odd Semester Mid-Term: Examination 2024-25


BCA – 3st Semester
Subject Code:
BCA-002 & 004
Programming in Python
[Time: 02:00 hrs.] [Maximum Marks: 25]
NOTE: Attempt all three sections
SECTION – ‘A’
Attempt both questions from section “A”: (2.5 Marks each)

Q. 1. Answer the following.

(I) Define:
a) What is **Kwargs.
b) What is Lambda Function.
c) Difference between parameter and arguments.
d) Difference between print and return.
e) Difference between function and methods.
f) What is Decorator.

Q.2 Answer the following.

(I) Difference between the ‘a’, ’w’ ,’x’ mode.

SECTION – ‘B’
Attempt any two questions from the section “B”: (4 Marks each)
Q. 3. Answer the following.
I. Python Program to Remove Duplicate Element From a List without using inbuilt method.
Q. 4. Answer the following.

I. Write a program to check person is eligible for Vote or Not.


(Hint: If the age of a candidate is greater or equal to 18, then candidate can vote)
II. Write a program to check a number is Odd or Not.
Q. 5. Answer the following.
(I) Write a Program to print the pattern below.

SECTION – ‘C’
Attempt any two questions from section “C”: (6 Marks each)
Q. 6. Answer the following.
I. Write a program to create the oops based ATM MACHINE .
II. Write a Python program to create a class representing a bank. Include methods for managing
customer accounts and transactions.
Q.7. Answer the following.
I. Find out the output of following python Code?

a) c = ['Syntax','found',[[[[34,43,43]],[[],['Nice','error']]]]]

Output :- error

b) a = [[],[[[],[[],[34,'ansrk']]]]]

Output :- krsna

c) print(3**3**2+3452%3*2-232

Output:- ?

II. Write a Python program to create a calculator class. Include methods for basic arithmetic
operations.

Q.8. Answer the following.

I. How Do You Inherit From Another Class in Python Explain with code?

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