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

Python Programming Question Bank

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)
22 views1 page

Python Programming Question Bank

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

M S ENGINEERING COLLEGE, BENGALURU

(Affiliated to Visvesvaraya Technological University, Belagavi & Approved by AICTE, New Delhi)
(Accredited by NAAC, UGC 2(f) Status and An ISO 9001-2015 Certified Institution)
Navarathna Agrahara, Sadahalli post, Off International Airport Road (NH7), Bengaluru-562110
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

Date: 09/11/2024
Question bank

Semester: I Introduction to Python Programming BPLCK105B

Module 1

1. Explain print (), input () and len () built-in functions with example.
2. Illustrate and explain the control statements, if, else, elif, for, and while in python using proper
syntax.
3. Discuss the python function with parameters and return statement using suitable example.
4. How to handle exception in python with example.
5. Show the operations of Local and Global scope with variables for each.
6. List and explain the use of comparison operator in python. Write the step by step execution of
the following expression in python.
3 / 2 * 4 + 3 + (10 / 4) ** 3 – 2
7. Explain the string concatenation and string replication operator with an example.
8. 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.
9. Develop a program to generate Fibonacci sequence of Length (N). Read N from the console.
10. Write a Python program to check whether the number is even or odd.

You might also like