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

INTERNAL2 PYTHON Key

KEY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

INTERNAL2 PYTHON Key

KEY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

SRI RAAJA RAAJAN COLLEGE OF ENGINEERING & TECHNOLOGY

Amaravathiputhur Post, Karaikudi Tk


Accredited by NAAC with B+ Grade
INTERNAL EXAM II – November 2024

Date :
Reg.
o: Yr/Sem/SECTION: I/I/E 13.11.24
Session : AN

GE3151 PROBLEM SOLVING AND PYTHON PROGRAMMING 50 Marks

ANSWER ALL QUESTIONS


PART A (7*2 = 14 MARKS)
1. Identify the operand and operator in the following expression. (AU.,JAN2022) C105.1 BTL1
2. Are comments executable statements in a python program? How (AU.,JAN2022) C105.1 BTL1
comments are included in a python program.
3. Comment with an example on the use of local and global variable (AU.,JAN2022) C105.1 BTL1
with the same identifier.
4. What are the rules for writing an identifier? (AU.,A/M2023) C105.2 BTL1

5. What is an indentation in python? Give an example. (AU.,N/D2023) C105.2 BTL1

6. How to assign a value to a tuple in python? (AU.,A/M2022) C105.2 BTL1

7. Write a snippet to display “Hello World” in python interpreter. (AU.,JAN2022) C105.2 BTL1

8. What is the difference between list and tuple?. (AU,A/M2022) C105.2 BTL1

9. What is tokens? (AU,A/M2022) C105.2 BTL1

10. Define Debugging. (AU,N/D2014) C105.2 BTL1

PART B – (5*16 = 80 Marks) (Any FIVE)

11. Outline the data types supported by python with an example (16) (AU,JAN2022) C105.2 BTL2

12. Name the types of operators supported by python and Explain all the (AU,JAN2022) C105.3 BTL2
operators with suitable example (16)

13. i)Explain the detailed note on interpreter and interactive mode. (AU,A/M2024) C105.2 BTL3
Explain how python works in interactive mode and script mode with
examples.(8)
ii)Write and explain the python program to swap two numbers with
and without temporary variable.(8)
14. i)What is Precedence? List out the order of precedence and (AU,N/D2023) C105.2 BTL4
demonstrate in detail with example (8)
ii)Write a python program to check whether a given year is a leap year
or not.(8)
15. i)Write a python program to calculate the distance between two points.(8)
(AU,N/D2023) C105.2 BTL3
ii) Write a python program to circulate the value of N variables.(8)
16. Outline the conditional branching statements in python with example.(16) (AU,JAN2022) C105.3
BTL4

Prepared by: Mrs.D.Sujatha, HOD/AI&DS Approved by:

You might also like