Cognizant Interview QuestionsCognizant is a multinational corporation that provides IT services to different organizations, including digital technology, consulting, operations and all kind of services. It is headquartered in Teaneck, New Jersey, United States. It was founded as in-house technology unit of Dun & Bradstreet in 1994 and started serving external organizations as clients in 1996. It offers the unique learning and work environment with their great learning materials. Cognizant provides an intelligent, digital and tactical approach that transforms the way business gets done without interrupting business as usual. Services provided by Cognizant are like information technology, information security, consulting, ITO and BPO services. These include business & technology consulting, systems integration, application development & maintenance, IT infrastructure services, analytics, business intelligence, data warehousing, customer relationship management, engineering & manufacturing solutions, research, and development outsourcing, and testing solutions. Cognizant has many branches in all over the India as well as outside India. Cognizant recruits its employees in two ways:1. On-campus Recruitment
2. Off-campus Recruitment
Cognizant Interview Pattern for On-campus drives:1. Logical Reasoning
2. Quantitative Aptitude
3. Verbal Ability
4. Automata Fix
Cognizant Interview Pattern for Off-campus drives:1. Aptitude Questions
2. Logical Questions
3. English Questions
4. Coding Questions
Cognizant First RoundAptitude & Logical Questions1) The product of 2 numbers is 2028, and the H.C.F. is 13. The number of such pairs is:
Answer: b Solution: 2) Find the biggest digit which on dividing 1657 and 2037 leaves the remainders 6 and 5 respectively is:
Answer: b Solution: 3) The L.C.M of 2 numbers is 495, and the H.C.F is 5. If the sum of these numbers is 100, then their difference is,
Answer: a Solution: 4) H.C.F and L.C.M of two numbers are 84 and 21 respectively. If the ratio of the two numbers is 1:4, then the larger of the two numbers is
Answer: c Solution: 5) The smallest number is given which is a perfect square and contains 7936 as a factor is:
Answer: c Solution: 6) P is an integer. P is greater than 994. If P -7 is a multiple of 11, then the largest number that will always divide (P+4)(P+15) is
Answer: a Solution: 7) The greatest number that will divide 65, 134 and 224 to leave the same remainder in each case:
Answer: a Solution: 8) What is the smallest four-digit number which when divided by 6, leaves a remainder of 4 and when divided by 4 leaves a remainder of 3?
Answer: d Solution: 9) Sum of money given to a man at compound interest doubles itself within six years. In how much time will it amount to eight times itself?
Answer: c Explanation: 10) A set sum of money amounts to Rs.1500 in 2 years and Rs. 1726 in 4 years. Find the sum
Answer: d Solution: 11) Mina drives from her home to the nearest bus station at an average speed of 80km/h. From the bus station, she boards a bus that takes to her office at a speed of 120km/h. The entire distance covered by her is 92km, and the entire journey took her 1 hour. Find the distance between the bus station from where she boards the bus and her office.
Answer: a Explanation: 12) Straight line between 2 places is 3000m. A person moves with 6/11km/hour from p to q @12pm and another person moves from opposite direction with speed 5/22km/hour from q to p @ 1pm.when they will meet together?
Answer: b Solution: 13) A 270-meter long train running at the speed of 120 km/h crosses the second train running in the opposite direction with the speed of 80 km/h in 9 seconds. What is the length of the second train?
Answer: d Solution: 14) How many seconds will a 500-meter long train moving with a speed of 63 km/hour, take to cross a man walking at a speed of 3 km/hour in the direction of the train?
Answer: c Solution: 15) If ax = by, then:
Answer: c 16) If log x + log y = log (x + y), then:
Answer: d Solution: 17) If 0.5(log a + log b) = log{(a + b)/3}, then define the relation between a and b is:
Answer: a Solution: 18) If log x = log 3 + 2 log 2- (3/4) log 16. The value of x is:
Answer: c Solution: 19) If log x = (1/2) log y = (1/5) log z, the value of x4y3z-2 is:
Answer: c Solution: 20) If log10000 x = -1/4, then x is given by:
Answer: b Solution: 21) A men can do a job within 10 days, working 8 hours a day, if women are 33.33% more efficient than the men. How many women will it take to finish the same job in 10days working 6 hours a day?
Answer: e Solution: 22) How many 5 digit no. can be formed from 0,2,4,5 & 9?
Answer: b Solution: 23) What will be the most significant number which divides 37, 59 and 74 leaving remainder 2, 3 and 4 respectively?
Answer: d Solution: 24) The number of times four used while writing the numbers from 1 to 100 is:
Answer: d Solution: 25) Sum of two numbers is 60, and their product is 120. What is the sum of their reciprocals?
Answer: c Solution: 26) If 13 + 23 + 33 +.... + 103 = 4050, then find the value of 23 + 43 + 63 + .... + 203.
Answer: a Solution: 27) In an exam, 30% of the candidates failed in Science and 45% in History. If 20% failed in both Science and History, then what is the percentage of students who passed in both the subjects?
Answer: b Solution: 28) A, B, C starts a race at the same time and the same point in the same direction in a stadium. A completes a circle in 125 seconds, B in 150 second and C in 100 seconds. After what time will they cross again at the same point?
Answer: a Solution: 29) Consider numbers between 100 and 1000 such that when each number is divided by 6, 7 and 11, it leaves five as the remainder in each case. What is the sum of the numbers?
Answer: c Explanation: 30) Consider some digits in between 10 and 1000 such that when each number is divided by 6, 7 and 11, it leaves five as the remainder in each case. What are the Original numbers?
Answer: a Solution: Cognizant Verbal Ability QuestionsAnalogies: 1) slur : speech : : smudge :?Answer: Writing. 2) Epaulet: shoulder: : ring :?Answer: Finger. 3) Vernacular: place: : fingerprint : ?Answer: Identical. Opposites: 4) CorpulentAnswer: Slim. 5) AdulterateAnswer: To corrupt. 6) AmbidextrousAnswer: Deceitful. The following sentence broke into four Parts - A, B, C, D Choose the part which has an error. 7)
Answer: c. which does not involve (do) 8)
Answer: b. Two plates chicken 9) The succeeding is the batch of questions base on a paragraph or a set of conditions for each issue. Select the best answer choice given.If it is forbidden by law if the object of an agreement is the doing of an act that is prohibited by law the contract is void. 9.1. An algorithm follows a six-step ZA, ZB, ZC, ZD, ZE, ZF, it gives the following
Answer: c 9.2. If ZA set before ZD must place at
Answer: b 9.3. If ZA followed by ZB then ZA can follow the
Answer: c 9.4. If ZE is the third term the number of different operations possible is
Answer: e 10) The following questions base on the given paragraph:Suraj plants six separate saplings -- A, B, C, D, E, F in rows no 1 to 6, according to the following conditions: He must plant A before B and E, He must plant B and D, The third has to be C 10.1. Which of the following is acceptable
Answer: b 10.2. Which of the following is true
Answer: c 10.3. If he plants F first, then which can plant second
Answer: c 10.4. Which describes a correct combination of sapling and row?
Answer: d 10.5. If he plants b 6th which would plant first and second
Answer: a Solution: 10.6. If he plants D before E and after F he should plant D at
Answer: d Solution: 11) At a particular moment, a watch shows 2 min lag although it is running fast. If it showed a 3 min lag at that moment but also gains by 1/2 min more a day than its current speed, it would show the right time one day sooner than it usually does. How many mins does the watch gain per day?
Answer: a Solution: 12) In 400m race A gives B a start of 7 sec and beats him by 24 sec. In another race, A beats B by 10 sec the speeds are in the ratio
Answer: c Solution: 13) Spotting errors in English:
Answer: a Solution: 14) Spotting errors in English:
Answer: a Solution: 15) If VZSCQ can write as 'XBUFS,' then what can write as 'GJSF'?
Answer: a Solution: 16) IF 'DBSJOH' can code as 'FEWHLD' and TIBSFT is coded as 'VLFQWP' how will DBTLFU be coded as in the same code?
Answer: d Solution: 17) When Atul saw Ramesh, he recalled, "He is the son of the father of my daughter." Who is Ramesh?
Answer: a Solution: 18) Two Vehicles start from the different places on a road, 200 km apart.1st car runs for 50 km and takes a left turn and then runs 25 km. It then turns right and then runs for another 35 km and then takes the direction back to reach the road. In the meantime, due to a significant break down the other car has run only 40 km along the way. What would be the distance between two vehicles at this point?
Answer: b 19) A man walks 11 km toward the south and then turns to the right. After walking 2 km, he turns to the left and walks 7 km. And then he goes back 3 km straight. Now in which direction is he from the starting place?
Answer: b Cognizant Technical Interview QuestionsQuestions mainly asked from:
Cognizant C Programming Interview Questions1) What is a pointer? Define it.Pointer is a variable which stores the address of other variables which hold some value in it. Directly pointer is used to point values of variables indirectly. We can manipulate its values. 2) What is a dangling pointer in C?Dangling pointer is a pointer which does not point to a valid object of the appropriate type. It appears when a pointer is in the stack but not in the memory in a heap. Char *p =NULL; A dangling pointer attempt to deallocate without allocating space will result in a segmentation fault. Dangling pointers arise during object destruction, when an object that has an incoming reference is deleted or deallocated, without changing the data of the pointer, so that the pointer points to the memory location of the deallocated memory. 3) What is a memory leak in a heap?When there is a space area in a heap, but no variable is in the stack pointing to that memory. 4) What is a data type?Data Type defines the type of value which are allocated by us to a variable and have a range in between we assign values. E.g., "Int" it is a data type which able to store data between "-32768 to +32768" in C. 5) What is the size of the integer data type?Size of it is 2 Byte or 4 Byte. 6) What is malloc?Allocates requested size of bytes and returned a pointer first byte of allocated space. Malloc is using for dynamic memory allocation. Syntax:7) What is a string?A string is a sequence of characters. It can be defined using the array or by using String header file. 8) "/0" in a string?This symbol shows the ending of the string. E.g. char a[] = {"s","e","t","/0"};. 9) What is recursion?The process by which a method calls itself directly or indirectly, again and again, is called recursion and the corresponding function. 10) What is the difference between a pre-increment operator and post-increment operator?Pre-increment operator used incrementing the variable value by one before assigning the cost to the variable. Post-increment operator use to incrementing the variable value by one after assigning the value to the variable. 11) What are the key features or characteristics OFC language?
12) What is embedded C?Embedded C is the extension of C programming language. Embedded C is used to develop microcontroller-based applications. Embedded C includes features not available in standard C like fixed-point arithmetic, named address spaces, and necessary I/O hardware addressing. Cell phones, MP3 players are some example of embedded systems in which integrated C is used to program and control these devices. 13) Which level is C language belonging?C language is belonging to middle-level language. C language behaves as a bridge between machine level (low level) languages and high-level languages. C language is more user-friendly than machine level languages. And, C language does not support all the concepts that high-level languages offer. So, C programming language called as middle-level language. 14) What is the difference between structured oriented, object-oriented and non-structure oriented programming language?Structured oriented programming language - In this type of language, large codes fragmented into small programs called functions. Object-oriented programming language - In this type of language, programs fragmented into objects Non-structure oriented programming language - There is no specific structure rule for programming this language. 14) What is modifier in C?Modifiers derive the space to allocate for a variable. Modifiers are fixed with basic data types to modify (either increase or decrease) the amount of storage allocated to a variable. For example, storage requirements for int data type are 4 bytes for a 32-bit processor. We can increase range by using long int data type which is 8 byte. We can decrease the range by using short int which is 2 byte. 15) What is the difference between variable declaration and variable definition in C?Variable declaration tells the compiler about data type and size of the variable. Whereas, variable definition allocates memory to the variable Variable can be declared many times in a program. But, the definition can happen only one time for a variable in a program. Variable declaration is for assignment of properties and identification to a variable. Whereas, a variable definition is for assignments of storage space to a variable Cognizant OOPs Interview Questions1) What are virtual Functions?In object-oriented programming, in languages such as C++, and Object Pascal, a virtual function or virtual method is an inheritable and overrideable function or method for which dynamic dispatch facilitated. This concept is an essential part of the (runtime) polymorphism portion of object-oriented programming (OOP). 2) What is overloading in OOPs?Overloading is a process used to avoid redundant code where the same method name used multiple times but with a different set of parameters. The actual method that gets called during runtime is resolved at compile time, thus avoiding runtime errors. 3) What is overriding?In any object-oriented programming, Overriding is a process that allows a child class or subclass to provide a specific implementation of functions that is already provided by one of its super-classes or parent classes. 4) What is polymorphism?By using the ability of polymorphism an object can take on multiple types. The frequent use of polymorphism occurs when a parent class refers to an object of the child class. The Java object that can pass more than one IS-A test is polymorphic. 5) What is data abstraction?In oops, abstraction is one of three main principles (along with encapsulation and inheritance). Through the process of abstraction, a programmer hides all but the relevant data about an object to reduce complexity and increase efficiency. 6) What is encapsulation?Encapsulation is one of the primary concepts in object-oriented programming. It describes the idea of combining data in a single class and methods that work on that data, e.g., a class which is a blueprint in java. This concept is also often used to preserve the internal state, of an object from the outside. 7) What is Inheritance in java?In object-oriented programming, inheritance helps new objects to take on the properties of old objects. A class that uses for inheritance is called a base class or superclass. A class that inherits data from a base class is called a subclass or derived class 8) What is the constructor?A constructor is a method which is used to initialize a newly created object and is called just after when memory allocated to the object. It can be used to implement the objects to desired values or default values at the time of object creation. 9) What is the destructor?A destructor used when the initialized object is destructing it called automatically during the destruction of an object. It helps in recovering the heap space and remove files. Cognizant Data structure Interview Questions1) What is a Data Structure?Data Structure is a process in which management or organization of data that enable a more efficient way to organize the data. 2) What have linked lists?A linked list is a set of ordered data and each of its previous nodes connected to its succeeding node. It is like an array but more efficient then array because we can insert or delete data in between the nodes. 3) Is the array of data structure?Yes, because it also handles the data in a structured way. 4) Define a binary search Tree?It is also known as ordered or sorted binary tree. It keeps there nodes or keys in sort form, and the root node of BST is bigger than the left node and smaller than the right node. 5) What is a Binary Tree in the data structure?A binary tree is part of a data structure that has two sub-nodes, a right node, and a left node. In programming, binary trees are an advanced version of the linked list. 6) What is the dissimilarity between Push and Pop methods of the stack?Pushing and popping applies to the way data is stored and fetched from a stack. A push method denotes data being added to it, meaning information is being "pushed" in the stack. On the other hand, a pop method denotes data retrieval/fetch, and in particular, refers to the first data is being fetched. 7) What is the dissimilarity between a stack and the array?A stack base on LIFO pattern. It means that data access follows a sequential process wherein the last data to be entered when the first one deleted. Arrays do not follow a particular order and instead can access by referring to the indexed element within the array. 8) What are doubly linked Lists?Doubly linked lists are a particular part of linked list wherein traversal across the data elements can be done in any directions. This is possible by having two links in every node, one that connects to the next node and another one that links to the previous node. 9) What is a queue data structure?A Queue is a data structure which is linear and follows a fixed order in which the operations occur. The order is always First In First Out (FIFO). An excellent example of a queue is any queue of the customer for a resource where the customer that came first served first. The difference between stacks and queues is while deleting. 10) What is a stack data structure?Basic features of Stack are an ordered list of the similar data type. The stack is LIFO (Last In First Out) data structure, or we can say FILO (First In Last Out) data structure. Push () method is used to insert/enter new elements into the Stack and pop() method is used to remove/delete an element from the stack. 11) What is a graph in the data structure?A graph shows a representation of a set of objects/nodes where some pairs of object/nodes are connected by links/connection. The interconnection of objects are represented by points termed as vertices, and the links that connect the vertices are called edges. 12) What is a priority queue?A priority queue is an abstracted data type which is like a queue or stack data structure, but where additionally each element has a "priority" associated with it. In a priority queue, an element with high priority is served before an element with low priority. 13) Show the time complexity of the linked list during insertion?The time complexity of insertion/deletion in a singly linked list depends upon the position where you want to perform them. For example, if you want to insert an element at the end of the linked list, then you have to traverse/travel the entire list, and hence the complexity will be O(n). Cognizant Programming Questions1) Write a program to reverse any number.This code below is written in Java. 2) Write a program to find out some of the digits of the given number.3) Write a program to find out the power of a number.4) Write a program to add two numbers without using the addition operator.5) Write a program to subtract two numbers without using a subtraction operator.6) Write a program to show largest among three numbers using binary minus operator.7) Write a program to show the largest among three numbers using conditional operator.8) Write a program to show the generic root of any number.9) Write a c program to show the prime factor of a given number.Cognizant HR Interview Questions
Click here for: HR Interview Questions and Answers |