Rani and Porshi are neighbours. Rani is a special need student. Every day, she goes to school with Porshi. They are attentive in the class. Every Sunday, students change their seats. But Rani always sits in the same chair. The students follow the sitting plan in the class. Rani and her friends enjoy their classes. They like group work, pairwork, role play, project work, etc. in the classes. Sometimes, teachers give lessons outside the classroom. Rani joins these classes in a wheel chair. Rani and her friends enjoy these classes very much. They also like audio and video clips which are shown in the classes. Every Thursday, students borrow story books from the school library.

Choose the right answer.

Rani and Porshi are ______

Updated: 9 months ago
  • ক
    friends
  • খ
    sisters
  • গ
    neighbours
  • ঘ
    students
476
ব্যাখ্যাঃ

Question: Which of the following data types in Python is immutable?

Options:

        
  • A) List
  •     
  • B) Dictionary
  •     
  • C) Tuple
  •     
  • D) Set

Correct Answer: C) Tuple

Explanation:

In Python, an object is considered immutable if its value or state cannot be changed once it is created. Conversely, a mutable object can be altered after instantiation.

        
  • Tuple (Option C - Correct): Tuples are sequences that are immutable. Once created, elements cannot be added, removed, or updated in place. Attempting to modify an element will result in a TypeError.
  •     
  • List (Option A - Incorrect): Lists are mutable ordered sequences. Elements can be added using methods like append(), modified by index assignment, or removed using pop().
  •     
  • Dictionary (Option B - Incorrect): Dictionaries are mutable mappings of keys to values. Keys and values can be inserted, updated, or deleted at runtime.
  •     
  • Set (Option D - Incorrect): Sets are mutable collections of unique elements. Elements can be added using add() or removed using remove().

Key Takeaway: Standard immutable types in Python include int, float, bool, str, tuple, and frozenset.

Satt AI
Satt AI
1 week ago

Related Question

View All
Updated: 4 months ago
  • ক
    brilliant
  • খ
    meritorious
  • গ
    special need
  • ঘ
    autistic
376
Updated: 4 months ago
  • ক
    Porshi
  • খ
    Rani
  • গ
    Students
  • ঘ
    Porshi and Rani
354
Updated: 4 months ago
  • ক
    special need student
  • খ
    meritorious student
  • গ
    rich student
  • ঘ
    can't walk
258
Updated: 4 months ago
  • ক
    buy
  • খ
    steal
  • গ
    avoid
  • ঘ
    borrow
288
শিক্ষকদের জন্য বিশেষভাবে তৈরি

১ ক্লিকে প্রশ্ন, শীট, সাজেশন ও
অনলাইন পরীক্ষা তৈরির সফটওয়্যার!

শুধু প্রশ্ন সিলেক্ট করুন — প্রশ্নপত্র অটোমেটিক তৈরি!

প্রশ্ন এডিট করা যাবে
জলছাপ দেয়া যাবে
ঠিকানা যুক্ত করা যাবে
Logo, Motto যুক্ত হবে
অটো প্রতিষ্ঠানের নাম
অটো সময়, পূর্ণমান
প্রশ্ন এডিট করা যাবে
জলছাপ দেয়া যাবে
ঠিকানা যুক্ত করা যাবে
Logo, Motto যুক্ত হবে
অটো প্রতিষ্ঠানের নাম
অটো সময়, পূর্ণমান
অটো নির্দেশনা (এডিটযোগ্য)
অটো বিষয় ও অধ্যায়
OMR সংযুক্ত করা যাবে
ফন্ট, কলাম, ডিভাইডার
প্রশ্ন/অপশন স্টাইল পরিবর্তন
সেট কোড, বিষয় কোড
অটো নির্দেশনা (এডিটযোগ্য)
অটো বিষয় ও অধ্যায়
OMR সংযুক্ত করা যাবে
ফন্ট, কলাম, ডিভাইডার
প্রশ্ন/অপশন স্টাইল পরিবর্তন
সেট কোড, বিষয় কোড
এখনই শুরু করুন ডেমো দেখুন
৫০,০০০+
শিক্ষক
৩০ লক্ষ+
প্রশ্নপত্র
মাত্র ১৫ পয়সায় প্রশ্নপত্র
১ ক্লিকে প্রশ্ন, শীট, সাজেশন তৈরি করুন আজই

Complete Exam
Preparation

Learn, practice, analyse and improve

1M+ downloads
4.6 · 8k+ Reviews

Question Analytics

মোট উত্তরদাতা

জন

সঠিক
ভুল
উত্তর নেই