Tuples || Type A || Sumita Arora || Class 11 || Computer science || Information practices || Solution
Q1. Discuss the utility and significance of Tuples, briefly.
Q2. If a is (1, 2, 3)(a) what is the difference (if any) between a * 3 and (a, a, a)? (b) is a * 3 equivalent to a + a + a ? (c) what is the meaning of a[1:1] ?(d) what is the difference between a[1:2] and a[1:1] ?
Q3. Does the slice operator always produce a new tuple ?
.
Q6. What would following statements print ? Given that we have tuple = ('t', 'p', 'I') (a) print("tuple") (b) print(tuple(“tuple")) (c) print (tuple)
Q7. How is an empty tuple created ?.
Q8. How is a tuple containing just one element created ?
Q9. How can you add an extra element to a tuple ?
Q10. When would you prefer tuples over lists ?
Q11. What is the difference between (30) and (30,) ?
Q12. When would sum() not work for tuples?
Q13. Do min( ), max( ) always work for tuples?
Q14. Is the working of in operator and tuple.index() same?
Q15. How are in operator and index() similar or different ?
THERE ARE NOT ALL QUESTIONS.....MANY ARE MISSING OF TYPE A ,B AND C....PLS KEEP THE UPDATED VERSION OF THE BOOK...THANK YOU ...
ReplyDeleteI will Upload all question very soon...
DeleteThank you for answers but plz try explain them too .🙂
ReplyDeleteWelcome 😊😊, i will try.
DeleteThis site is awesome I completed my all homeworks.
ReplyDeleteThanks Path Walla
Welcome 😊😊
Deletevery nice good job brother
ReplyDeleteThank you so much 💓🥰
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )