Barclays Codility Test Questions Java



First there was an online test.

Online Round: The test consisted of 30 MCQs and 2 Coding questions. MCQs were based on Java, C, Python, DBMS, and some aptitude questions. Java solution to Codility MissingInteger problem (Lesson 4 – Counting Elements) which scored 100%. The problem is to find the smallest positive integer that does not occur in a given array. The main strategy is to use two java.util.TreeSets, which order their elements: 1) a perfect set and 2) the actual set and check for the. I applied through a recruiter. The process took 1 day. I interviewed at Barclays (New York, NY) in August 2018. The interview started with a short talk about my previous experience according to the resume, then moved on to a 'write a function' test on a shared screen (sorted merge), the interviewer asked a couple of technical questions. Java solution to Codility OddOccurrencesInArray problem (Lesson 2 – Arrays) which scored 100%. The problem is to find the single unpaired element in an odd numbered integer array. A brute force method will take too long so I had to find a more creative solution. The main strategy is to use a hash table to.

AnswersQuestions

Java solution to Codility MaxCounters problem (Lesson 4 – Counting Elements) which scored 100%. The problem is to calculate the final values of counters in an array, after applying a sequence of two different operations: 1) increment a specific counter by 1 and 2) set all counters to the maximum of any counter.

Barclays Codility Test Questions Java
  • It consisted of one coding question and 6 sections including verbal, output questions, aptitude questions etc. Worst thing about test was you cannot navigate back to the question.
There were 3 rounds in total out of which first was a group activity. It was a non-elimination round. We were divided into groups of 5 and were asked to build a house of cards. It was fun. But there was a invigilator who was observing each of our activity, how we work in a team etc.Then there was a technical round. My round went on around 60-80 min.
Codility questions and answers java
  • First he asked me in detail about my recent project. He asked which technology I used, what are advantages of this technology, what challenges I faced etc. Here I would suggest you to deeply study whatever you are putting in your resume because you should be able to answer reasonably whatever is given in your resume.
  • Then he asked me to write a program to find greater of 2 dates with all if else loops without any mistake.
  • Then he asked me to give a data structure to store when there are millions of data and we want it to be search efficient. I told hashmap. Then he asked me how hashmap is implemented.
  • Then he asked is there a better data structure to handle duplicates. I first answered BST, but he said BST is mainly used when we want our to be in sorted order which was right. I couldn’t think of any better data structure which I frankly told him. He only answered this question. It’s answer is to use SETS.
  • Then he started asking about OOPS.
  • First he asked what is inheritance. I answered him with an example. Then he asked about interface and why java doesn’t allow multiple inheritance.
  • Then he asked the term for redefining the function. I told him it’s called overloading.
  • Then he asked me what is the difference between overloading and overriding. I answered when we redefine the function in same class it’s called overloading but when we redefine the function in derived class it’s called overriding.
  • He asked what are the constraints on arguments number and datatype in these two cases. In overloading you can redefine the function with different number of arguments and datatype but in overriding you cannot change it.
  • He asked can we have function overloading with different return types. I said no as it is not allowed in either c++ or java.Actually it is allowed when the argument list is changed
  • He asked what is third normal form which is DBMS question. This switch was so sudden. But I answered him and he looked satisfied.
This was all from my technical interview. Then he asked me to wait outside. After half an hour they called me for HR interview.
HR Interview
My HR interview was really good. First he asked me to tell about myself and asked my family background.
Then he asked my how did I change myself after coming to college and how did I improve my communication skills. (This question was because I mentioned that I had my education till 10th in marathi medium).
He asked me about my hobbies and what is my passion.
There are 5 core values of barclays RISES (Respect, Integrity, Service, Excellence, Stewardship) which they really focus on. So I would suggest you to go through their site before going for the interview.
  • He asked me how would you contribute to integrity.
  • Then he asked me if I have done some leadership roles.
  • He asked me how is my interaction with juniors.
  • Finally he asked if I have any questions.

Codility Questions And Answers

After all interviews were over they announced the result and I was selected. I was really happy. I would suggest everybody that whatever you will tell you should be confident about it. In HR give an example for each of your statement because interviewer seems satisfied if you provide an example showcasing your skills. Before going for the interview go through your resume and be prepared to answer everything you have put in your resume. I would suggest not to put something which you have never worked on or you are not confident about because interviewers are experienced people who can catch such things easily.

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above

Recommended Posts:

People Also Ask

Codility tests you on your algorithmic thinking with heavy time constraints. To bypass the system, think out-of-the box. Take the test offline: make a screenshot of the questions, code in your own IDE and then send your solution to the company directly instead of submitting it to the Codility system.. Readmore ››
Java solution to Codility BinaryGap problem (Lesson 1 – Iterations) which scored 100%. The problem is to find the longest sequence of zeros in a binary representation of an integer. The main strategy is: TestNG test cases for this problem which all passed: import org.testng.annotations.*;. Readmore ››
Here is [ codility-lesson-solutions ] the most complete list of all the solutions to codility problems. Solutions are very well implemented and contains almost all the problems, i have personally used this and was really surprised. Hope it will help you as well. Good luck. I found that C code. C code run.. Readmore ››

Codility Test Java

Here Coding compiler sharing a list of 60 core java and advanced java multiple choice questions and answers for freshers and experienced. These java multiple choice interview questions asked in various java interview exams. We hope that this list of java mcq questions will help you to crack your next java mcq online test.. Readmore ››