Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.2k views
in Computer by (20 points)
Which of the following are not valid operations in python?

 i. Slicing a list

ii. Concatenation of a list and a tuple

 iii. Slicing a dictionary

 iv. Adding an element to an existing tuple

Please log in or register to answer this question.

2 Answers

0 votes
by (58.8k points)

Adding an element to an existing tuple.

0 votes
by (75 points)

Answer : (II) , (III) and (IV)

Reason : 

1. For part (II) - You can't concatenate different data types 

2. For part (III) - Dictionaries and unordered data types so you can't slice them the way you can slice strings or tuples or lists

3. For part (IV) - Whenever you add an element to tuple, A new tuple is formed because Tuples are immutable data types

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...