0% found this document useful (0 votes)
10 views

Practical File Questions

Class 11

Uploaded by

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

Practical File Questions

Class 11

Uploaded by

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

DELHI PUBLIC SCHOOL, AZAAD NAGAR

Practical Programs List (2023-24 )


CLASS: XI
SUB: Computer Science CODE: 083
IF- Else ( Two Questions)
Q1.Write a program to calculate Tax of employee.
if Salary >=90000 Tax =30%
if Salary >=80000 Salary <90000 Tax =20%
if Salary >=70000 Salary <80000 Tax =15%
otherwise Tax=0
Q2.Write a program to calculate sum of four subject marks . calculate average
if average >=90 print A+
if average >=80 average <90 print A
if average >=70 average <80 print B
otherwise print C
Q3. Iteration Based Program (Any Four Programs )
 Palindrome
 Armstrong
 Reverse of given number Ex->234 to 432
 Sum of Digits Ex-> 1234 to 10
 Factorial of given number
 Sum of all elements of list
 Bubble Sort
 Insertion Sort
(Tuple /List 2 Programs Only)
Q4. Write a program in python to input a tuple of strings from the user and display reverse of
each string. e.g. – If the tuple is (“word”, “234qw”, “you”, “$89”) the output should be : drow
wq432 uoy 98$.
Q5. Program to find frequencies of all element of a list. also print of unique elements in the list
and duplicate elements in the given list.
Q6.Write a program that rotates the elements of a list so that the element at the first index
moves to the second index, the element in the second index moves to the third index ,etc and
the element in the last index moves to first index.
Pattern Printing ( 2 Programs + 1 Program Series )

12345 ABCDE
1234 ABCD
123 ABC
12 AB
1 A

Find the sum of 1 + 8 +27+64 +--------------- till 10


terms .

String Based ( 3 programs)


Q7. Write a program that reads a string and count :
a) Number of space in given string .
b) Number of Vowels in given string.
c) Number of words in given string.
Q8. Write a program that reads a string and check whether it is a Palindrome string or not.
Input : ‘nitin’ Output : ‘yes it is palindrome’.
Q 9. Write a program that reads a string and prints a string that capitalizes every other letter in the
string example student becomes StUdEnT
Dictionary Based (2 Programs )
Q10 .Write a program to read a sentence and then create a dictionary contains the frequency of
letters and digits in the sentence .Ignore other symbols .if any.
Example hello1001
Output will be : {‘h’:1,’e’:1,’l’:2,’o’:1,0:2,1:2}
Q11 . Write a program to convert a number entered by the user into its corresponding number in
words ,for example if the input is 876 then the output should be “Eight Seven Six”.

Q12. Mysql ( Create 2 tables and Create 10 queries with each table)(All queries should be unique .

You might also like