Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

Python Lab Internal QP

The document outlines the internal laboratory examination for the Python Programming course at Swarnandhra College of Engineering & Technology, scheduled for November 13, 2024. It includes a list of programming tasks for students to complete, covering various Python concepts such as operators, functions, strings, lists, dictionaries, and file handling. The evaluation scheme details the distribution of marks across script quality, execution, and viva voice.

Uploaded by

chiranjeevi.pt
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Python Lab Internal QP

The document outlines the internal laboratory examination for the Python Programming course at Swarnandhra College of Engineering & Technology, scheduled for November 13, 2024. It includes a list of programming tasks for students to complete, covering various Python concepts such as operators, functions, strings, lists, dictionaries, and file handling. The evaluation scheme details the distribution of marks across script quality, execution, and viva voice.

Uploaded by

chiranjeevi.pt
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

SWARNANDHRA COLLEGE OF ENGINEERING & TECHNOLOGY

(AUTONOMOUS)
Department of AIML
II B. Tech III Semester Internal Laboratory Examinations Nov-24
Subject: Python Programming (23AM3S01) Date 13-11-2024
TIME: 3 Hours Branch: CSE-DS Section: A Max. Marks: 15
Answer any one of the following Programs
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 iii) Assignment Operators iv) Logical Operators v) Bit wise
Operators vi) Ternary Operator vii) Membership Operators
viii) Identity Operators
3. a)Write a program to define a function with multiple return values.
b) Write a program to print multiplication table of a given number.
4. a)Write a program to find the length of the string without using any library functions.
b)Write a program to check if the substring is present in a given string or not.
5. Write a program to perform the given operations on a list:
i. Addition ii. Insertion iii. Slicing

6. Write a program to perform any 5 built-in functions by taking any list.


7. Write a program to create tuples (name, age, address, college) for at least two members and concatenate
the tuples and print the concatenated tuples.
8. a) Write a program to count the number of vowels in a string (No control flow allowed).
b) Write a program to check if a given key exists in a dictionary or not.
9. a) Write a program to add a new key-value pair to an existing dictionary.
b) Write a program to sum all the items in a given dictionary.

10. a) Python program to check whether a JSON string contains complex object or not.

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

11. a)Python Program to demonstrate NumPy arrays creation using array () function.
b) Python program to demonstrate use of ndim, shape, size, dtype.
12 . a) Write a program to sort words in a file and put them in another file. The output file should have only
lower-case words, so any upper-case words from source must be lowered.
b) Python program to print each line of a file in reverse order.

SCHEME OF EVALUATION

S. No. Description Marks


1 Script 6
2 Execution and Output 6
3 Viva voice 3
Total Marks 15 Internal
Examiner
External Examiner

You might also like