0% found this document useful (0 votes)
1 views

Python paper set

The document is an examination paper for Basic Python (Core) for B.C.A Semester - 5, covering various topics including Python data types, functions, file handling, exception handling, and database operations with MySQL. It consists of multiple questions divided into sections, where students are required to answer a selection of questions across different topics. The exam is structured to test knowledge on Python programming concepts, syntax, and practical applications.

Uploaded by

abhaychavda682
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)
1 views

Python paper set

The document is an examination paper for Basic Python (Core) for B.C.A Semester - 5, covering various topics including Python data types, functions, file handling, exception handling, and database operations with MySQL. It consists of multiple questions divided into sections, where students are required to answer a selection of questions across different topics. The exam is structured to test knowledge on Python programming concepts, syntax, and practical applications.

Uploaded by

abhaychavda682
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
You are on page 1/ 8

647510 BCA5PytC270x Seat No :__________

B.C.A Semester - 5 (CBCS) Examination


December -2020 (NEW COURSE)
Basic Python (Core)
Time: 1:30 Hours Marks: 42
Instructions:
1. Figures to the right indicate marks.
2. There are five questions in the question paper.
3. Answer any three of the following questions.
-------------------------------------------------------------------------------------------------------------------------------------------
Que-1 (a) Answer the following Questions. [03]
1. A comment in python starts with ______character.
2. In python a function is defined by the _____keyword.
3. _____is an unordered collection of unique items.
(b) Answer the following.(Any Two) [06]
1. Explain features of python.
2. What is mutable? List out mutable types in python.
3. Explain for loop in python.
4. Explain Input and Output function in python.
(c) Answer the following.(Any One) [05]
1. Explain python data types.
2. Explain python Modules.
Que-2 (a) Answer the following Questions. [03]
1. _____function open file stream into python variables.
2. The ____function return the length of a string.
3. Key and value separate using ____sign in dictionary.
(b) Answer the following.(Any Two) [06]
1. Explain python tuples.
2. Explain any three string method available in python.
3. How to navigate file pointer position in python.
4. How to read and write file stream in python.
(c) Answer the following.(Any One) [05]
1. Write a short note on python sets.
2. Explain python Dictionary.
Que-3 (a) Answer the following Questions. [03]
1. In Exception handling Else clause run only when no exception is raised, is it true or
false?
2. In _______search check the items in sequence until the desired item is found.
3. What is constructor in python?
(b) Answer the following.(Any Two) [06]
1. What is Class? How to create a class?
2. What is inheritance? List out types of inheritance.
3. Explain Hashtable.
4. Differentiate method overloading and method overriding.
(c) Answer the following.(Any One) [05]
1. Explain Binary /search Algorithm.
2. Explain Selection Sort Algorithm.

Page 1 of 2
Que-4 (a) Answer the following Questions. [03]
1. The module _____provide full support for regular expression.
2. CSV stand for_______________
3. DOM stand for ______________
(b) Answer the following.(Any Two) [06]
1. Explain Match () function with example.
2. List out Special Character class. Explain any one.
3. Explain DOM (Document Object Model) API in python.
4. Explain sub () function with example.
(c) Answer the following.(Any One) [05]
1. How to read CSV File explain with example.
2. Explain JSON with JSONEncoder and JSONDecoder class.
Que-5 (a) Answer the following Questions. [03]
1. ________function is used to create database connection in mysql with python.
2. The primary programming interface to mysql is ________.
3. __________clause is used to “group rows together by common column values”.
(b) Answer the following.(Any Two) [06]
1. What is mysql? How to install mysql
2. How to create database in mysql?
3. How to create table in mysql using python?
4. How to test mysql connector?
(c) Answer the following.(Any One) [05]
1. Write a python code to perform insert and delete operation on table
‘Student (rno, name, address, phone)’.
2. Explain join operation in mysql using python.

*************************

Page 2 of 2
647510 BCA5PytC270x Seat No :__________
B.C.A Semester - 5 (CBCS) Examination
Oct/Nov - 2023 (NEW COURSE)
Basic Python(Core)
Time: 2:30 Hours Marks: 70
Instructions:
1. All questions are compulsory.
2. Figures to the right indicate marks.
------------------------------------------------------------------------------------------------------------------------------------------------------
Que-1(A) Answer the following questions. (03)
1. ______ data type is an ordered set of key-value pair of items
2. In python, variable also known as ________ and used to hold value.
3. Python provide ______ function which returns the type of the variable.
Que-1(B) Answer the following question. (Any Two) (06)
1. Explain Python Features.
2. Difference between List and Tuple.
3. Explain call by reference and call by value in function with example.
4. Explain Python Loops with example.
Oue-1(C) Answer the following question. (Any One) (05)
1. Explain types of arguments in function.
2. Explain Python Module with example
Que-2(A) Answer the following questions. (03)
1. In ____ access mode, the file pointer is at the beginning of the file.
2. ____function is used to change current file position in python.
3. ____method removes any whitespace from the beginning or the end.
Que-2(B) Answer the following question. (Any Two) (06)
1. Explain python String with example.
2. Explain python Tuple with example.
3. Explain python List with example.
4. Explain python Dictionary with example.
Que-2(C) Answers the following question. (Any One) (05)
1. Explain File methods with example.
2. List out Set methods and explain any five with example.
Que-3(A) Answer the following questions. (03)
1. ________ exception occurs when Input Output operation fails.
2. An object is also called a ________of a class.
3. Python uses try and _______keywords to handle exceptions.
Que-3(B) Answer the following question. (Any Two) (06)
1. Explain User Defined Exception in python with example.
2. Explain Python Constructor and Destructors.
3. Explain Encapsulation in python with example.
4. Explain Polymorphism in python with example.
Que-3(C) Answer the following question. (Any One) (05)
1. Explain Binary search with example.
2. Explain types of Inheritance with example.

Page 1 of 2
Que-4(A) Answer the following questions. (03)
1. _____ function is used to replace parts of a string in Regular Expression.
2. Full form of DOM.
3. Full form of CSV.
Que-4(B) Answer the following question. (Any Two) (06)
1. Explain Meta characters in Regular Expression.
2. Explain CSV module with example.
3. Explain search() and match() function in Regular Expression.
4. Explain split() and sub() function in Regular Expression.
Que-4(C) Answer the following question. (Any One) (05)
1. Explain python JSON module with example.
2. Explain python XML module with example.
Que-5(A) Answer the following questions. (03)
1. Full form of pip.
2. To create a database in MySQL, use _______ statement in python.
3. To sort the result in descending order, use the _____ keyword in python.
Que-5(B) Answer the following question. (Any Two) (06)
1. Explain executemany() method with example.
2. Explain Order by statement with example.
3. Create database and table in MySQL using python.
4. Explain Limit and Offset statements with example.
Que-5(C) Answer the following question. (Any One) (05)
1. Explain python MySQL transactions with example.
2. Explain types of join in MySQL using python.
***************************

Page 2 of 2
647510 BCA5PytC270x Seat No :__________
B.C.A Semester - 5 (Remedial) (CBCS) Examination
March/April-2023 (NEW COURSE)
Basic Python(Core)
Time: 2:30 Hours Marks: 70
Instructions:
1. All questions are compulsory.
2. Figures to the right indicate marks.
----------------------------------------------------------------------------------------------------------------------------------------------------
Q.1(A) Answer the following questions. (03)
1. Python uses ______function to check the type of variable.
2. In Python Multi lined comment can be given inside _______quotes.
3. Python uses _______ to indicate a block of code.
Q.1(B) Answer the following questions. (Any Two) (06)
1. Explain Python Modules.
2. Explain Python Literals.
3. Explain Features of Python.
4. Explain Python Conditional Statements.
Q.1(C) Answer the following question. (Any One) (05)
1. Explain Python Functions in details.
2. Explain Python Data Types in details.
Q.2(A) Answer the following questions. (03)
1. The _____ method reads a string from the file in python.
2. ____function is used to change current file position in python.
3. ____function is used to remove all items from the dictionary.
Q.2(B) Answer the following questions. (Any Two) (06)
1. Difference between List and Tuple in Python.
2. How to read and write file in Python.
3. Explain string slicing with example.
4. Explain Python Sets with example.
Q.2(C) Answer the following question. (Any One) (05)
1. Explain Python Strings in details.
2. Explain Python Dictionary in details.
Q.3(A) Answer the following questions. (03)
1. Python uses try and _______keywords to handle exceptions.
2. ________ block will run every time no matter exception occurs or not.
3. ________ method is a known as a destructor method in Python.
Q.3(B) Answer the following questions. (Any Two) (06)
1. Explain Common Exceptions in python with example.
2. Explain Python Constructor.
3. Explain Encapsulation in python.
4. Explain Operator overloading in python.
Q.3(C) Answer the following question. (Any One) (05)
1. Explain types of Inheritance with example.
2. Explain Linear Search Algorithm with example.
Q.4(A) Answer the following questions. (03)
1. Full form of XML.
2. Full form of JSON.
3. Full form of DOM.

Page 1 of 2
Q.4(B) Answer the following questions. (Any Two) (06)
1. What is Regular Expression in python?
2. Explain split() and sub() function with example.
3. Difference between search() and match() function in regular expression.
4. Explain json.loads() and json.dumps() methods with example.
Q.4(C) Answer the following question. (Any One) (05)
1. Explain python CSV module in details.
2. Explain python XML module in details.
Q.5(A) Answer the following questions. (03)
1. To connect python with MySQL database, we must import _____module.
2. To insert multiple rows into table, use the ________method in python.
3. Use the ____ to represent wildcard characters in python.
Q.5(B) Answer the following questions. (Any Two) (06)
1. How to create database and table in MySQL using python.
2. Explain wildcard character in python with example.
3. What is Database Transaction? Explain commit() and rollback().
4. Explain Limit and Offset statements with example.
Q.5(C) Answer the following question. (Any One) (05)
1. Explain types of join in MySQL using python.
2. Write a python code to insert and delete operation on table ‘Employee (Eno, Name,
Phone)’.
******************************

Page 2 of 2
647510 BCA5PytC270x Seat No :__________
B.C.A Semester - 5 (Remedial) (CBCS) Examination
March/April-2024 (NEW COURSE)
Basic Python(Core)
Time: 2:30 Hours Marks: 70
Instructions:
1. All questions are compulsory.
2. Figures to the right indicate marks.
------------------------------------------------------------------------------------------------------------------------------------------------------
Que-1(A) Attempt following questions. (03)
(1) ___________ character is used to set comment in Python.
(2) tuple is immutable data type in Python. (True / False)
(3) A= 29 // 3 then A initialize with ___________ value
Que-1(B) Attempt following. (Attempt any two) (06)
(1) Explain features of Python.
(2) Explain for loop with an example.
(3) Explain types of Literals available in Python.
(4) Explain if else conditional statement with an example.
Oue-1(C) Attempt following. (Attempt any one) (05)
(1) Explain data types available in Python.
(2) Explain types of operators supported by Python.
Que-2(A) Attempt following questions. (03)
(1) Obj = [10,20,30,40,50] then Obj is a object of _________ type in Python.
(2) In dictionary, key and value separated using ________ sign.
(3) Obj = 1,2,3,4,5 then Obj is a object of _________ type in Python.
Que-2(B) Attempt following. (Attempt any two) (06)
(1) Explain open( ) function with all file opening modes.
(2) Explain read( ) and readline( ) method of file object.
(3) What is slicing? Explain tuple slicing with an example.
(4) Explain write( ) and writelines( ) method of file object.
Que-2(C) Attempt following. (Attempt any one) (05)
(1) Write a short note on Python dictionary
(2) Explain Python List collection in detail.
Que-3(A) Attempt following questions. (03)
(1) A Class is a blueprint for the Object. (True / False)
(2) _________ parameter must pass in every member function in class.
(3) The ____________ method is a known as a destructor method in Python.
Que-3(B) Attempt following. (Attempt any two) (06)
(1) What is class? How to define class in python? Explain with an example.
(2) What is Constructor? Explain constructor with an example.
(3) What is Destructor? Explain destructor with an example.
(4) Explain linear search with an example.
Que-3(C) Attempt following. (Attempt any one) (05)
(1) What is an exception? Explain exception handling in Python.
(2) What is inheritance? Explain types of inheritance in detail.
Que-4(A) Attempt following questions. (03)
(1) The module _________ provides full support for regular expressions in Python.
(2) JSON stands for __________________________.
(3) ______________ function convert JSON file to Dictionary type in Python.
Page 1 of 2
Que-4(B) Attempt following. (Attempt any two) (06)
(1) Write a Python script which is read data from CSV file.
(2) Explain json_load( ) and json_loads( ) methods in Python.
(3) List out special character class available in regular expression.
(4) Explain reader( ) and writer( ) methods of CSV in Python.
Que-4(C) Attempt following. (Attempt any one) (05)
(1) What is JSON? Explain JSONEncoder and JSONDecoder class.
(2) Explain Regular Expression functions in detail.
Que-5(A) Attempt following questions. (03)
(1) ______ object support cursor( ) method to create cursor object in Python.
(2) The ___ method will return the first row of the result set available in cursor object.
(3) When we run any query then we use _______ method of cursor object.
Que-5(B) Attempt following. (Attempt any two) (06)
(1) Explain connect( ) function of mysql.connector Module.
(2) How to create table in database using Python script.
(3) Explain fetchone( ) and fetchall( ) method.
(4) Explain cursor( ) method of connection object.
Que-5(C) Attempt following. (Attempt any one) (05)
(1) How to execute Inner join using Python Script?
(2) Explain execute( ) and executemany( ) method with an example.
***************************

Page 2 of 2

You might also like