Student Learning
Home
(current)
Aptitude
Class
FYBCA
SYBCA
TYBCA
Reading
About
FeedBack
Search
A1. Write a Python Program to Calculate the Average of Numbers in a Given List.
A2. Write a program which accepts 6 integer values and prints “DUPLICATES” if any of the values entered are duplicates otherwise it prints “ALL UNIQUE”.
Example: Let 5 integers are (32, 10, 45, 90, 45, 6) then output “DUPLICATES” to be printed.
A3. Write a program which accepts an integer value as command line and print “Ok” if value is between 1 to 50 (both inclusive) otherwise it prints” Out of range”
A4. Write a program which finds sum of digits of a number. Example n=130 then output is 4 (1+3+0).
A5. Write a program which prints Fibonacci series of a number.
B1. Write a program which accept an integer value ‘n’ and display all prime numbers till ‘n’.
B2. Write a program that accept two integer values and if both are equal then prints “SAME identity” otherwise prints, “DIFFERENT identity”.
B3. Write a program to display following pattern. 1 2 3 4
1 2 3
1 2
1
B4. Write a program to reverse a given number.
C1. Write a Sequential search function which searches an item in a sorted list. The function should return the index of element to be searched in the list.