Home › Interview Questions › String Manipulation Interview Questions

String Manipulation Interview Questions

11 real String Manipulation questions asked in live technical interviews — each with a model answer. Updated weekly.

🎤 Auto-captured by Assisting AI during live interviews

These String Manipulation interview questions were captured from real interviews by candidates using Assisting AI. Each links to a full model answer. For real-time help during your own interview, get Assisting AI from ₹500/day.

How do you reverse a string in Python using slicing and using a for loop?🟢 Easy · Conceptual · Asked 2×Write PySpark code to read a JSON file containing records with fields first_name and last_name. Drop records where first_name is null. Add a new column FULL_NAME by concatenating first_name and last_name. Then display all three columns only when FULL_NAME length is greater than 30 characters.🟡 Medium · Coding · Asked 2×Write Python code that opens 'input.txt', goes to the 5th line, then selects the 5th word in that line, and prints the word along with its length.🟢 Easy · Coding · Asked 2×Write a program that iterates over the numbers 1000 to 9999, converts each number to a string, and checks if any digit repeats consecutively. If a number has no consecutive repeated digits, print it.🟡 Medium · Coding · Asked 1×How can you extract the domain part from an email address in Python?🟢 Easy · Coding · Asked 1×How would you extract the part of a string before the dot in a domain name, such as 'example.com'?🟢 Easy · Coding · Asked 1×How would you extract the '.com' part from a string such as 'youtube.com'?🟢 Easy · Conceptual · Asked 1×How would you extract the substring that comes after the dot in a string such as 'a.com'?🟢 Easy · Conceptual · Asked 1×How would you extract the domain part of an email address (e.g., 'user@example.com') using string split in Python?🟢 Easy · Conceptual · Asked 1×How can you extract unique domains from a comma‑separated string of email addresses?🟡 Medium · Coding · Asked 1×In Python, without using built‑in functions, write a function to reverse a string.🟢 Easy · Coding · Asked 1×

🎤 Get String Manipulation questions answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.

Get Assisting AI — Starts at ₹500

Browse Other Topics