Which of the following is not a palindromic subsequence of the string “ababcdabba” ? 

This question was previously asked in
UGC NET Computer Science (Paper 2) 07 Dec 2023 Official Paper
View all UGC NET Papers >
  1. abcba
  2. abba
  3. abbbba
  4. adba

Answer (Detailed Solution Below)

Option 4 : adba
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
8.8 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

The correct answer is adba

EXPLANATION:

A palindromic subsequence is one that remains the same when reversed. The given string is "ababcdabba".

  • From this string:
    • "abcba" is a palindromic subsequence ('a', 'b', 'c', 'b', 'a').
    • "abba" is a palindromic subsequence ('a', 'b', 'b', 'a').
    • "abbbba" is not a palindromic subsequence. There are only two 'b's in the input string, and 'abbbba' would require at least four.
    • "adba" is not a palindromic subsequence. There is no 'd' in the input string.

Therefore, the non-palindromic subsequences are 3) abbbba and 4) adba.

Mistake Points Above question two correct answer and ugc also give both are correct answer.

Latest UGC NET Updates

Last updated on Jun 6, 2025

-> The UGC NET Exam Schedule 2025 for June has been released on its official website.

-> The UGC NET Application Correction Window 2025 is available from 14th May to 15th May 2025.

-> The UGC NET 2025 online application form submission closed on 12th May 2025.

-> The June 2025 Exam will be conducted from 21st June to 30th June 2025

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Dynamic Programming Questions

More Algorithm Design Techniques Questions

Get Free Access Now
Hot Links: teen patti game - 3patti poker teen patti classic teen patti master list teen patti tiger teen patti master update