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

Python Programming Lab Exam Tasks

The document outlines the internal examination lab assignments for II B.Tech I Semester students at NS Raju Institute of Engineering & Technology, focusing on Python programming. It includes various programming tasks such as finding the largest number, swapping numbers, demonstrating operators, and working with strings and dictionaries. The exam duration is set for 180 minutes and covers multiple topics relevant to Python programming.
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)
4 views1 page

Python Programming Lab Exam Tasks

The document outlines the internal examination lab assignments for II B.Tech I Semester students at NS Raju Institute of Engineering & Technology, focusing on Python programming. It includes various programming tasks such as finding the largest number, swapping numbers, demonstrating operators, and working with strings and dictionaries. The exam duration is set for 180 minutes and covers multiple topics relevant to Python programming.
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

NS RAJU INSTITUTE OF ENGINEERING & TECHNOLOGY::VISAKHAPATNAM

(Approved by AICTE, New Delhi, Affiliated to JNTUGV)


Dakamarri, Visakhapatnam – 531 162
II [Link] I Semester (R23) – Lab Internal Examinations for Descriptive
Python Programming Lab
Date: BRANCHES: CSE, CSM, ECE & MECH Duration: 180 min.

1. a) Write a program to find the largest element among three Numbers.


b) Write a program to swap two numbers without using a temporary variable.

2. Demonstrate the following Operators in Python with suitable examples.


i) Arithmetic Operators ii) Relational Operators

3. Demonstrate the following Operators in Python with suitable examples.


i) Assignment Operators ii) Logical Operators iii) Bit wise Operators

4. a) Write a Program to display all prime numbers within an interval


b) Write a program to add and multiply complex numbers

5. a) Write a program to print multiplication table of a given number.

6. Write a program to find the length of the string without using any library functions.

7. Write a program to define a function with multiple return values.

8. Write a program to define a function using default arguments.

9. Write a program to find the length of the string without using any library functions.

10. Write a program to check if the substring is present in a given string or not.

11. Write a program to perform any 3 built-in functions by taking any list.

12. b) Write a program to create tuples (name, age, address, college) for at least two members
and concatenate the tuples and print the concatenated tuples.
a) Write a program to count the number of vowels in a string (No control flow allowed).

13. a) Write a program to check if a given key exists in a dictionary or not.


b) Write a program to add a new key-value pair to an existing dictionary.

14. Python program to print each line of a file in reverse order.

15. a) Python Program to demonstrate NumPy arrays creation using array () function.
b) Python program to demonstrate use of ndim, shape, size, dtype.

Internal Examiner HOD

You might also like