i
Amdocs
Filter interviews by
A JUnit test case verifies the functionality of a Java method using assertions to check expected outcomes.
Use @Test annotation to define a test method.
Utilize assertions like assertEquals, assertTrue, etc., to validate results.
Example: @Test public void testAddition() { assertEquals(5, add(2, 3)); }
Use @Before to set up any necessary preconditions before tests.
Use @After to clean up resources after tests.
Arrays are fixed in size, while ArrayLists can dynamically resize. ArrayLists are part of Java's Collection framework.
Arrays are fixed in size, while ArrayLists can dynamically resize.
Arrays can hold primitive data types and objects, while ArrayLists can only hold objects.
Arrays use square brackets [] for declaration, while ArrayLists use the ArrayList class from the java.util package.
Example: String[] names = new...
Binary search is an efficient algorithm for finding a target value within a sorted array.
Requires a sorted array to function correctly.
Divides the search interval in half repeatedly.
Example: Searching for '5' in [1, 2, 3, 4, 5, 6] results in index 4.
Time complexity is O(log n), making it faster than linear search.
Microservices are best used when you have a large, complex application that can be broken down into smaller, independent services.
Use microservices when you need to scale different parts of your application independently.
Microservices are beneficial when you have multiple teams working on different services.
They are useful when you want to adopt different technologies for different services.
Microservices can impro...
What people are saying about Amdocs
Greybox testing involves partial knowledge of internal code, while black box testing is based on external behavior.
Greybox testing combines elements of white box and black box testing.
Black box testing focuses on testing the functionality of the software without knowledge of internal code.
Greybox testing is useful when some knowledge of internal code is needed to design test cases.
Examples of greybox testing inclu...
Weblogic software can be installed by downloading the installer, running the installation wizard, configuring settings, and starting the server.
Download the Weblogic software installer from the official website
Run the installer and follow the installation wizard prompts
Configure settings such as domain creation, server settings, and security configurations
Start the Weblogic server to begin using the software
Abstract methods in interfaces are methods without a body that must be implemented by classes that implement the interface. Default methods provide a default implementation that can be overridden.
Abstract methods in interfaces do not have a body and must be implemented by classes that implement the interface.
Default methods in interfaces provide a default implementation that can be overridden by implementing class...
Joins in SQL combine rows from two or more tables based on related columns.
INNER JOIN: Returns records with matching values in both tables. Example: SELECT * FROM A INNER JOIN B ON A.id = B.id;
LEFT JOIN: Returns all records from the left table and matched records from the right table. Example: SELECT * FROM A LEFT JOIN B ON A.id = B.id;
RIGHT JOIN: Returns all records from the right table and matched records from t...
Encapsulation is a mechanism of wrapping data and code acting on the data together as a single unit.
Encapsulation is one of the four fundamental OOP concepts.
It helps in achieving data hiding and abstraction.
In Java, encapsulation is achieved through access modifiers such as private, public, and protected.
Example: A class with private variables and public methods to access and modify those variables.
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reusability and saves time and effort in writing new code.
The existing class is called the parent or base class, and the new class is called the child or derived class.
The child class inherits all the properties and methods of the parent class and can also add...
I appeared for an interview in Dec 2020.
Round duration - 120 Minutes
Round difficulty - Medium
The test included MCQ questions from SQL, Linux Commands, C/C++ programming, Logical Reasoning, Aptitude questions.
The other section was the coding round, where 2 SQL queries and 2 coding questions were there.
The environment was pretty good. No technical issues were there
You are provided with ‘N’ types of umbrellas, where each umbrella type can shelter a certain number of people. Given an array UMBRELLA
that indicates the number of people each um...
The problem involves determining the minimum number of umbrellas required to shelter a specific number of people based on the capacity of each umbrella.
Iterate through the array of umbrella capacities to find the combination that covers exactly 'M' people.
Keep track of the minimum number of umbrellas used to cover 'M' people.
If it is not possible to cover 'M' people exactly, return -1.
Example: For input [2, 3, 4] and M...
Given an array ARR
consisting of 0s and 1s only, your task is to determine the number of non-empty subarrays where the number of 0s and 1s are equal.
Count the number of subarrays where the number of 0s and 1s are equal in a given array of 0s and 1s.
Iterate through the array and keep track of the count of 0s and 1s encountered so far.
Use a hashmap to store the count of 0s and 1s encountered at each index.
For each index, check if the count of 0s and 1s encountered so far are equal. If yes, increment the result count.
Return the final count of subarrays where the numbe...
Round duration - 60 Minutes
Round difficulty - Medium
The technical round was totally based on resume submitted by us during registration. They asked in depth questions related to the technical internship done by me in past. The discussion related to the technical internship went for 20 minutes. They saw the working of my project deployed on Heroku platform and done a good discussion on that too. Then they give me a coding question based on recursion and I was supposed to write the code on Hirepro platform itself. I was asked 3 puzzles also in order to check my problem solving. The interviewers were friendly and they provide a friendly environment during the interview.
Reverse a given stack of integers using recursion. You must accomplish this without utilizing extra space beyond the internal stack space used by recursion. Additionally, you ...
Reverse a given stack of integers using recursion without using extra space or loops.
Use recursion to pop all elements from the original stack and store them in function call stack
Once the stack is empty, push the elements back in reverse order using recursion
Use the top(), pop(), and push() methods to manipulate the stack
Tip 1 : Practice coding questions from HackerRank, InterviewBit,
Tip 2 : Do at least 1 project and must have the in depth knowledge about it
Tip 3 : One should also do one technical internship. It adds to the working experience we get during our degree
Tip 4 : Very good communication skills are mandatory. Practice a lot to speak in formal english
Tip 5 : Prepare CS subjects like OOPS, RDMS. One must have in depth knowledge about these subjects.
Tip 1 : Everything written on the resume should not be false. There should be atleast one project and one technical internship
Tip 2 : Skills related to various CS subjects and Programming languages should also be mentioned
Tip 3 : Skills related to participation in various co-curricular activities leaves a good impact on the interviewer
I applied via Monster and was interviewed before Apr 2020. There was 1 interview round.
A generic swap function swaps two values of any data type.
The function should take two parameters of any data type.
Use a temporary variable to store the value of one parameter.
Assign the value of the second parameter to the first parameter.
Assign the value of the temporary variable to the second parameter.
Search for an element in a rotated sorted linked list.
Find the pivot point where the list is rotated.
Divide the list into two sublists based on the pivot point.
Perform binary search on the appropriate sublist.
Handle edge cases such as empty list and list with only one element.
Search an element in a rotated sorted array
Find the pivot point where the array is rotated
Divide the array into two sub-arrays based on pivot point
Perform binary search on the appropriate sub-array
Repeat until element is found or sub-array size is 1
Given a Sudoku board, find possible numbers for an empty cell.
Iterate through empty cells and check possible numbers using row, column, and box constraints.
Use a set to keep track of possible numbers for each empty cell.
Return the set of possible numbers for the given empty cell.
Find integer average of 4 unsigned integers without typecasting
Add all the integers and divide by 4
Use bit shifting to divide by 4
Handle overflow by using long long data type
Use unsigned int data type for input
Code to identify 32 bit or 64 bit architecture of a processor
Check if the operating system is 32 bit or 64 bit
If OS is 32 bit, processor is 32 bit
If OS is 64 bit, check if processor supports 64 bit architecture
Use CPUID instruction to check if processor supports 64 bit architecture
Convert binary number to base 64 integer
Divide the binary number into groups of 6 bits
Convert each group of 6 bits to decimal
Map the decimal value to the corresponding base 64 character
Concatenate the base 64 characters to form the final integer
Creating test cases for random scenarios ensures software reliability and robustness through diverse input validation.
Identify edge cases: Test with minimum and maximum input values, e.g., an empty array vs. a large array.
Use random data: Generate random inputs to simulate real-world usage, e.g., random user names or passwords.
Test invalid inputs: Ensure the system handles unexpected inputs gracefully, e.g., negative n...
What people are saying about Amdocs
posted on 15 Nov 2015
I applied via Campus Placement
Print all downward paths from any node in a binary tree with sum of elements equal to N.
Traverse the binary tree and keep track of the sum of elements in the path from root to current node.
If the sum equals N, print the path from root to current node.
Recursively traverse the left and right subtrees with updated sum.
Use a stack to keep track of the current path being traversed.
Example: Binary tree with root 1, left chil...
Yes, it is possible to get the accurate result from the given data.
The coordinates (i,j,k) where metallic balls are present can be determined by finding the set elements in both matrix1 and matrix2.
Additional data is not required as the given data is sufficient to determine the coordinates.
The coordinates can be obtained by iterating through the elements of matrix1 and matrix2 and checking for set elements.
posted on 15 Nov 2015
Backend server code for a tic tac toe game
Create a RESTful API using a framework like Express.js
Implement game logic to check for winning conditions
Use a database to store game state and user information
Handle user authentication and authorization
Implement real-time updates using WebSockets
Program to store and reconstruct a tree from a file with efficient techniques.
Use a recursive approach to traverse the tree and write each node to the file
Include information about the node's parent and children in the file
Use a unique identifier for each node to reconstruct the tree from the file
Use a data structure like a hash table to store the nodes and their identifiers for efficient reconstruction
posted on 19 Nov 2015
posted on 23 Aug 2015
I applied via Campus Placement
To find n-k th element from last in a string of unknown length
Traverse the string to find its length
Calculate the position of n-k th element from last
Traverse the string again to find the element at calculated position
Count the number of unique occurrences in an array of strings.
Create a hash table to store the count of each string occurrence.
Iterate through the array and update the count in the hash table.
Count the number of unique occurrences by counting the number of keys in the hash table.
posted on 23 Aug 2015
I applied via Campus Placement
Some of the top questions asked at the Amdocs Software Engineer interview for internship -
The duration of Amdocs Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 213 reviews
Rating in categories
Software Developer
8.5k
salaries
| ₹5 L/yr - ₹17.7 L/yr |
Software Engineer
1.9k
salaries
| ₹4.5 L/yr - ₹17 L/yr |
Softwaretest Engineer
1.8k
salaries
| ₹3.8 L/yr - ₹14.5 L/yr |
Functional Test Engineer
1.2k
salaries
| ₹4 L/yr - ₹12.3 L/yr |
Associate Software Engineer
1k
salaries
| ₹3.7 L/yr - ₹12 L/yr |
TCS
IBM
Oracle
Carelon Global Solutions