हिंदी

Assertion (A): A stack is a LIFO structure. Reason (R): Any new element pushed into the stack always gets positioned at the index after the last existing element in the stack. - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Assertion (A): A stack is a LIFO structure.

Reason (R): Any new element pushed into the stack always gets positioned at the index after the last existing element in the stack.

विकल्प

  • Both (A) and (R) are true and (R) is the correct explanation for (A).

  • Both (A) and (R) are true and (R) is not the correct explanation for (A).

  • (A) is true, but (R) is false.

  • (A) is false, but (R) is true.

MCQ

उत्तर

Both (A) and (R) are true and (R) is the correct explanation for (A).

Explanation:

Stack employs the Last-In-First-Out methodology.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2022-2023 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×