Which of the following programming languages is NOT commonly tested in Infosys placements?
AJava
BPython
CCOBOL
DC++
Correct Answer:
C. COBOL
Explanation:
While Java, Python, and C++ are actively tested in Infosys coding rounds, COBOL is a legacy language and rarely featured in modern placement assessments.
In Infosys' technical interview, a candidate is asked to find the longest palindromic substring in a given string. Which approach would be most optimal?
ABrute force (O(n³))
BExpand around centers (O(n²))
CDynamic Programming (O(n²))
DBoth B and C are equally optimal
Correct Answer:
D. Both B and C are equally optimal
Explanation:
Both Expand Around Centers and Dynamic Programming offer O(n²) time complexity, which is considered optimal for this problem in interview settings.
iGET uses cookies for essential site functionality, analytics, and ads personalization (via Google AdSense). By clicking "Accept", you consent to our use of cookies.
Privacy Policy ·
Disclaimer