Give an API: int read4(char *buf) which reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it returns 3 if there is only 3 characters left in the file. By using the read4 API, implement the function int read(char *buf, int n) that reads n characters from the file.
Engineer Senior Interview Questions
107,122 engineer senior interview questions shared by candidates
1. Implement LinkedHashMap , how does it ensure O(1) for a get call. 2. Sort employee list , sorting can be applied on name,salary that will be decided on runtime. So we need to implement multiple comparators and pass the same to Collections.sort(list,new ComparatorName()). 3. In the above list make sure there is no duplicates, if fname and lname are same, they are duplicates.
Write a program to remove vowels from a given string
why you want to leave your previous company?
Interface , Abstract Class , SQL performance , Query optimization , Select nth record using 3 different ways
I was asked to to participate in several thought experiments. They were cleverly designed for you to showcase your skillset.
Compare 2 dates and return if they are equals ,difference between them is greater than month or less than a month. we could choose our own method arguments and return type .
How much SolidWorks experience do you have?
Pourquoi Semafo
What is DHCP and how do implement it when server and client are in different networks
Viewing 321 - 330 interview questions