Tuples || Type C || Sumita Arora || Class 11 || Computer science || Information practices || Solution
Q3. Write a program to input n numbers from the user. Store these numbers in a tuple. Print the maximum and minimum number from this tuple.
Q4. Write a program to create a nested tuple to store roll number, name and marks of students.
Q5. Write a program that interactively creates a nested tuple to store the marks in three subjects for five students.
Q6. In the program created in previous question, add a function that computes total marks and average marks obtained by each student.
Q7. Write a program that inputs two tuples and creates a third, that contains all elements of the first followed by all elements of the second.
Q6. In the program created in previous question, add a function that computes total marks and average marks obtained by each student.
Q7. Write a program that inputs two tuples and creates a third, that contains all elements of the first followed by all elements of the second.
(ii)= the tuple (“a”, “bb”, “ccc”….)that ends with 26 copies of the letter z .
Q10. Given a tuple pairs = ((2,5),(4,2),(9,8),(12,10)), count the number of pairs (a,b) such that both a and b are even.
Q11. Write a program that input two tuple seq_a and seq_b and print True if every element in seq_a is also an element of seq_b, else print False.
Q12. Computing Mean. Computing the mean of values stores in a tuple is relatively simple. The mean is the sum of the values divided by the number of values in the tuple. That is,∑x=the sum of x,N=number of elementsWrite a program that calculates and displays the mean of a tuple with numeric elements.
Q10. Given a tuple pairs = ((2,5),(4,2),(9,8),(12,10)), count the number of pairs (a,b) such that both a and b are even.
Q11. Write a program that input two tuple seq_a and seq_b and print True if every element in seq_a is also an element of seq_b, else print False.
Q12. Computing Mean. Computing the mean of values stores in a tuple is relatively simple. The mean is the sum of the values divided by the number of values in the tuple. That is,∑x=the sum of x,N=number of elementsWrite a program that calculates and displays the mean of a tuple with numeric elements.
Q16.Standard deviation. The standard deviation can be done a few ways but we will use the formula shown below . this computes a deviation measurement as the square of the difference between each element and the mean .Write a program to compute the standard deviation for the numeric samples collected in a tuple namely samples.
TUPLES CLASS 11 Sumita arora solution Type c |
question 3 and 4 have wrong answers
ReplyDeleteAll answer are correct so please read question carefully.
Deleteno question 3 is wrong
DeleteSorry I will correct.
DeletePlease check the question number 13. It maybe hyperlinked with question 14
ReplyDeleteOk, I have corrected it.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )