Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Cognizant Team. If you also belong to the team, you can get access from here

Cognizant Verified Tick

Compare button icon Compare button icon Compare

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Cognizant Trainee Analyst Interview Questions, Process, and Tips

Updated 31 May 2022

Top Cognizant Trainee Analyst Interview Questions and Answers

  • Q1. Minimum Stops for Ninja's Journey Problem Statement Ninja wishes to travel from his house to a destination X miles away. He knows there are Y gas stations along the way, ...read more
  • Q2. Reverse the String Problem Statement You are given a string STR which contains alphabets, numbers, and special characters. Your task is to reverse the string. Example: I ...read more
  • Q3. Black Friday Discount Challenge Imagine it's Black Friday and a supermarket is offering a discount to every 'Nth' customer. You are tasked with calculating bills for cus ...read more

Cognizant Trainee Analyst Interview Experiences

2 interviews found

I appeared for an interview in Dec 2021.

Round 1 - Coding Test 

(3 Questions)

Round duration - 180 Minutes
Round difficulty - Medium

Coding question 2 easy,1 hard

  • Q1. 

    Minimum Stops for Ninja's Journey Problem Statement

    Ninja wishes to travel from his house to a destination X miles away. He knows there are Y gas stations along the way, each station i located at a distan...

  • Ans. 

    Calculate the minimum number of refueling stops needed for a ninja to reach a destination with given gas stations and starting fuel.

    • Iterate through gas stations while maintaining current fuel level and number of stops made

    • Refuel at each station if necessary to ensure enough fuel to reach the next station or destination

    • Keep track of the minimum number of stops needed to reach the destination

  • Answered by AI
  • Q2. 

    Black Friday Discount Challenge

    Imagine it's Black Friday and a supermarket is offering a discount to every 'Nth' customer. You are tasked with calculating bills for customers based on product prices and ...

  • Ans. 

    The challenge involves calculating bills for customers on Black Friday based on discounts for every 'Nth' customer.

    • Implement 'blackFriday' function to initialize discount for every Nth customer

    • Implement 'generateBill' function to calculate total bill for each customer's purchase

    • Consider input constraints and generate final bill amounts for each customer in each test case

  • Answered by AI
  • Q3. 

    Ninja and His Secret Information Encoding Problem

    Ninja, a new member of the FBI, has acquired some 'SECRET_INFORMATION' that he needs to share with his team. To ensure security against hackers, Ninja dec...

  • Ans. 

    The task is to determine if the encoding and decoding process of 'SECRET_INFORMATION' is successful.

    • Read the number of test cases 'T'

    • For each test case, encode the 'SECRET_INFORMATION' and then decode it

    • Compare the decoded string with the original 'SECRET_INFORMATION'

    • Print 'Transmission successful' if they match, else print 'Transmission failed'

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 30 Minutes
Round difficulty - Easy

Asked me how to reverse string,tell me about yourself,visualise data structures in real life,dbms questions easy one

  • Q1. 

    Reverse the String Problem Statement

    You are given a string STR which contains alphabets, numbers, and special characters. Your task is to reverse the string.

    Example:

    Input:
    STR = "abcde"
    Output:
    "e...
  • Ans. 

    Reverse a given string containing alphabets, numbers, and special characters.

    • Iterate through the string from the end to the beginning and append each character to a new string.

    • Use built-in functions like reverse() or slicing to reverse the string.

    • Handle special characters and numbers while reversing the string.

    • Ensure to consider the constraints provided in the problem statement.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Bharati Vidyapeeth's College of Engineering. I applied for the job as Analyst Trainee in GurgaonEligibility criteriaAbove 70 percent marksCognizant interview preparation:Topics to prepare for the interview - Basic of data structures, OOPS theory, classes, python, dbmsTime required to prepare for the interview - 1 MonthInterview preparation tips for other job seekers

Tip 1 : don't get afraid
Tip 2 : keep your machine ready, there should not be technical probelem like mic not working
Tip 3 : dress well

Application resume tips for other job seekers

Tip 1 : mention your project
Tip 2 : mention your skills

Final outcome of the interviewSelected

Skills evaluated in this interview

I applied via Company Website and was interviewed before Jul 2020. There were 5 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Basic OOPs

Interview Preparation Tips

Interview preparation tips for other job seekers - Just prepare what you have given in resume

Trainee Analyst Interview Questions Asked at Other Companies

asked in Cognizant
Q1. Minimum Stops for Ninja's Journey Problem Statement Ninja wishes ... read more
asked in Cognizant
Q2. Reverse the String Problem Statement You are given a string STR w ... read more
asked in Cognizant
Q3. Black Friday Discount Challenge Imagine it's Black Friday and a s ... read more
asked in Cognizant
Q4. Ninja and His Secret Information Encoding Problem Ninja, a new me ... read more
asked in Deloitte
Q5. Explain your projects !! Which Programming languages do u know ? ... read more

Interview questions from similar companies

I applied via Naukri.com and was interviewed in Aug 2020. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Past experience and communication skills

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident

I applied via Naukri.com and was interviewed before Jul 2020. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. Coming to AEM,Interviewer has covered all the topics.

Interview Preparation Tips

Interview preparation tips for other job seekers - Pls don't join in TechMahindra.Especially for AEM Folks.Because there are no projects at all.They force you to learn and work in other domain.Then your AEM knowledge will vanish.Worst Company.

Interview Questionnaire 

6 Questions

  • Q1. Explain abstract factory design pattern ?
  • Ans. 

    Abstract Factory is a creational design pattern that provides an interface for creating families of related objects.

    • Abstract Factory is used when we need to create families of related objects without specifying their concrete classes.

    • It provides an interface for creating objects of related classes without specifying their concrete classes.

    • It encapsulates a group of factories that have a common theme.

    • It promotes loose c...

  • Answered by AI
  • Q2. How do you do range based map iteration
  • Ans. 

    Range based map iteration can be done using a for-each loop or iterators.

    • Use a for-each loop to iterate over the map elements.

    • Alternatively, use iterators to traverse the map.

    • The range-based for loop is preferred for its simplicity and readability.

    • Example: for(auto const& [key, value] : myMap) { //do something with key and value }

  • Answered by AI
  • Q3. What are detached and joined threads
  • Ans. 

    Detached threads are independent threads that run separately from the main thread. Joined threads are threads that wait for the main thread to finish.

    • Detached threads are created using pthread_detach() function

    • Joined threads are created using pthread_join() function

    • Detached threads do not need to be explicitly terminated

    • Joined threads must be explicitly terminated using pthread_exit() or return statement

    • Detached thread...

  • Answered by AI
  • Q4. What are static code analysis tools
  • Ans. 

    Static code analysis tools are software programs that analyze source code to find potential issues and improve code quality.

    • Static code analysis tools scan code without executing it

    • They can detect issues such as security vulnerabilities, coding errors, and performance problems

    • Examples of static code analysis tools include SonarQube, ESLint, and Checkstyle

  • Answered by AI
  • Q5. Command to list currently running threads in linux
  • Ans. 

    Command to list currently running threads in linux

    • Use the 'ps' command with the 'H' option to display threads in a hierarchy

    • Use the 'top' command to display threads in real-time

    • Use the 'htop' command for an interactive display of threads

  • Answered by AI
  • Q6. Can we perform arithmetic operation on Unique pointer
  • Ans. 

    No, arithmetic operations cannot be performed on unique pointers.

    • Unique pointers are used to manage the lifetime of dynamically allocated objects.

    • They cannot be copied or assigned, only moved.

    • Arithmetic operations are not defined for pointers, including unique pointers.

  • Answered by AI

Skills evaluated in this interview

Interview Questionnaire 

3 Questions

  • Q1. About skilla
  • Q2. Project
  • Q3. Roles in

I applied via Recruitment Consultant and was interviewed in May 2021. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. All questions related to Digital and networks and they asked core java question like functional interface uses and why do we need it and difference with interface

Interview Preparation Tips

Interview preparation tips for other job seekers - Interview was quite good

I applied via Job Fair and was interviewed before May 2021. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - HR 

(1 Question)

  • Q1. What is your job role

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident and strive hard to achieve what you desire

I applied via Approached by Company and was interviewed before Dec 2021. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. What is n-tier architecture
  • Ans. 

    n-tier architecture is a software design pattern that divides an application into logical layers.

    • It separates presentation, application processing, and data management functions.

    • Each layer can be developed and maintained independently.

    • Examples include 3-tier and 4-tier architectures.

    • It improves scalability, maintainability, and flexibility of the application.

  • Answered by AI
Round 3 - HR 

(1 Question)

  • Q1. What is your expectation from company

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident while answering the questions and answers

I applied via Naukri.com and was interviewed before Oct 2021. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(2 Questions)

  • Q1. What is AD dns dhcp?
  • Ans. 

    AD DNS DHCP are Microsoft technologies used for network management and authentication.

    • Active Directory (AD) is a directory service used for authentication and authorization of users and computers in a network.

    • Domain Name System (DNS) is used for name resolution of network resources.

    • Dynamic Host Configuration Protocol (DHCP) is used for automatic IP address assignment to network devices.

    • AD, DNS, and DHCP are often used ...

  • Answered by AI
  • Q2. What is IaaS SaaS PaaS?
  • Ans. 

    IaaS, SaaS, and PaaS are cloud computing models that provide different levels of infrastructure, software, and platform services.

    • IaaS (Infrastructure as a Service) provides virtualized computing resources over the internet, such as servers, storage, and networking.

    • SaaS (Software as a Service) delivers software applications over the internet, eliminating the need for local installation and maintenance.

    • PaaS (Platform as ...

  • Answered by AI
Round 3 - Aptitude Test 

General questions for 1 hors online exams

Interview Preparation Tips

Interview preparation tips for other job seekers - be confident in your role and select which role you want to work

Skills evaluated in this interview

Tell us how to improve this page.

Cognizant Trainee Analyst Interview Process

based on 1 interview

Interview experience

4
  
Good
View more

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.5k Interviews
Accenture Interview Questions
3.8
 • 8.2k Interviews
Infosys Interview Questions
3.6
 • 7.6k Interviews
Wipro Interview Questions
3.7
 • 5.6k Interviews
Capgemini Interview Questions
3.7
 • 4.8k Interviews
Tech Mahindra Interview Questions
3.5
 • 3.9k Interviews
HCLTech Interview Questions
3.5
 • 3.8k Interviews
Genpact Interview Questions
3.8
 • 3.1k Interviews
IBM Interview Questions
4.0
 • 2.4k Interviews
DXC Technology Interview Questions
3.7
 • 796 Interviews
View all
Cognizant Trainee Analyst Salary
based on 72 salaries
₹2 L/yr - ₹4.5 L/yr
16% less than the average Trainee Analyst Salary in India
View more details

Cognizant Trainee Analyst Reviews and Ratings

based on 13 reviews

4.1/5

Rating in categories

3.5

Skill development

3.6

Work-life balance

3.7

Salary

3.9

Job security

3.8

Company culture

3.5

Promotions

3.6

Work satisfaction

Explore 13 Reviews and Ratings
Associate
72.1k salaries
unlock blur

₹5.1 L/yr - ₹16 L/yr

Programmer Analyst
55.5k salaries
unlock blur

₹2.4 L/yr - ₹9.4 L/yr

Senior Associate
49.4k salaries
unlock blur

₹8.9 L/yr - ₹28 L/yr

Senior Processing Executive
29k salaries
unlock blur

₹1.8 L/yr - ₹9 L/yr

Technical Lead
17.6k salaries
unlock blur

₹5.9 L/yr - ₹21 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.7
Compare

Infosys

3.6
Compare

Wipro

3.7
Compare

Accenture

3.8
Compare
Did you find this page helpful?
Yes No
write
Share an Interview