0% found this document useful (0 votes)
6 views6 pages

PSPP Key Paper U - 2 Set - B

Uploaded by

afsira15
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)
6 views6 pages

PSPP Key Paper U - 2 Set - B

Uploaded by

afsira15
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/ 6

ST.

JOSEPH’S COLLEGE OF ENGINEERING AND TECHNOLOGY


A.S.Nagar,Elupatti-Thanjavur.
(Approved by AICTE-New Delhi,Affilated to Anna University,Chennai

DEPARTMENT OF INFORMATION TECHNOLOGY


IGNMENT-I
UNIT TEST – II , OCT - 2024

Reg.No 8 2 1 9
Regulation R 2021
Course Code-Name GE3151 – Problem Solving And Python Programming SET – B
Year / Semester I/I Total Marks : 50
Date – Time 25.10.2024 & 02.55 pm to 04.20 pm
Course Instructor Ms .A.CHARMILA, AP/cse
C106.2 : To develop and execute python programs .
R – Remembering U – Understanding Ap – Applying Az – Analyzing E – Evaluating C - Creating

Answer All Questions


Part – A (5*2=10 Marks)
Q.NO QUESTION Marks CO LEVEL
1. Give the reserved words in python. 2 C106. 2 U
Reserved words (keywords) in python are predefined
and cannot be used as identifiers.
2. Demonstrate how a function calls another function 2 C106. 2 U
justify your answer.
Program : 1
Explanation : 1
3. List the syntax for function call with and without 2 C106. 2 R
arguments.
Without Arguments Program : 1
With Arguments Program : 1
4. Point out the rules to be followed for naming any 2 C106. 2 R
identifier.
*Identifiers must start with a letter.
*Identifiers are case – sensitive.
(Any 2 related points)
5. Discover the difference between logical and bitwise 2 C106. 2 U
operator.
Logical operators :
*Operate on boolean values.
*Used in logicalmexpressions.
Bitwise operators :
*Operates on individual bits of integers.
*Used in binaary bitwise operations.
Part – B(2*13 = 26 Marks)
6. a) I) Illustrate a program to display different data types 13 C106. 2 Ap
using variables and literal constants.
Program : 4
Explanation : 3
ii) show how an input and output function is
performed in python with an example.
Explanation : 4
Example : 2
(or)
b) i) Analyze the difference between local and global 13 C106. 2 Az
variables .
Comparision : 4
Example : 3
ii) Formulate the difference between type casting and
type correction with suitable example.
Difference : 4
Example : 2
7. a) i) What are membership and identity operators. 13 C106. 2 R
Explanation : 6
ii) How the area of circle is calculated explain with an
example.
Explanation : 4
Example : 3
(or)
b) i) Write a program to print the digit at one’s place and 13 C106. 2 C
hundred’s place of a number.
Program : 5
output : 2
b) Write a program to convert degree Fahrenheit to
Celsius.
Program : 4
Output : 2
Part – C (1*14=14 Marks)
8. a) i)Discuss the difference between tuples and list. 14 C106. 2 U
Any five difference related to the topic :
ii) Discuss the various operations that can be
performed on a tuple and lists (minimum 5) with an
example program.
Program : 7
Example : 2
(or)
b) Briefly discuss in detail about function prototyping in 14 C106. 2 U
python with suitable example program.
Explanation : 4
Program : 7
Example : 3

Course Instructor HoD

You might also like