Previous Year Questions

PGDCA Previous Year Questions (Python)

Read the important current affairs of 15 July 2026 for SSC, Banking, UPSC, Railway and all competitive exams.

13 Nov 2024 5 Min Read Quizer Team 350 Views

13

November 2024

PGDCA Previous Year Questions (Python)

1. Compare Break and Continue statement, illustrate the use of both statements through a suitable code in python.

2. How do Mutable data types differ from Immutable data types ? Briefly discuss the syntax and utility of the following data types in python :

(i) Lists

(ii) Tuples

(iii) Dictionaries

3. What are Co-routines ? Explain, how the co-routines support multitasking in Python.

4. Discuss the following terms in context of python. (Give example for each) : 

(i) Framework

(ii) Library

(iii) Package

(iv) Module

Also, give relation between them.

5. Discuss the function of connect( ) method of MySQL. Connection interface in Python. List the arguments involved in the connect( ) method. Write a python code to create database Employee_DB and prepare connection to suitable Employee_DB. (Make assumptions necessary). whereever 

6. What are Generators in Python ? Compare Generators and Lists. Also, discuss the utility of Generators in Python.

7. What is Jython ? How does Jython work ? Compare module and package in context of Python.

8. What are generators in Python ? Compare generators and lists. Also discuss utility of generators in Python.

9. What are iterators in Python ? How do iterators differ from iterables ? Give example of each. 

10.  What are co-routines ? How do co-routines support cooperative multitasking Python ?

11. What are Pandas ? Write steps to import, read and print a CSV file using Pandas. Also, transform your steps in to suitable code in Python.

12. What are lists ? How do lists differ from arrays ? What do you understand by the term “Lists are mutable but tuples are immutable” ? Write syntax for creation of list and accessing the last element of the list.

13. Write Python code to perform the following : (i) Copy a file first.txt to second.txt (ii) Reading a file (iii) Writing to a file (iv) Appending content to a file

14. What are tuples in Python ? What do you understand by the term ‘‘tuples are immutable’’ ? Write Python syntax for creation, printing and accessing specific element of the tuple.

15. What does map( ) function do ? Write a program in Python to print the cube of the numbers present in the list, by using map( ) function.

16. Write Python codes to perform the following :

(i) Reading data from a file.

(ii) Creating a file and adding contents to it.

Why Quizer.in is Important?

Quizer.in is your complete one-stop platform for daily current affairs, interactive quizzes, and exam-focused study material. Whether you are preparing for SSC, Banking, Railway, UPSC, State PSC or Teaching exams, regular practice on Quizer.in helps you:

  • Stay updated with the latest current affairs
  • Improve accuracy and speed through daily quizzes
  • Strengthen your General Awareness section
  • Build consistency and stay ahead of the competition
Quizer Team
About the Author

Quizer Team

Passionate about current affairs, competitive exams, and helping aspirants succeed.

📢 Join Our WhatsApp Channel

Get Daily GK, Current Affairs, Amazing Facts & Quiz Updates.

🚀 Join Now

Related Articles

View All
Previous Year Questions
18 Aug 2026 196
Read More
Previous Year Questions
13 Nov 2024 961
Read More
Previous Year Questions
13 Nov 2024 350
Read More