Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a component that checks if a hardcoded string is a palindrome and displays the result (true or false).

Hard

Problem Statement

Create a component that checks if a hardcoded string is a palindrome and displays the result (true or false).

Sample Input

madam

Sample Output

Is Palindrome: true

Limits

Time: 2s · Memory: 256 MB

Code Editor

Try your code in this preview. Submit marks it done.

import React from "react";
 
 const CheckPalindrome = () => {
  return (
  <div>
  {/* Display whether the string is a palindrome */}
  </div>
  );
 };
 
 export default CheckPalindrome;