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

B.C.a. Semester II Introduction to Python

This document is a question bank for the B.C.A. Semester II exam on Introduction to Python Programming. It includes various types of questions such as very short, short, analytical, and creative answers across multiple units covering computer science fundamentals and Python programming concepts. The questions range from definitions and explanations to programming tasks and algorithm design.

Uploaded by

sharmasatvik2006
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 views

B.C.a. Semester II Introduction to Python

This document is a question bank for the B.C.A. Semester II exam on Introduction to Python Programming. It includes various types of questions such as very short, short, analytical, and creative answers across multiple units covering computer science fundamentals and Python programming concepts. The questions range from definitions and explanations to programming tasks and algorithm design.

Uploaded by

sharmasatvik2006
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/ 5

Parishkar College of Global Excellence (Autonomous)

Question Bank for Semester End Exam-May-June 2025


Program: B.C.A. Semester: II
Subject: Computer Science
Paper: Introduction to Python Programming (Minor)

Unit-I
Very short type answer (15-20 Words)
1. Define what a computer algorithm is. 2
2. Define flowchart? 2
3. Define what a pseudo code is. 2
4. Define what a analog computer is. 2
5. Name two input devices and two output devices commonly used in computers.How many types of
primary memory? 2
6. Explain the difference between a byte and a bit in terms of data representation. 2
Short type answer (30-50 Words)
1. What do you mean by functional components of a computer system? 4
2. Describe the role of RAM (Random Access Memory) in a computer system.. 4
3. Write short note on how many types of secondary memory in computer? 4
4. Explain the importance of analyzing a problem before designing a solution algorithm. 4
5. Provide an example of a simple algorithm and represent it using pseudo code. 4
6. Explain the difference between hardware and software in a computer system. 4
Analytical type answer (100-150)
1. Explain ALU (Arithmetic Logic Unit). 8
2. Write the pseudocode to print all multiples of 5 between 10 and 25 (including both 10 and 25). 8
3. Write an algorithm to find the greatest among two different numbers entered by the user. 8
4. Explain memory chart in a computer. 8
5. What is system software? What are its components? 8
6. What is the difference between super computer and mainframe computer? 8
7. What are the characteristics of a personal computer (PC)?
Creative type answer (600 Words)
1. Describe an algorithm for the following? 12
a. Prime number or not
b. Odd even
2. Write the algorithm, pseudocode and draw the flowchart for the following: 12
a) To find the sum of square root of any three numbers.
b) To find the sum of first 100 integers.
e) To find the factorial of number n.
g) To find the sum of digits of a number.
Unit-II
Very short type answer (15-20 Words)
7. List the standard data type in python? 2
8. What is recursion in python? 2
9. What is a variable? 2
10. What is membership operator? 2
11. What is python break statement? 2
12. What is python continue statement? 2
Short type answer (30-50 Words)
7. What is indentation explain with example? 4
8. How to comment with multiple lines in python. 4
9. How can you print without a newline in Python? 4
10. Explain input() method in python? 4
11. What are the rules for writing an identifier? 4
12. What are logical operators and Bitwise operators? 4
Analytical type answer (100-150 Words)
8. Explain while loop with syntax and example in used python. 8
9. What are built-in type does python provides? 8
10. What is Python If Statement? 8
11. How can you use for loop to repeat the same statement over and again? 8
12. Give an example of Python type() 8
13. Write a Python program that takes two numbers as input and outputs their sum. 8
14. How to perform a user input in Python? Explain with example. 8
Creative type answer (600 Words)
3. Write a program to check whether character is an alphabet or not, using conditional operator. 12
4. Write the following python programs: 12
a) Test whether a given year is leap year or not
b) to find the sum of n natural numbers
c) Exchange the value of two
d) To find factorial of a given number

Page 2 of 5
Unit – III
Very Short Answer Type Questions (15-20 Words)
13. What is string in python? 2
14. What is traversing a string in python? 2
15. What is the effect of multiplying a string by 3? 2
16. Capitalize the first character of a string 2
17. Reverse the string “hello world” 2
18. What operators does python support ?
Short Answer Type Questions (30-50 Words)
13. Python Program Maximum frequency character in string. 4
14. How can you convert a number to a string? 4
15. How would you check if each word in a string begins with a capital letter? 4
16. Count the total number of characters in a string 4
17. Uppercase or lowercase an entire string 4
18. Check if a string begins with or ends with a specific character? 4
Analytical Answer Type Questions (150-200 Words)
15. Write a Python program that takes a string as input and outputs its length. 8
16. Explain above string slicing with example. 8
17. Python Program Maximum frequency character in string. 8
18. Write a Python program that takes a string as input and outputs the string in reverse order. 8
19. What is len function and explain how it is used on strings with an example. 8
20. Traversing a string using for loop, with example? 8
21. Traversing a string using while loop, with example? 8
Creative Answer Type Questions (600 Words)
5. Write the following python programs: 12
a. Python program to print even length words in a string
b. Reverse words in a given String in Python
6. Write the following python programs: 12
a. Python program to swap two elements in a list
b. Python program to print even numbers in a list
c. Python program to print positive numbers in a list

Page 3 of 5
Unit – IV
Very Short Answer Type Questions (15-20 Words)
19. What are tuples in python? 2
20. What are list in python? 2
21. What are dictionary in python? 2
22. What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )? 2
23. What is the output of print tuple + tinytuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 ) and
tinytuple = (123, 'john')? 2
24. What are the methods that are used in Python Tuple? 2
Short Answer Type Questions (30-50 Words)
19. What is the difference between dictionary & tuple? 4
20. Give example of dictionary items() method 4
21. Write a few methods that are used in Python Lists. 4
22. What is indexing and negative indexing in Tuple? 4
23. Explain what is dictionary and how it is created in Python? 4
24. What is meant by key-value pairs in a dictionary? 4
Analytical Answer Type Questions (150-200 Words)
22. Write a Python program that takes a list of numbers as input and outputs their sum. 8
23. How to create dictionary in python with example? 8
24. How can you copy the entire dictionary to a new dictionary? 8
25. How can you count duplicate elements in a given list? 8
26. Explain what is range() function and how it is used in lists? 8
27. How lists are updated in Python? 8
28. What are the advantages of Tuple over List? 8
Creative Answer Type Questions (600 Words)
7. Write the following python programs: 12
a. Python program merging two Dictionaries
b. Python program ways to remove a key from dictionary
8. Write the following python programs: 12
a. Create a list of tuples from given list having number and its cube in each tuple
b. Python program to Find the size of a Tuple

Page 4 of 5
Unit – V
Very Short Answer Type Questions (15-20 Words)
25. Explain how to delete a file in python? 2
26. What are the main features of OOPs? 2
27. What is a class? 2
28. What is an object? 2
29. What is a copy constructor? 2
30. Names two types of data files available in python. 2
Short Answer Type Questions (30-50 Words)
25. What is encapsulation? 4
26. What is Polymorphism? 4
27. What is meant by Inheritance? 4
28. What is Abstraction? 4
29. Define a superclass? 4
30. Explain file modes in python? 4
Analytical Answer Type Questions (150-200 Words)
29. Write a statement in python to open a file named “data.txt” stored in folder “content” in D drive.
8
30. Explain reading and writing files in python? 8
31. Write a function in Python to count and display the total number of words in a text file. 8
32. Write a function in python to read the content from a text file "poem.txt" line by line and display
the same on screen. 8
33. Write a function in Python to count uppercase character in a text file. 8
34. Write a function in Python to rename in a text file 8
35. Explain how to creating, opening, deleting a file in python? 8
Creative Answer Type Questions (600 Words)
9. Explain Inheritance with an example. 12
10. Full explain following program file in python: 12
A Creating file
B Opening file
C Closing file
D Renaming file
E Accessing file
F Deleting file

Page 5 of 5

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