0% found this document useful (0 votes)
77 views4 pages

Pythonprogramming Module1 Question Bank 1BPLC105B

The document is a question bank for a Python programming course, covering various topics such as role precedence, flow control statements, functions, debugging, and data types. It includes a series of questions and programming tasks designed to assess students' understanding of Python concepts and their ability to implement solutions. Each question is categorized by course outcomes, cognitive levels, and marks allocation.

Uploaded by

noobkolof
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)
77 views4 pages

Pythonprogramming Module1 Question Bank 1BPLC105B

The document is a question bank for a Python programming course, covering various topics such as role precedence, flow control statements, functions, debugging, and data types. It includes a series of questions and programming tasks designed to assess students' understanding of Python concepts and their ability to implement solutions. Each question is categorized by course outcomes, cognitive levels, and marks allocation.

Uploaded by

noobkolof
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
You are on page 1/ 4

PYTHPN PROGRAMMING 1BPLC105B QUESTION BANK

MODULE-1

Q. No. Questions COs CL Marks


1 What is the need for role precedence? Illustrate rules CO1 L2 6M
precedence in Python with Example. (Jan/Feb 2023)

2 Write a program to generate Fibonacci sequence of CO1 L2 8M


length(N).Read N from console(Jan/Feb 2023)

3 Explain the salient features of Python Programming Language. CO1 L1 6M


(July / August 2022)

4 List and Explain the syntax of all Flow Control Statements with an CO1 L2 8M
example. (July / August 2022)
With the flow chart, explain the flow control statements while, for
and elif. Write a python program to check whether the given
number is positive or negative or zero. (July / August 2021) CO1 L2 10M
Explain elif, for, while break and continue statements in python with
examples for each. (Jan / Feb 2021)
5 Write a python program to calculate the area of circle, rectangle and CO1 L2 6M
triangle. Print the results. (Jan/Feb 2023) (July / August 2022)

6 What is a Function? How to define a function in Python? Explain CO1 L2 7M


with suitable example. (July / August 2022)
What are functions? Define python function with parameter and
return statement. Write a python function to generate the factorial
of a number.(Jan/Feb 2023) (July / August 2021)
7 What is program? What are the basic instructions that are present CO1 L2 5M
in a program?

8 What is debugging? Explain syntax, runtime, semantic errors and CO1 L2 6M


experimental debugging?

Page 1 of 4
9 Write a Python program to calculate the area of rectangle and CO1 L2 6M
triangle and print the results.
(Jan / February 2023)
10 Explain with example code snippets, different syntax of range() CO1 L2 6M
function in Python.
(Feb / March 2022)
11 Explain String Concatenation and Replication operator with an CO1 L2 5M
example.
(July / August 2021)
12 Illustrate the use of break and continue with an example. CO1 L2 5M
(July / August 2021)
13 Explain value and datatypes in Python with suitable examples. CO1 L2 6M
14 CO1 L2 4M
Explain different ways to quote strings in python?
15 What is user defined function? Write a function to check if a given CO1 L2 7M
number is a prime or not.
(Feb / March 2022)
What are user defined function? How can we pass parameters in
user defined functions? Explain with suitable example.
(Model QP)

16 Demonstrate with an example print(), input() and string Replication. CO1 L2 6M


(Jan / Feb 2021)

17 Write a python program to check whether a given number is even CO1 L2 4M


or odd.
(Jan / Feb 2021)
18 What is variable in python? Explain the different rules for naming CO1 L2 3M
the variable?

Page 2 of 4
19 Explain the math operators in python from highest to lowest CO1 L2 6M
precedence with an example for each. Write the steps how python
is evaluating the expression (5-1) * ((7+1)/(3-1)) and reduces it to
a single value
(Model QP)
20 Define a python function with suitable parameters to generate CO1 L2 8M
prime numbers between two integer values. Write a python
program which accepts two integer values m and n (note M.0 and
n>0) as inputs and pass the values to the function. Suitable error
messages should be displayed if the conditions for input values are
not
followed. (Model QP)
21 Explain the following with examples: CO1 L2 10M
i. Keywords
ii. Statements
iii. Expression
iv. Operator and operands
v. Modulus operator
22 Define a python function with suitable parameters to generate first CO1 L2 8M
N Fibonacci numbers. The first two Fibonacci numbers are 0 and 1
and the Fibonacci sequence is defined as a function F as
𝐹𝑛 = 𝐹𝑛−1 + 𝐹𝑛−2.
Write a python program which accepts a value for N (where N >0)
as input and pass this value to the function. Display suitable error
message if the condition for input value is not followed.
(Model QP)

Page 3 of 4
23 Explain type converter functions in python? CO1 L2 6M

24 Write a function that computes and returns addition, subtraction, CO1 L2 6M


multiplication and division of two integers. Take input from user.
(Model QP)
25 Give the outputs of the following expressions. CO 1 L2 4M
a) 55//15
b) -17//10
c) -16%5
d) 17%-10
e) 5*1**3
f) (200-70)*10/5
26 Explain for loop and while loop in python? or CO 1 L2 10M
Explain iterative statements in python?
27 Write a single user defined function named ‘Solve’ that returns the CO 1 L2 6M
Remainder and Quotient on division of two numbers accepted
from the user. Print the Remainder and Quotient separately on the
console.
28 Write a python program to accept a word from the user and CO 1 L2 6M
display the length of that word.
29 Write a python program to check whether the given year is leap or CO 1 L2 4M
not with functions.
30. Explain the Collatz 3n+1 sequence with code snippet. CO1 L2 5M

31 Write a python program to count the number of decimal digits in a CO1 L2 5M


positive number.
32 Explain tables and two-dimensional tables in python with suitable CO1 L2 6M
examples.
33 Explain paired data and nested loops for nested data with examples. CO1 L2 5M

Faculty

Page 4 of 4

You might also like