Specialist Programmer

20+ Specialist Programmer Interview Questions and Answers for Freshers

Updated 9 Jul 2025

Asked in Infosys

2d ago

Q. Find the first occurrence of the target value in a sorted array. (Duplicates are allowed)

Ans.

Find the first occurrence of target value in a sorted array with duplicates.

  • Use binary search to find the target value.

  • If found, check if the previous element is also the target value.

  • If not, return the index of the target value.

  • If yes, continue binary search on the left subarray.

Asked in Infosys

5d ago

Q. Given an array with positive and negative integers, find the maximum subarray sum.

Ans.

Find the maximum subarray sum in an array with positive and negative integers.

  • Use Kadane's algorithm to find the maximum subarray sum.

  • Initialize two variables, one for current maximum and one for global maximum.

  • Iterate through the array and update the variables accordingly.

  • Return the global maximum.

  • Example: [-2, 1, -3, 4, -1, 2, 1, -5, 4] returns 6 (subarray [4, -1, 2, 1])

Asked in Infosys

4d ago

Q. Which process scheduling algorithms do you know, and can you explain each one?

Ans.

Process scheduling algorithms determine the order in which processes are executed by the CPU.

  • First Come First Serve (FCFS) - Processes are executed in the order they arrive.

  • Shortest Job Next (SJN) - Process with the shortest burst time is executed next.

  • Round Robin (RR) - Each process is assigned a fixed time slice for execution.

  • Priority Scheduling - Processes are executed based on priority levels assigned to them.

  • Multi-Level Queue Scheduling - Processes are divided into diffe...read more

Asked in Infosys

4d ago

Q. What is deadlock in OS and how can it be overcome?

Ans.

Deadlock in OS occurs when two or more processes are unable to proceed because each is waiting for the other to release a resource.

  • Deadlock happens when processes have acquired resources but are waiting for additional resources that are held by other processes.

  • Four conditions must hold for deadlock to occur: mutual exclusion, hold and wait, no preemption, and circular wait.

  • Deadlock can be prevented by using techniques like resource allocation graphs, deadlock detection algori...read more

Are these interview questions helpful?

Asked in Infosys

2d ago

Q. Write a SQL query to print the nth highest salary with full details.

Ans.

SQL query to retrieve the n'th highest salary with full details

  • Use the ORDER BY clause to sort salaries in descending order

  • Use the LIMIT clause to retrieve the n'th highest salary

  • Join with the employee table to get full details

Asked in Infosys

1d ago

Q. What are the types of joins in DBMS, and can you explain each one?

Ans.

Joins in DBMS are used to combine rows from two or more tables based on a related column between them.

  • Inner Join: Returns rows when there is at least one match in both tables.

  • Left Join: Returns all rows from the left table and the matched rows from the right table.

  • Right Join: Returns all rows from the right table and the matched rows from the left table.

  • Full Outer Join: Returns rows when there is a match in one of the tables.

  • Self Join: Joining a table with itself to combine r...read more

Specialist Programmer Jobs

Infosys Limited logo
Bigdata Specialist programmer 5-8 years
Infosys Limited
3.6
Bangalore / Bengaluru
Infosys Limited logo
.Net specialist programmer 5-8 years
Infosys Limited
3.6
Bangalore / Bengaluru
Infosys Limited logo
SRE specialist programmer 5-8 years
Infosys Limited
3.6
Bangalore / Bengaluru

Asked in Infosys

2d ago

Q. What is inheritance, and can you explain each type?

Ans.

Inheritance is a concept in object-oriented programming where a class inherits properties and behaviors from another class.

  • Types of inheritance: single inheritance, multiple inheritance, multilevel inheritance, hierarchical inheritance, hybrid inheritance

  • Single inheritance: a class inherits from only one base class

  • Multiple inheritance: a class inherits from multiple base classes

  • Multilevel inheritance: a class inherits from a class which in turn inherits from another class

  • Hier...read more

Asked in Infosys

4d ago

Q. What are late binding and early binding?

Ans.

Late binding and early binding are concepts in programming related to when the binding of a method to its implementation occurs.

  • Early binding refers to the process of linking a method call to the method implementation at compile time.

  • Late binding refers to the process of linking a method call to the method implementation at runtime.

  • Early binding is also known as static binding, while late binding is also known as dynamic binding.

  • Late binding allows for more flexibility and ex...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in Infosys

4d ago

Q. Write a code to convert camel casing to snake casing and vice versa.

Ans.

Code to convert camel casing to snake casing and vice versa.

  • For camel to snake case, iterate through the string and add '_' before every uppercase letter except the first one.

  • For snake to camel case, iterate through the string and remove '_' and capitalize the letter after it.

  • Handle edge cases like consecutive uppercase letters or underscores in the input string.

  • Use built-in string functions like split(), join(), and replace() for efficient implementation.

Asked in Infosys

6d ago

Q. Write a memory sorting code given 3 RAMs and the quantity of data present in them.

Ans.

Sorting code for given 3 RAMs and data quantity

  • Determine the size of each RAM and the quantity of data in them

  • Choose a sorting algorithm based on the size of data and available RAM

  • Divide the data into chunks that can fit into the available RAM

  • Sort each chunk using the chosen algorithm

  • Merge the sorted chunks into a single sorted list

Asked in Infosys

1d ago

Q. Can you describe the cloud processes you have utilized in your work?

Ans.

I have utilized various cloud processes including deployment, data storage, and serverless computing in my projects.

  • Implemented CI/CD pipelines using AWS CodePipeline for automated deployments.

  • Utilized AWS S3 for scalable data storage and backup solutions.

  • Developed serverless applications using AWS Lambda to reduce infrastructure management.

  • Leveraged Azure Functions for event-driven processing in real-time applications.

  • Used Google Cloud Pub/Sub for asynchronous messaging betw...read more

Asked in Infosys

5d ago

Q. What is a Binary Search Tree, and how does it function?

Ans.

A Binary Search Tree (BST) is a data structure that maintains sorted order for efficient searching, insertion, and deletion.

  • A BST is a tree where each node has at most two children.

  • The left child contains values less than the parent node.

  • The right child contains values greater than the parent node.

  • Example: Inserting 10, 5, 15 results in a tree with 10 as root, 5 as left child, and 15 as right child.

  • Searching for a value starts at the root and traverses left or right based on ...read more

Asked in Infosys

4d ago

Q. Write a program to print the frequencies of elements in an array.

Ans.

Program to print frequencies of elements in an array.

  • Create a dictionary to store the frequency of each element.

  • Iterate through the array and update the frequency in the dictionary.

  • Print the dictionary to display the frequency of each element.

Asked in Infosys

1d ago

Q. How would you apply Dijkstra's Algorithm in a real-life scenario?

Ans.

Dijkstra's Algorithm finds the shortest path in graphs, useful for navigation, logistics, and network routing.

  • 1. Navigation Systems: Used in GPS to find the shortest route between two locations.

  • 2. Network Routing: Helps in determining the most efficient data packet paths in computer networks.

  • 3. Logistics: Optimizes delivery routes for transportation companies to minimize travel time and costs.

  • 4. Urban Planning: Assists in designing efficient public transport routes by analyzi...read more

Asked in Infosys

1d ago

Q. How do you swap two numbers without using a third variable?

Ans.

To swap two numbers without using third variable, use arithmetic operations.

  • Add the two numbers and store the result in the first variable.

  • Subtract the second variable from the sum and store the result in the second variable.

  • Subtract the second variable from the original sum and store the result in the first variable.

Q. What is the difference between JavaScript and TypeScript?

Ans.

JavaScript is a dynamic scripting language, while TypeScript is a statically typed superset of JavaScript.

  • JavaScript is dynamically typed, while TypeScript is statically typed.

  • TypeScript supports type checking at compile time, while JavaScript does not.

  • TypeScript allows for the use of interfaces and advanced OOP features, while JavaScript does not.

  • TypeScript code needs to be transpiled to JavaScript before it can be executed in a browser.

Asked in Infosys

2d ago

Q. Given a list of natural numbers, find the largest increasing subsequence from it.

Ans.

Find the largest increasing subsequence from a list of natural numbers

  • Use dynamic programming to keep track of the longest increasing subsequence ending at each index

  • Iterate through the list and update the longest increasing subsequence for each element

  • Return the maximum length of the increasing subsequence

Asked in Infosys

1d ago

Q. What is immutability in Python?

Ans.

Immutability in Python refers to the property of objects that cannot be changed after creation.

  • Immutable objects cannot be modified once created

  • Immutable objects include numbers, strings, and tuples

  • Immutable objects are useful for caching and as dictionary keys

Asked in Infosys

3d ago

Q. Compare the time and space complexity of an array list versus a linked list.

Ans.

Array list has O(1) time complexity for accessing elements but O(n) for insertion/deletion, while linked list has O(n) time complexity for accessing elements but O(1) for insertion/deletion.

  • Array list has constant time complexity O(1) for accessing elements by index, but linear time complexity O(n) for insertion/deletion operations due to shifting elements.

  • Linked list has linear time complexity O(n) for accessing elements as it requires traversing from the head node, but cons...read more

Asked in Infosys

1d ago

Q. What is a stack data structure?

Ans.

Stack is a linear data structure that follows Last In First Out (LIFO) principle.

  • Elements are added and removed from the top of the stack.

  • Push operation adds an element to the top of the stack.

  • Pop operation removes the top element from the stack.

  • Peek operation returns the top element without removing it.

  • Examples: function call stack, undo-redo operations in text editors.

Asked in Infosys

6d ago

Q. What are mutable objects in Python?

Ans.

Mutable objects in Python are objects whose value can be changed after creation.

  • Lists, dictionaries, and sets are examples of mutable objects in Python.

  • Changes made to mutable objects directly affect the original object.

  • Mutable objects can be modified in place using methods like append(), update(), and remove().

Asked in Infosys

6d ago

Q. How would you design a database for an airline ticket booking system?

Ans.

Design a database for airways ticket booking system

  • Create tables for flights, passengers, bookings, and seats

  • Use foreign keys to establish relationships between tables

  • Include attributes like flight number, passenger name, seat number, etc.

  • Implement constraints to ensure data integrity

  • Consider indexing for faster retrieval of data

Asked in Infosys

3d ago

Q. Implement a phone directory using data structures.

Ans.

Phone directory can be implemented using an array of strings.

  • Use an array of strings to store phone numbers with corresponding names

  • Implement functions to add, delete, search, and display entries in the phone directory

  • Consider using a hash table for faster search operations

Asked in Infosys

5d ago

Q. What is machine learning?

Ans.

Machine learning is a branch of artificial intelligence that involves developing algorithms and models that enable computers to learn from and make predictions or decisions based on data.

  • Machine learning involves training algorithms to learn patterns from data and make predictions or decisions without being explicitly programmed.

  • It is used in various applications such as image recognition, natural language processing, recommendation systems, and autonomous vehicles.

  • Examples o...read more

Asked in Mobiversa

3d ago

Q. Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length. Do not allocate extra space for another array; you must do this by modifying the in...

read more
Ans.

Use two pointers to remove duplicates from a sorted array of strings.

  • Initialize two pointers, one for the current element and one for the next unique element.

  • Compare current element with next element, if same, move next pointer until a different element is found.

  • Replace duplicate elements with unique elements found by next pointer.

Interview Experiences of Popular Companies

Infosys Logo
3.6
 • 7.9k Interviews
Infosys BPM  Logo
3.6
 • 1k Interviews
 UST Logo
3.8
 • 544 Interviews
Fiserv Logo
2.9
 • 181 Interviews
View all

Top Interview Questions for Specialist Programmer Related Skills

interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Specialist Programmer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits