Technology Trainee
10+ Technology Trainee Interview Questions and Answers

Asked in Wipro

Q. Segregate Odd-Even Problem Statement
In a wedding ceremony at NinjaLand, attendees are divided into two groups: bride’s side and groom’s side. Attendees from the bride’s side hold odd numbers, while those from ...read more
Rearrange attendees from bride's side and groom's side while maintaining original order within each group.
Iterate through the linked list and separate odd and even numbers into two separate lists.
Merge the two lists while maintaining the original order within each group.
Output the rearranged linked list with bride's side attendees followed by groom's side attendees.

Asked in Nagarro

Q. Count Derangements Problem Statement
You are tasked with finding the total number of derangements for a given set of elements. Specifically, for an integer N
, determine how many ways there are to permute a set ...read more
The task is to find the total number of derangements for a given set of elements, where no element appears in its original position.
Implement a function to calculate the number of derangements for a given set size 'N'.
Ensure to calculate the output as 'answer % (10^9 + 7)' due to large numbers.
Consider the constraints of 1 <= T <= 5 and 1 <= N <= 5000.
Provide the output for each test case on a new line.
Technology Trainee Interview Questions and Answers for Freshers

Asked in Amazon

Q. Smallest Window Problem Statement
Given two strings S
and X
containing random characters, the task is to find the smallest substring in S
which contains all the characters present in X
.
Input:
The first line co...read more
The task is to find the smallest substring in string S which contains all the characters present in string X.
Iterate through string S and keep track of characters in X using a hashmap
Use two pointers to maintain a sliding window containing all characters in X
Update the window size and result as you iterate through S

Asked in Nagarro

Q. Trapping Rain Water Problem Statement
You are given a long type array/list ARR
of size N
, representing an elevation map. The value ARR[i]
denotes the elevation of the ith
bar. Your task is to determine the tota...read more
Calculate the total amount of rainwater that can be trapped between given elevations in an array.
Iterate through the array and calculate the maximum height on the left and right of each bar.
Calculate the amount of water that can be trapped at each bar by finding the minimum of the maximum heights on the left and right.
Sum up the trapped water at each bar to get the total trapped water for the entire array.

Asked in Amazon

Q. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the...
read moreThe Two Sum problem involves finding two numbers in an array that add up to a specific target sum.
Given an array of integers and a target sum, identify two numbers that sum to the target.
Example: For array [2, 7, 11, 15] and target 9, the answer is indices 0 and 1 (2 + 7 = 9).
Use a hash map to store numbers and their indices for efficient lookup.
Time complexity is O(n) with a single pass through the array.

Asked in Nagarro

Q. How is the search operation in a HashMap O(1)?
Hashmap search has constant time complexity O(1) due to its use of hash function and index-based storage.
Hashmap uses a hash function to generate a unique index for each key-value pair
This index is used to directly access the value in the underlying array
As long as the hash function is well-designed and the array is large enough, search time remains constant
Example: searching for a value with key 'John' in a hashmap of 1000 entries takes the same time as searching in a hashma...read more
Technology Trainee Jobs




Asked in Vodafone Idea

Q. Do you know about Femto-cells?
Femto-cells are small cellular base stations that improve indoor coverage and capacity.
Femto-cells are used to enhance cellular network coverage and capacity in indoor environments.
They are small and low-power base stations that connect to the main cellular network.
Femto-cells are typically used in residential or small business settings.
They provide a localized cellular signal, improving call quality and data speeds.
Examples of femto-cell products include AT&T's 3G MicroCell ...read more

Asked in Protean eGov Technologies

Q. What is RDBMS and Types of Joins is SQL
RDBMS stands for Relational Database Management System. Types of joins in SQL include INNER, LEFT, RIGHT, and FULL joins.
RDBMS is a type of database management system that stores data in a structured format using tables with rows and columns.
Types of joins in SQL include INNER JOIN (returns rows when there is a 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 an...read more
Share interview questions and help millions of jobseekers 🌟

Asked in TCS

Q. What is polymorphism?
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to be used for different data types.
Examples include method overloading and method overriding in object-oriented programming.

Asked in Protean eGov Technologies

Q. What is encapsulation and inheritance
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit. Inheritance is the mechanism where a new class inherits properties and behaviors from an existing class.
Encapsulation helps in hiding the internal state of an object and restricting access to it.
Inheritance allows for code reusability by creating a new class based on an existing class.
Encapsulation is achieved through access specifiers like private, protected, and public.
Inh...read more

Asked in Nagarro

Q. Give real-life examples and code it.
Real-life examples and code for Technology Trainee interview question.
Example 1: Creating a simple calculator app in Python
Example 2: Implementing a basic chatbot using JavaScript
Example 3: Developing a website using HTML, CSS, and JavaScript

Asked in Collegebatch

Q. What are your career goals?
My career goal is to become a skilled software developer and eventually work my way up to a leadership position in a tech company.
Become a skilled software developer
Work towards a leadership position in a tech company
Continuously learn and improve my technical skills
Seek opportunities for growth and advancement within the industry

Asked in TCS

Q. What is inheritance?
Inheritance is a concept in object-oriented programming where a class can inherit attributes and methods from another class.
Allows for code reusability and promotes the concept of hierarchical classification
Derived class inherits properties and behaviors of the base class
Types of inheritance include single, multiple, multilevel, and hierarchical inheritance

Asked in Nagarro

Q. Implement a Dequeue from scratch.
Implement DeQueue using arrays in a programming language
Create an array to store the elements of the DeQueue
Implement functions to add elements at both ends of the DeQueue
Implement functions to remove elements from both ends of the DeQueue
Ensure proper handling of empty DeQueue and full DeQueue scenarios

Asked in Nagarro

Q. Memory and runtime efficiency.
Memory and runtime efficiency are crucial for optimal performance of any technology.
Efficient algorithms and data structures can improve memory and runtime efficiency.
Caching and memoization can reduce runtime by storing frequently used data.
Optimizing code and reducing unnecessary computations can improve both memory and runtime efficiency.
Using appropriate programming languages and frameworks can also impact efficiency.
For example, using a compiled language like C++ can imp...read more
Interview Questions of Similar Designations
Interview Experiences of Popular Companies






Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary


Reviews
Interviews
Salaries
Users

