Kongsberg Digital
Ericsson Interview Questions and Answers
Q1. Write a program to print number of occurrences of each element in an array.
Program to count occurrences of each element in an array of strings.
Create a dictionary to store the count of each element.
Loop through the array and update the count in the dictionary.
Print the count of each element from the dictionary.
Q2. How to handle Alerts, Windows, iframes.
To handle Alerts, Windows, iframes, we need to switch to their respective contexts.
Use driver.switchTo().alert() to handle alerts.
Use driver.switchTo().window() to handle windows.
Use driver.switchTo().frame() to handle iframes.
To switch back to the default content, use driver.switchTo().defaultContent().
Q3. Find duplicate from an array, find the number of occurrences of a number In an array, and 3-4 more questions like this
Array manipulation questions for Senior Development Engineer role
To find duplicates in an array, use a hash table or sort the array and compare adjacent elements
To find the number of occurrences of a number, iterate through the array and count the occurrences
Other questions could involve sorting an array, finding the maximum or minimum value, or reversing an array
Q4. Give Introduction
I am a motivated and enthusiastic individual with a strong background in marketing and a passion for creativity.
Strong background in marketing
Passion for creativity
Motivated and enthusiastic individual
Q5. Why do we use deligates
Delegates are used to achieve loose coupling and separation of concerns in software development.
Delegates allow methods to be passed as parameters to other methods.
They enable event-driven programming.
They facilitate the implementation of the observer pattern.
They enable the creation of anonymous methods.
They allow for the implementation of callback functions.
They enable the creation of extensible and modular code.
They allow for the implementation of inversion of control and ...read more
Q6. Sorting an array
Sorting an array involves arranging its elements in a specific order.
Choose a sorting algorithm based on the size and type of the array.
Common sorting algorithms include bubble sort, insertion sort, and quicksort.
Implement the chosen algorithm in code.
Test the sorting function with different arrays to ensure it works correctly.
Interview Process at Ericsson
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month