Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

ANNA UNIVERSITY,

MIT CAMPUS
B.E. AERONAUTICAL ENGINEERING
GE 5161 - PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
END SEMESTER LAB EXAM –JULY 2021

DATE: 29/07/2021 MARKS: 100 DURATION: 3 Hours


REG NO:
RANDOM NUMBER ALLOTED:

S.No Question Marks


1 Write algorithm, pseudocode and draw flow chart to check whether the 25
given number is repdigit number. A repdigit is a number composed of
repetition of a single digit in a given base, generally taken as base 10 unless
otherwise specified. For example, 666 is a (base-10) repdigit.
2 Write a python program to generate Tribonacci series upto 11 terms if the 25
option is ‘T’/ ‘t’
0, 1, 1, 2, 4, 7, 13, 24, 44, 81 and 149.
Or generate Fibonacci series upto 11 terms if the option is ‘F’ / ‘f’
0, 1, 1, 2, 3, 5, 8, 13, 21, 34 and 55

3 Write a function to find the factorial of the given number. Using this function 25
write a program to check whether the given number is a strong number.If
the sum of factorial of the digits in any number is equal the given number
then the number is called as STRONG number.
Ex, in 145,1! +4! +5!= 1+24+120 = 145
4 Write a program to read a number as string display square of each individual 25
digit in a given number.
Eg: Input: 1234 Output: 14916, perform this operation for 'n' different
numbers.

~~~~~~~~~~~~~~~~~~~~All the Best~~~~~~~~~~~~~~~~~~

You might also like