Computer Science - Class 12
Solutions to CBSE Sample Paper - Computer Science Class 12

Which of the following statement(s) would give an error during execution of the following code?

tup = (10, 20, 30, 40, 50)

print(len(tup)) #Statement 1

print(tuple(tup)) #Statement 2

print(tup.count(20)) #Statement 3

print(tup.append(60)) #Statement 4

Options:

A) Statement 1 

B) Statement 2 

C) Statement 3 

D) Statement 4

Answer:

Answer by student

D) Statement 4

Detailed answer by teachoo

The rest of the post is locked. Join Teachoo Black to see the full post.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.