0% found this document useful (0 votes)
42 views4 pages

Previous Year Question List - Python BCC402

The document contains a list of possible questions extracted from previous year question papers for the Python BCC402 course, organized by unit and semester. Each unit includes questions covering various topics such as programming cycles, loops, data structures, file handling, and libraries like matplotlib and pandas. The questions aim to assess students' understanding and application of Python programming concepts.
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)
42 views4 pages

Previous Year Question List - Python BCC402

The document contains a list of possible questions extracted from previous year question papers for the Python BCC402 course, organized by unit and semester. Each unit includes questions covering various topics such as programming cycles, loops, data structures, file handling, and libraries like matplotlib and pandas. The questions aim to assess students' understanding and application of Python programming concepts.
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/ 4

UNIT-WISE QUESTION LIST POSSIBLE EXTRACTED

FROM PREVIOUS YEAR QUESTION PAPER


PYTHON BCC402
UNIT 1
Paper 1: 2021-22 Odd Semester
1. Explain the Programming Cycle for Python in detail.
2. What do you mean by Python IDE? Explain in detail.
3. Explain why Python is considered an interpreted language.

Paper 2: 2022-23 Odd Semester


1. Explain the Programming Cycle for Python in detail.

Paper 3: 2023-24 Even Semester


1. Give difference between == and is operator.
2. How we print the character of a given ASCII value in Python?
3. Can you use else with a for loop? If so, when is it executed?
4. Explain the concept of dynamic typing in Python with an example.

UNIT 2
Paper 1: 2021-22 Odd Semester
1. What will be the output of the following Python code?
i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
2. Write a Python program to construct the following pattern using a nested for loop:
*
* *
* * *
* * * *

PYTHON PROGRAMMING BCC402 | EXTRACTED PREVIOUS YEAR 3 QUESTION PAPERS


Paper 2: 2022-23 Odd Semester
1. Explain the following loops with a flow diagram, syntax, and suitable examples:
o For loop
o While loop
2. Explain the continue, break, and pass statements with a suitable example.
3. Develop a program to calculate the reverse of any entered number.

Paper 3: 2023-24 Even Semester


1. Explain for and while loops used in Python with appropriate examples.

UNIT 3
Paper 1: 2021-22 Odd Semester
1. Explain Tuples and Unpacking Sequences in Python Data Structure.
2. Write a Python program to change a given string to a new string where the first and last
characters have been exchanged.
3. Write a Python program to add an item in a tuple.
4. Explain the terms Merge List and Merge Sort in Python Programming.

Paper 2: 2022-23 Odd Semester


1. Illustrate Unpacking Sequences, Mutable Sequences, and List comprehension with examples.
2. Demonstrate five different built-in functions used in strings. Write a program to check whether
a string is a palindrome or not.
3. Explain the list comprehension with any suitable example.
4. Describe the concept of List Slicing with a suitable example.
5. Differentiate between Python Arrays and Lists.
6. Define floor division with an example.
7. Explain the difference between 'append' and 'extend' in Python.
8. What is a dictionary in Python?
9. What is object-oriented programming (OOP) in Python? Give an example.
10. Explain the lambda function. How is it helpful in higher order functions? Explain map()
function with an example.
11. Discuss different types of argument-passing methods in Python. Explain variable-length
arguments with an example.

PYTHON PROGRAMMING BCC402 | EXTRACTED PREVIOUS YEAR 3 QUESTION PAPERS


12. What will be the output of the following code?
list1 = ['M', 'o', 'n', 'k', 'y']
print("@".join(list1))

Paper 3: 2023-24 Even Semester


1. Explain how to define a list in Python. Write a Python program to remove duplicates from a list
and print the resulting list.
2. Explain the concept of functions in Python. Write a function that takes a list of numbers and
returns the sum of all the numbers in the list.
3. Write a program that takes two strings and checks common letters in both the strings.
4. Write a Python Program to find the sum of all items in a dictionary.
5. Explain the concept of a set in Python and its characteristics. How elements are added or
removed in a set?
6. Explain how lambda functions can be used within a list comprehension. Write a Python
program that uses a lambda function within a list comprehension to convert a list of
temperatures in Celsius to Fahrenheit.

UNIT 4
Paper 1: 2021-22 Odd Semester
1. What are File input and output operations in Python Programming?
2. How to create and import a module in Python?

Paper 2: 2022-23 Odd Semester


1. Demonstrate the file handling procedure in detail. Write a Python code to create a file with
‘P.txt’ name and write your name and father’s name in this file and then read this file to print it.

Paper 3: 2023-24 Even Semester


1. Write a Python program to read a file named “ABC.txt” and count the number of lines, words,
and characters in the file.
2. Explain different file opening modes. Also, write a Python program to read a file and capitalize
the first letter of every word in the file.

PYTHON PROGRAMMING BCC402 | EXTRACTED PREVIOUS YEAR 3 QUESTION PAPERS


UNIT 5
Paper 1: 2021-22 Odd Semester
No direct question from Unit V found in this paper.

Paper 2: 2022-23 Odd Semester


No direct question from Unit V found in this paper.

Paper 3: 2023-24 Even Semester


1. Explain the basic usage of matplotlib for plotting graphs. Write a Python program to plot a
simple line graph showing the relationship between:
x = [1, 2, 3, 4, 5]
y = [1, 4, 9, 16, 25]
2. Describe how to generate random numbers using NumPy. Write a Python program to create an
array of 5 random integers between 10 and 50.
3. Explain the concept of DataFrame in pandas. Write a Python program to create a DataFrame
from a dictionary and print it.

PYTHON PROGRAMMING BCC402 | EXTRACTED PREVIOUS YEAR 3 QUESTION PAPERS

You might also like