0% found this document useful (0 votes)
7 views9 pages

Python Lab Question Paper Sets

The document contains a comprehensive list of Python lab internal question paper sets, each consisting of two programming tasks. Topics include file operations, string manipulation, list operations, class creation, and NumPy usage. The sets cover a wide range of Python concepts and functionalities, providing a structured approach to learning and assessment.

Uploaded by

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

Python Lab Question Paper Sets

The document contains a comprehensive list of Python lab internal question paper sets, each consisting of two programming tasks. Topics include file operations, string manipulation, list operations, class creation, and NumPy usage. The sets cover a wide range of Python concepts and functionalities, providing a structured approach to learning and assessment.

Uploaded by

Sowmya Prasad
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Python Lab Internal Question Paper Sets

Set 1
1. Python program to compute the number of characters, words and lines in a file.

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

Set 2
1. Write a program to perform the given operations on a list

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

Set 3
1. Python program to compute the number of characters, words and lines in a file.

2. Python program to demonstrate use of ndim, shape, size, dtype.

Set 4
1. Write a program to find the length of the string without using any library functions

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

Set 5
1. Write a program to find the length of the string without using any library functions

2. Write a python program to create a class that represents a shape. Include methods to
calculate its area and perimeter. Implement subclasses for different shapes like circle,
triangle and square.

Set 6
1. Write a program to define function using default arguments

2. Python program to find min, max, sum, cumulative sum of array

Set 7
1. Write a program to add transpose and multiply two matrices

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

Set 8
1. Write a program to perform the given operations on a list

2. Python program to find min, max, sum, cumulative sum of array


Set 9
1. Write a python program to create, display, append, insert and reverse order of the items
in an array.

2. Write a program to define function using default arguments

Set 10
1. Python Program to demonstrate NumPy arrays creation using array() function

2. Write a python program to create a class that represents a shape. Include methods to
calculate its area and perimeter. Implement subclasses for different shapes like circle,
triangle and square.

Set 11
1. Write a program to perform the given operations on a list

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

Set 12
1. Write a program to display all prime numbers within an interval

2. Write a program to create tuples (name, age, address, college) for at least two members
and concatenate the tuples and print the concatenated tuples

Set 13
1. Write a program to define function using default arguments

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

Set 14
1. Write a program to find the largest element among three numbers

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

Set 15
1. Python program to print each line of a file in reverse order.

2. Write a program to find the largest element among three numbers

Set 16
1. Python program to demonstrate use of ndim, shape, size, dtype.

2. Write a program to count the number of vowels in a string

Set 17
1. Write a program to perform the given operations on a list
2. Write a program to define function with multiple return values

Set 18
1. Write a program to perform the given operations on a list

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

Set 19
1. Python program to demonstrate basic slicing, integer and Boolean indexing

2. Write a program to define function using default arguments

Set 20
1. Write a program to add transpose and multiply two matrices

2. Python program to demonstrate use of ndim, shape, size, dtype.

Set 21
1. Write a program to sum all the items in a given dictionary

2. Write a program to count the number of vowels in a string

Set 22
1. Write a python program to create a class that represents a shape. Include methods to
calculate its area and perimeter. Implement subclasses for different shapes like circle,
triangle and square.

2. Write a program to define function using default arguments

Set 23
1. Write a python program to create, display, append, insert and reverse order of the items
in an array.

2. Write a program to count the number of vowels in a string

Set 24
1. Python program to demonstrate basic slicing, integer and Boolean indexing

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

Set 25
1. Write a program to swap two numbers without using a temporary variable

2. Python program to compute the number of characters, words and lines in a file.

Set 26
1. Write a program to perform the given operations on a list
2. Python program to demonstrate basic slicing, integer and Boolean indexing

Set 27
1. Write a python program to create a class that represents a shape. Include methods to
calculate its area and perimeter. Implement subclasses for different shapes like circle,
triangle and square.

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

Set 28
1. 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.

2. Write a program to find the largest element among three numbers

Set 29
1. Write a program to display all prime numbers within an interval

2. Python program to demonstrate use of ndim, shape, size, dtype.

Set 30
1. Python Program to demonstrate NumPy arrays creation using array() function

2. Write a program to print multiplication table of a given number

Set 31
1. 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.

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

Set 32
1. Python program to demonstrate basic slicing, integer and Boolean indexing

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

Set 33
1. Write a program to sum all the items in a given dictionary

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

Set 34
1. Python Program to demonstrate NumPy arrays creation using array() function

2. Write a program to add transpose and multiply two matrices


Set 35
1. Write a program to check if a given key exists in dictionary or not

2. Write a program to perform the given operations on a list

Set 36
1. Python Program to demonstrate NumPy arrays creation using array() function

2. Write a python program to create, display, append, insert and reverse order of the items
in an array.

Set 37
1. Write a python program to create, display, append, insert and reverse order of the items
in an array.

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

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

2. Write a program to find the largest element among three numbers

Set 39
1. Write a program to perform the given operations on a list

2. Demonstrate the following operators in python with suitable Examples

Set 40
1. Write a python program to create, display, append, insert and reverse order of the items
in an array.

2. Python program to find min, max, sum, cumulative sum of array

Set 41
1. Write a program to find the largest element among three numbers

2. 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.

Set 42
1. Python program to demonstrate basic slicing, integer and Boolean indexing

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


Set 43
1. Write a program to create tuples (name, age, address, college) for at least two members
and concatenate the tuples and print the concatenated tuples

2. Write a program to count the number of vowels in a string

Set 44
1. Write a program to count the number of vowels in a string

2. Write a program to create tuples (name, age, address, college) for at least two members
and concatenate the tuples and print the concatenated tuples

Set 45
1. Write a program to define function using default arguments

2. Write a program to add transpose and multiply two matrices

Set 46
1. Write a program to add and multiply complex numbers

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

Set 47
1. Python program to compute the number of characters, words and lines in a file.

2. Write a program to create tuples (name, age, address, college) for at least two members
and concatenate the tuples and print the concatenated tuples

Set 48
1. 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.

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

Set 49
1. Write a program to define function with multiple return values

2. Python program to compute the number of characters, words and lines in a file.

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

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


Set 51
1. Write a python program to create a class that represents a shape. Include methods to
calculate its area and perimeter. Implement subclasses for different shapes like circle,
triangle and square.

2. Python program to demonstrate use of ndim, shape, size, dtype.

Set 52
1. Write a python program to create, display, append, insert and reverse order of the items
in an array.

2. Python program to compute the number of characters, words and lines in a file.

Set 53
1. Python Program to demonstrate NumPy arrays creation using array() function

2. 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.

Set 54
1. Write a program to count the number of vowels in a string

2. Write a program to display all prime numbers within an interval

Set 55
1. Demonstrate the following operators in python with suitable Examples

2. Write a program to add transpose and multiply two matrices

Set 56
1. Write a program to find the length of the string without using any library functions

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

Set 57
1. Write a program to sum all the items in a given dictionary

2. Python program to compute the number of characters, words and lines in a file.

Set 58
1. Python program to demonstrate use of ndim, shape, size, dtype.

2. Python program to demonstrate basic slicing, integer and Boolean indexing

Set 59
1. Write a program to perform any 5 built-in functions by taking any list
2. Python program to find min, max, sum, cumulative sum of array

Set 60
1. Write a program to define function with multiple return values

2. Write a program to print multiplication table of a given number

Set 61
1. Python program to compute the number of characters, words and lines in a file.

2. Write a program to add and multiply complex numbers

Set 62
1. Write a program to sum all the items in a given dictionary

2. Write a program to create tuples (name, age, address, college) for at least two members
and concatenate the tuples and print the concatenated tuples

Set 63
1. Python program to demonstrate use of ndim, shape, size, dtype.

2. Python Program to demonstrate NumPy arrays creation using array() function

Set 64
1. Write a program to sum all the items in a given dictionary

2. 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.

Set 65
1. Write a program to find the length of the string without using any library functions

2. Write a program to create tuples (name, age, address, college) for at least two members
and concatenate the tuples and print the concatenated tuples

Set 66
1. Python Program to demonstrate NumPy arrays creation using array() function

2. Python program to demonstrate use of ndim, shape, size, dtype.

Set 67
1. Write a program to perform any 5 built-in functions by taking any list

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


Set 68
1. 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.

2. Write a program to perform the given operations on a list

Set 69
1. Write a program to add and multiply complex numbers

2. Python Program to demonstrate NumPy arrays creation using array() function

Set 70
1. Python program to demonstrate basic slicing, integer and Boolean indexing

2. Write a program to perform the given operations on a list

Set 71
1. Write a program to find the largest element among three numbers

2. Write a program to count the number of vowels in a string

Set 72
1. Python program to demonstrate use of ndim, shape, size, dtype.

2. Write a program to perform the given operations on a list

You might also like