1.

suppose tuple1=(36,96,88,74) ,in PHP which of the follwing is incorrect 1]print(tuple1[3]) 2]tuple1[3]=45 3]pring(min[tuple1]) 4]print(len[tuple1])

Answer»

e1[3]=45  is incorrect.A Tuple is a linear data structure LIKE ARRAYS,lists or VECTORS and is immutable (unchangable).  So, once a tuple is defined, no change can be made to it. In the above CODE, the tuple was defined as :tuple1=(36,96,88,74) and now, if we try to REPLACE tuple[3] which is 74, with any other value, it will cause an error. The



Discussion

No Comment Found