0% found this document useful (0 votes)
20 views2 pages

2nd Semester Introduction to Python Programming(BPLCK205B)- 1st IA QB

The document is a question bank for the 1st Internal Assessment Test of the Introduction to Python Programming course at AMC Engineering College. It covers various topics including flow control statements, functions, data structures, string handling methods, and exception handling in Python. The questions are designed to assess students' understanding of Python basics, programming concepts, and practical coding skills.
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)
20 views2 pages

2nd Semester Introduction to Python Programming(BPLCK205B)- 1st IA QB

The document is a question bank for the 1st Internal Assessment Test of the Introduction to Python Programming course at AMC Engineering College. It covers various topics including flow control statements, functions, data structures, string handling methods, and exception handling in Python. The questions are designed to assess students' understanding of Python basics, programming concepts, and practical coding skills.
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/ 2

AMC ENGINEERING COLLEGE, BENGALURU – 560083

Department of Computer Science and Engineering


2nd Semester “A, B, C, D & E” Section
Introduction to Python Programming (BPLCK205B)-(2024-25)
1st Internal Assessment Test Question Bank
Module 1, Module 2 & 1st Half of Module 3
(Python Basics, Flow control & Functions, Lists & Dictionaries and
Structuring Data Manipulating Strings)

1. Describe the following flow control statements in python programming:


(i). If
(ii). Else
(iii). While
2. Write a function to calculate factorial of a number.
3. Explain def statements with parameters.
4. Explain Local and Global Scope in Python programs. What are local and global
variables? How can you force a variable in a function to refer to the global variable?
5. List the salient features of Python Programming Language.
6. What is the need for role of precedence? Illustrate the rules of precedence in python
with example.
7. Compare and contrast dictionaries Vs Lists.
8. Explain the slots of tic-tac-toe board with its corresponding keys using data
structures in python programming.
9. Describe the Python string handling methods with examples:
10. Write a note on List concatenation and List replication.
11. Explain List data type. Explain with example
a) Index
b) Negative index
c) Slice
d) len()
e) Delete statement
12. Write a note on escape characters with respect to strings.
13. Discuss the need, features and applications of Python Programming.
14. List and explain the different operators used in python with suitable example.
15. Explain the data types and keywords used in Python.
16. What is control statement? Discuss if, else and elif statement with proper syntax
flow chart.
17. With an example explain the following built-in functions
a. print ()
b. input ()
c. len ()
18. Write a program to check whether the number is odd or even.
19. Discuss the local and global declaration in Python with example.
20. How to handle exceptions in Python explain with an example.
21. Write a program to generate Fibonacci sequence of length (N) by reading from the
console.
22. How you can prevent Python Programming from crashing? Discuss different
methods to avoid crashing.
23. List out and explain all the string methods used in Python with example.
24.Write a program to count the frequency of characters using module PPrint (Pretty
Printing)

You might also like