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

Python Programming Questions

The document outlines a descriptive assessment for Python programming at Alva’s Institute of Engineering & Technology, scheduled for February 10, 2025. It includes a series of programming questions covering various topics such as generating prime numbers, quadratic equations, recursion, searching algorithms, and string manipulation. Each question is assigned specific marks, totaling a maximum of 100 marks for the assessment.

Uploaded by

puneeth04aiet
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Python Programming Questions

The document outlines a descriptive assessment for Python programming at Alva’s Institute of Engineering & Technology, scheduled for February 10, 2025. It includes a series of programming questions covering various topics such as generating prime numbers, quadratic equations, recursion, searching algorithms, and string manipulation. Each question is assigned specific marks, totaling a maximum of 100 marks for the assessment.

Uploaded by

puneeth04aiet
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Alva’s Institute of Engineering & Technology,

Moodbiri
Descriptive Assessment on Python Programming
Date: 10/02/2025 Time: 2-4:30 PM
Instructions: Answer all Questions Max Marks:100
Q No Questions Mark
s
1 a Write a Python program to display all integers within the range 100-200 whose 5M
sum of digits is an even number
b Python program to generate the prime numbers from 1 to N. 5M
2 a Python program to find the roots of a quadratic equation 5M
b Write a program to create a set containing 10 randomly generated numbers in the range 20 to 5M
55. count how many of these numbers are less than 35. delete all numbers which are greater
than 45.
3 a Python program to print the numbers from a given number n till 0 using recursion 5M
b Python program to find the factorial of a number using recursion 5M
4 a Python program to display the sum of n numbers using a list 5M
b Python program to implement linear search 5M
5 a Python program to implement binary search 5M
b Python program to check whether a string is palindrome or not 5M
6 a Python program to implement matrix multiplication 5M
b Python program to implement a calculator to do basic operations 5M
7 a Write a Python program that accepts some words and counts the number of 5M
distinct words. Print the number of distinct words and the number of occurrences
of each distinct word according to their appearance
b Write a Python program to find the item with the highest frequency in a given list. 5M
Sample Output:
Original list:
[2, 3, 8, 4, 7, 9, 8, 2, 6, 5, 1, 6, 1, 2, 3, 2, 4, 6, 9, 1, 2]
Item with maximum frequency of the said list:
(2, 5)

8 a Write a Python program to count the most and least common characters in a 5M
given string.
Sample Output:
Original string:
‘hello world’
Most common character of the said string: l
Least common character of the said string: h
b Write a Python function to check if a list is a palindrome or not. Return true 5M
otherwise false.
9 a Write a Python program to find the characters in a list of strings that occur more 10M
or less than a given number.
Sample Output:
Original list:
['abcd', 'iabhef', 'dsalsdf', 'sdfsas', 'jlkdfgd']
Characters of the said list of strings which occur more than: 3
['a', 'd', 'f']
Characters of the said list of strings which occur less than: 3
['c', 'b', 'h', 'e', 'i', 's', 'l', 'k', 'j', 'g']

1 a Write a Python function to reverse a list at a specific location. 10M


0
1|Page
2|Page

You might also like