โ† Cognizant questions

Print a String Word by Word

Filed under Cognizant

Given a string consisting of multiple words separated by spaces, extract and return a list of individual words. If the requirement is to print, ensure each word appears on a new line.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cognizant questions

Collected from public candidate posts and coding forums. Updated Nov 2026.