Mean Sea Level (MSL) এর RL কত?

Updated: 4 months ago
  • ক
    ০ মি.
  • খ
    ১০০ মি.
  • গ
    ১৫০ মি.
  • ঘ
    ২০০ মি.
134
ব্যাখ্যাঃ

Question: Which of the following data structures operates on a Last In, First Out (LIFO) principle?

Options:

        
  • A) Queue
  •     
  • B) Stack
  •     
  • C) Array
  •     
  • D) Binary Search Tree

Correct Answer: B) Stack

Detailed Explanation:

A Stack is a linear data structure that follows the LIFO (Last In, First Out) order. This means that the last element added to the stack will be the first one to be removed. Common real-world analogies include a stack of plates or the "Undo" operation in text editors.

The primary operations associated with a stack are:

        
  • push(): Adds an item to the top of the stack.
  •     
  • pop(): Removes and returns the most recently added item from the top of the stack.
  •     
  • peek() or top(): Returns the item at the top without removing it.

Why Other Options Are Incorrect:

        
  • Option A (Queue): Operates on a FIFO (First In, First Out) order, where elements are inserted at the rear and removed from the front.
  •     
  • Option C (Array): A linear collection of elements accessible randomly by index; it does not strictly enforce a LIFO access pattern.
  •     
  • Option D (Binary Search Tree): A hierarchical tree structure used for fast lookup, addition, and deletion based on sorted key values, not LIFO access.
Satt AI
Satt AI
2 weeks ago

Related Question

View All
শিক্ষকদের জন্য বিশেষভাবে তৈরি

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

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

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

Complete Exam
Preparation

Learn, practice, analyse and improve

1M+ downloads
4.6 · 8k+ Reviews

Question Analytics

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

জন

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