0% found this document useful (0 votes)
11 views6 pages

120C11 - Python Programming - Semester 1

This document is a question bank for practical examinations in Python programming for B.C.A. students admitted from 2023-2024. It includes a variety of programming tasks covering topics such as arithmetic operations, data structures, file handling, and graphics using Turtle, with a total of 30 questions. Each question consists of two parts, focusing on different aspects of Python programming.

Uploaded by

pookiepiffle
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)
11 views6 pages

120C11 - Python Programming - Semester 1

This document is a question bank for practical examinations in Python programming for B.C.A. students admitted from 2023-2024. It includes a variety of programming tasks covering topics such as arithmetic operations, data structures, file handling, and graphics using Turtle, with a total of 30 questions. Each question consists of two parts, focusing on different aspects of Python programming.

Uploaded by

pookiepiffle
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

NOVEMBER 2023 52501 (P)/120C11

Question Bank — Practical Examinations

B.C.A.

(For Candidates admitted from 2023-2024)

Choice Based credit system

PYTHON PROGRAMMING – PRACTICAL

First Semester

(Common paper to [Link]., CS, CS with AI, CS with DS, Software Appls)

Time : Three hours Maximum : 60 marks

1. (a) Write a Python program to generate


1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
(b) Write a python script that prints prime numbers less than
20.
2. (a) Program to convert the given temperature from Fahrenheit
to Celsius and vice versa depending upon users choice.
(b) Program, to find the area of rectangle, square, circle and
triangle by accepting suitable input parameters from user.
3. (a) Program to calculate total marks, percentage and grade of
a student. Marks obtained in each of the five subjects are
to be input by user. Assign grades according to the
following criteria:
Grade A: Percentage > = 80 Grade B: Percentage > = 70
and < 80
Grade C: Percentage >=60 Grade D: Percentage >=40
and <70 and <60
Grade E: Percentage <40
(b) Write a python program that create Turtle graphics
window with specific size.
4. (a) Write a Python program to find sum of all items in a
dictionary.

(b) Write a Python program to implement Arithmetic


Operators.

5. (a) Write a program to print the reverse order of the string


“MALAYALAM”.

(b) Write a Python program to find largest of three numbers.

6. (a) Use for Iterative statements in Python program and find


the factorial of a number.

(b) Write a Python program to find sum of first 5 numbers.

7. (a) Write a program to find sum of all items in a dictionary.

(b) Use if conditional statement in python program and find


the smallest number from 10 given numbers.

8. (a) Write a python program that create Turtle graphics


window with specific size.

(b) Python program to perform read and copy operations on a


file.

9. (a) Write a Python program to implement Arithmetic


Operations.

(b) Write a Python program to implement the Hangman


Game.

10. (a) Write a Python program to demonstrate the Tower of


Hanoi using recursion.

(b) Write a python program that create Turtle graphics


window with specific size.

2 52501 (P)/120C11
11. (a) Write a Python program to find the Fibonacci series up to
10 numbers.

(b) Write a Python program to demonstrate the different ways


of creating dictionary objects.

12. (a) Program to convert the given temperature from Fahrenheit


to Celsius and vice versa depending upon user’s choice.

(b) Program, to find the area of square by accepting suitable


input parameters from user.

13. (a) Write a python program with tuple and list as input to
count the occurrences of all items of the list in the tuple.

(b) Write a Python program to count the number of even and


odd numbers from array of N numbers.

14. (a) Program, to find the area of triangle by accepting suitable


input parameters from user.

(b) Program to find factorial of the given number using


recursive function.

15. (a) Use Inheritance concept and create a Savings Account


class that behaves just like a Bank Account, but also has
an interest rate and a method that increases the balance
by the appropriate amount of interest.

(b) Write a Python program count the occurrence of the


character a’ in the word “MADAM”.

16. (a) Write a Program to demonstrate list in python.

(b) Write a Python program to find the sum of the series of


n = 10.

17. (a) Program, to find the area of rectangle, by accepting


suitable input parameters from user.

(b) Write a python program using a tuple.

3 52501 (P)/120C11
18. (a) Program to calculate total marks, percentage and grade of
a student. Marks obtained in each of the five subjects are
to be input by user. Assign grades according to the
following criteria:

Grade A: Percentage > = 80 Grade B: Percentage > = 70


and <80

Grade C: Percentage > = 60 and <70 Grade D: Percentage


> = 40 and <60

Grade F: Percentage < 40

(b) Use Inheritance concept and create a Savings Account


class that behaves just like a Bank Account, but also has
an interest rate and a method that increases the balance
by the appropriate amount of interest.

19. (a) Program, to find the area of rectangle, circle and triangle
by accepting suitable input parameters from user.

(b) Write a program using a for loop that loops over a


sequence.

20. (a) Write a Python program to reverse a string.

(b) Write a Python program to count the number of even and


odd numbers from array of N numbers.

21. (a) Write a Python program to generate


1
2 3
4 5 6
7 8 9 10
11 12 13 15 16

(b) Write a program to find sum of all items in a dictionary.

22. (a) Write a Python program to count the number of even and
odd numbers from array of N numbers.

(b) Write a Python program to concatenate two strings using


string functions.

4 52501 (P)/120C11
23. (a) Write a program to read a file content and copy only the
contents at odd lines into a file.

(b) Write a python script that prints prime numbers less than
50.

24. (a) Write a Python program to find the smallest and largest
numbers among 23, 45, 67, 89, 100.

(b) Write a Python program to count the number of even and


odd numbers from array of N numbers.

25. (a) Write a program to read a file content and copy only the
contents at odd lines into a new file.

(b) Program to calculate total marks, percentage and grade of


a student. Marks obtained in each of the five subjects are
to be input by user. Assign grades according to the
following criteria:

Grade A: Percentage >=80 Grade B: Percentage >=70


and <80

Grade C: Percentage >=60 Grade D: Percentage


and <70 >=40 and <60

Grade E: Percentage <40

26. (a) Write a python script that prints prime numbers less than
10.

(b) Write a python program using a tuple and list.

27. (a) Write a Python program to implement the Hangman


Game.

(b) Write a Python program to demonstrate the Tower of


Hanoi using recurison.

28. (a) Use Inheritance concept and create a Savings Account


class that behaves just like a Bank Account, but also has
an interest rate and a method that increases the balance
by the appropriate amount of interest.

(b) Program to convert the given temperature from


Fahrertheit to Celsius and vice versa depending upon
user’s choice.

5 52501 (P)/120C11
29. (a) Write a Python program to count the number of even and
odd numbers from array of N numbers.

(b) Use break statement in Python iterative statement.

30. (a) Program to convert the given temperature from Fahrenheit


to Celsius and vice versa depending upon user’s choice.

(b) Write a Python program to find the factorial of 20 using


function.

________________

6 52501 (P)/120C11

You might also like