0% found this document useful (0 votes)
2 views1 page

Module 1 Question Bank

This document is a question bank for the Introduction to Python Programming course at Sai Vidya Institute of Technology for the academic year 2024-25. It includes various topics such as expressions, identifiers, conditional statements, loops, operators, modules, variable scope, functions, and program development tasks. Each question requires explanations, examples, or Python programs related to the respective topics.

Uploaded by

divyamani.mk
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Module 1 Question Bank

This document is a question bank for the Introduction to Python Programming course at Sai Vidya Institute of Technology for the academic year 2024-25. It includes various topics such as expressions, identifiers, conditional statements, loops, operators, modules, variable scope, functions, and program development tasks. Each question requires explanations, examples, or Python programs related to the respective topics.

Uploaded by

divyamani.mk
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Sri Sai Vidya Vikas Shikshana Samithi ®

SAI VIDYA INSTITUTE OF TECHNOLOGY


Accredited by NBA, New Delhi (CSE, ECE, ISE) NAAC – “A” Grade
Department of Computer Science & Engineering
RAJANUKUNTE, BENGALURU – 560 064, KARNATAKA

Module -1 Question Bank

Sub Title/Sub Code: Introduction to Python Programming BPLCK105B Academic Year: 2024-25

1. What are Expressions? Explain the math operators in Python from highest to lowest
Precedence with an example for each. Write the steps how Python is evaluating the expression
and reduces it to a single value

Expression: (6 - 2) * ((8 - 4) / (2 ** 1))

2. What are identifiers? Describe the rules of identifiers and List out 4 valid and invalid
identifiers
3. What are conditional statements? Explain if, if – else, elif, nested if statements with syntax,
flow chart and an example for each.
4. Write a python program to find largest of three numbers using else-if statements.
5. What are loop statements? Explain for, while loop with syntax, flow chart and an example for
each.
6. Write a python program to find a factorial of a number using while loop.
7. What are Comparison and Boolean operators? List all the Comparison and Boolean operators
in Python and explain the use of these operators with suitable examples.
8. Illustrate with an example python program string concatenation and string
replication
9. Illustrate the usage of break, continue and pass statements in python
10. What are modules. How to import modules in Python. Explain the same with suitable
examples.
11. What is local and global scope of variable in python. Explain the same with suitable examples.
12. Write a python program to find area of rectangle and area of circle. Print the results.
Take input from user.
13. What is a function. Write any 4 benefits of using functions. Write a function named DivExp
which takes TWO parameters a, b and returns a value c (c = a / b).
14. Write a program using function to find out the given string is palindrome or not.
15. Develop a program to read the student details like Name, USN, and Marks in three subjects.
Display the student details, total marks and percentage with suitable messages.
16. Develop a program to read the name and year of birth of a person. Display whether the person
is a senior citizen or not.
17. Write the output of following python statements a. int(3.15) b. len(‘college’)
c. range(7) d. ‘hello’ * 3 e. ‘25’+’25’ f. [Link]( 9 )

You might also like