Cognizant Interview Experience | Set 5 (On Campus for Associate)
Last Updated : 22 Aug, 2018
Round 1: Online Test on AMCAT
There were 4 sections : Critical Reasoning, Data Interpretation, English Comprehension and Automata (2 Coding Questions)
First 3 sections were of average level and last section had 2 coding questions like pattern printing, finding gcd, alternate sort, finding count of numbers which are present in one array but not in the other array.
Find an index in an array such that the sum of elements at its left side is equal to the sum of elements at its right side Equilibrium index of an array
2 list of items with their prices were given. Find the no. of items which are present in both lists but with different prices.
Constructor and methods had to be written. It was similar to the example in this link with class Shape. Overloading
33 got shortlisted after this round.
Round 3: Technical Round
Tell me about yourself.
What is the difference between concatenation of strings using '+' and Stringbuffer. Advantages and Disadvantages of both and the instances where one would perform better than the other.
Which function is used to make sure that the script executes after whole HTML is loaded. (Javascript was mentioned in CV)
Project Discussion
If Serial no. has to be Primary Key in a Database, should it be stored in a varchar or number datatype.
Some questions were asked about how hashing works and its uses.
Toughest question which u have solved in Competitive Programming
Which optional subjects have you studied till now (Operational Research and Graph Algorithms)
How would you ensure efficient query retrieval in a Graph Database.(Related to Graph Algorithms)