i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I appeared for an interview in Dec 2021.
Round duration - 180 Minutes
Round difficulty - Medium
Coding question 2 easy,1 hard
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...
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
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 ...
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
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...
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'
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
You are given a string STR
which contains alphabets, numbers, and special characters. Your task is to reverse the string.
STR = "abcde"
"e...
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.
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
Tip 1 : mention your project
Tip 2 : mention your skills
I applied via Company Website and was interviewed before Jul 2020. There were 5 interview rounds.
I applied via Naukri.com and was interviewed in Aug 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Jul 2020. There was 1 interview round.
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...
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 }
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...
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
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
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.
I applied via Recruitment Consultant and was interviewed in May 2021. There were 3 interview rounds.
I applied via Job Fair and was interviewed before May 2021. There were 2 interview rounds.
I applied via Approached by Company and was interviewed before Dec 2021. There were 3 interview rounds.
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.
I applied via Naukri.com and was interviewed before Oct 2021. There were 3 interview rounds.
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 ...
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 ...
General questions for 1 hors online exams
based on 1 interview
Interview experience
based on 13 reviews
Rating in categories
Associate
72.1k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
Programmer Analyst
55.5k
salaries
| ₹2.4 L/yr - ₹9.4 L/yr |
Senior Associate
49.4k
salaries
| ₹8.9 L/yr - ₹28 L/yr |
Senior Processing Executive
29k
salaries
| ₹1.8 L/yr - ₹9 L/yr |
Technical Lead
17.6k
salaries
| ₹5.9 L/yr - ₹21 L/yr |
TCS
Infosys
Wipro
Accenture