Questions

4 Marks Each

🎯

Test yourself on this topic

18 questions · timed · auto-graded

Question 14 Marks
Write python program using function to find the sum of first n terms of the following series:

where n and x have to be input from the user. The function should have two parameter n and x and return the sum of the series.

View full question & answer
Question 24 Marks
Write python program using function to find the sum of first n terms of the following series:

where n and x have to be input from the user. The function should have two parameter n and x and return the sum of the series.

View full question & answer
Question 44 Marks
Write a python program using function to accept the list as parameter and print the odd element of the list.
View full question & answer
Question 54 Marks
Write a menu driven python program using function to do the following: 1. Reverse a Number, 2. Check whether a number is Palindrome or not and 3. To check whether it is Armstrong or not and 4 to exit. Program should continue till the user says 'no'
View full question & answer
Question 64 Marks
Write a python program using function to check whether a number is Armstrong or not. The function will accept a number as parameter.
View full question & answer
Question 84 Marks
Write a python program using function to accept a list as parameter and multiply all the odd elements by 5. [This program will also demonstrate by reference concept]
View full question & answer
Question 94 Marks
Write a python program using function to accept a list as parameter and print all the even number in the list.
View full question & answer
Question 104 Marks
Write a python program using function to accept a list as parameter and return the sum of all the list elements.
View full question & answer
Question 114 Marks
Write python program using function to find the sum of first n terms of the following series:

where n and x have to be input from the user. The function should have two parameter n and x and return the sum of the series.

View full question & answer
Question 124 Marks
Write python program using function to find the sum of first n terms of the following series: x - x2 + x3 - . . . where n and x have to be input from the user. The function should have two parameter n and x and return the sum of the series.
View full question & answer
Question 134 Marks
Write a menu based python program using function to find TSA and Vol of Cylinder, Sphere and Cone according to choice entered by the user.
View full question & answer
Question 144 Marks
Write a python program using function to print the table of the number. The function should take a numbers as parameter.
View full question & answer
Question 164 Marks
Write a python program using function to find greater number between two numbers. The function should take 2 numbers as parameters.
View full question & answer
Question 174 Marks
Write a python program using function to demonstrate random() along with list, tuple and dictionary. The program should do 3 things: (i) Should create the list of 5 random numbers between 10 to 99. (ii) Should create the tuple of 5 random numbers between 10 to 99. (iii) Should create the dictionary of 5 keys:values random characters as key and ASCII as its value.
View full question & answer
Question 184 Marks
Write a python program using functions to do the following task: (a) To check whether the entered number is prime or not. (b) To print all the prime number between the 2 to n. Also write the python statements to execute these function. Filename:ch3_Q10
View full question & answer
4 Marks Each - Computer Science STD 12 Science Questions - Vidyadip