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
3.8

based on 48.3k Reviews

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Cognizant Golang Developer Interview Questions and Answers

Updated 29 Apr 2021

Cognizant Golang Developer Interview Experiences

1 interview found

I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. What are goroutines
  • Ans. 

    Goroutines are lightweight threads of execution in Go.

    • Goroutines are functions that can run concurrently with other functions.

    • They are cheap to create and can be used to handle multiple tasks simultaneously.

    • They communicate with each other using channels.

    • Goroutines are managed by the Go runtime and can be scheduled on multiple processors.

    • Example: go func() { fmt.Println("Hello, world!") }()

    • Example: go func() { result :...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Be strong with basics

Interview questions from similar companies

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. Asked to explain project
  • Q2. What is GRPC? where it is used?
  • Ans. 

    gRPC is a high-performance, open-source RPC framework developed by Google.

    • gRPC stands for Google Remote Procedure Call.

    • It uses HTTP/2 for transport, Protocol Buffers for serialization, and supports multiple programming languages.

    • gRPC is commonly used for building efficient and scalable microservices.

    • It allows for bidirectional streaming and authentication features.

    • Examples of companies using gRPC include Google, Netfli

  • Answered by AI
  • Q3. What is concurrency, Race condition?
  • Ans. 

    Concurrency is the ability of a program to execute multiple tasks simultaneously. Race condition occurs when multiple threads access shared data and try to change it at the same time.

    • Concurrency allows multiple tasks to run in parallel, improving performance and efficiency.

    • Race condition happens when multiple threads access and modify shared data without proper synchronization.

    • To prevent race conditions, synchronizatio...

  • Answered by AI

Interview Preparation Tips

Topics to prepare for HCLTech Golang Developer interview:
  • golang
  • grpc
  • concurrancy

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Company Website and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Coding Test 

Asked mostly on grpc.
Couple of coding questions like write the protobuf file for interfaces and gave a string from which asked to find out the valid IP address in that string.

Interview experience
3
Average
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Approached by Company and was interviewed in Oct 2024. There was 1 interview round.

Round 1 - Coding Test 

Golang Basics, DBMS, Channels, Unit Test

Interview Preparation Tips

Topics to prepare for Capgemini Golang Developer interview:
  • Unit Testing
  • Channels
  • Database
  • Kubernetes
  • Jenkins
  • API
  • System Design
  • Receivers
  • Properties File
Interview preparation tips for other job seekers - Asked for Write Unit Test,
How you can values from properties files,
What are channels?
What are receivers?
Golang Basics
ORM
Database - Left Outer Join,etc
Jenkins, Kubernetes, Version Control
API
System Design Patterns
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
-
Result
-
Round 1 - Coding Test 

1) Search an array element
2) braces balance program
3) anagrams Program

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(5 Questions)

  • Q1. What is map and how it i useful
  • Ans. 

    A map is a built-in data structure in Golang that allows you to store key-value pairs.

    • Maps are unordered collections of key-value pairs.

    • Keys in a map must be unique.

    • Maps are useful for efficient lookup and retrieval of values based on their keys.

    • You can add, update, and delete key-value pairs in a map.

    • Example: map[string]int{"apple": 5, "banana": 3}

  • Answered by AI
  • Q2. Explain about slice
  • Ans. 

    A slice is a dynamically-sized, flexible view of an underlying array in Go.

    • Slices are similar to arrays but with a variable length.

    • They are reference types and can be resized.

    • Slices can be created using the make() function or by slicing an existing array.

    • They provide a convenient way to work with collections of data.

  • Answered by AI
  • Q3. Difference between slice and array
  • Ans. 

    Arrays have fixed length, while slices are dynamic. Slices are references to arrays.

    • Arrays have a fixed length, while slices can grow or shrink dynamically.

    • Slices are references to arrays, allowing for efficient memory usage.

    • Arrays are value types, while slices are reference types.

    • Arrays are initialized with a specific size, while slices can be created from existing arrays or other slices.

    • Slices provide additional func

  • Answered by AI
  • Q4. What are go routines
  • Ans. 

    Go routines are lightweight threads of execution that allow concurrent programming in Go.

    • Go routines are created using the 'go' keyword followed by a function call.

    • They are executed concurrently and independently of the main program.

    • Go routines communicate with each other using channels.

    • They are used to achieve concurrency and parallelism in Go programs.

  • Answered by AI
  • Q5. How channels are used
  • Ans. 

    Channels are used in Go to enable communication and synchronization between goroutines.

    • Channels are typed and can only send or receive values of that type.

    • They can be created using the built-in make() function.

    • The <- operator is used to send and receive values from channels.

    • Channels can be used to implement various synchronization patterns like blocking and non-blocking operations.

    • They are commonly used for concurrent

  • Answered by AI

Skills evaluated in this interview

Golang Developer Interview Questions & Answers

TCS user image GopiChand Mallala

posted on 20 Dec 2024

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Reverse a string
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
No response

I applied via Recruitment Consulltant and was interviewed in Apr 2024. There was 1 interview round.

Round 1 - Coding Test 

Ask to write a program for find prime number of n numbers using gorountines

Interview Preparation Tips

Interview preparation tips for other job seekers - Study basic question like palindrome , prime numbers , fibcanni series etc
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Jan 2023. 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 

(6 Questions)

  • Q1. About your self.abot your project.jwt token
  • Q2. Basics program on goroutines.expalin goroutine.explain parallisum and concurrency
  • Ans. 

    Goroutines are lightweight threads of execution in Go that allow for concurrent programming.

    • Goroutines are created using the 'go' keyword followed by a function call.

    • Concurrency is the ability to run multiple tasks simultaneously, while parallelism is the ability to run multiple tasks at the same time.

    • Goroutines can communicate with each other using channels.

    • Example: go func() { fmt.Println('Hello, world!') }()

    • Example:

  • Answered by AI
  • Q3. What is channel explain difference type of buffered and unbuffered
  • Ans. 

    Channels are a way for goroutines to communicate. Buffered channels have a capacity while unbuffered channels do not.

    • Unbuffered channels block until a sender and receiver are ready to communicate

    • Buffered channels allow for asynchronous communication up to a certain capacity

    • Channels are typed, meaning they can only send and receive values of a specific type

  • Answered by AI
  • Q4. Define array and slice
  • Ans. 

    Array is a fixed-size collection of elements of the same type. Slice is a dynamic-size sequence of elements of the same type.

    • Arrays have a fixed size and are declared using square brackets, e.g. var arr [5]int

    • Slices are dynamic and are declared using the make() function, e.g. var s []int = make([]int, 5)

    • Slices can also be created using a slice literal, e.g. s := []int{1, 2, 3}

  • Answered by AI
  • Q5. Dockers and commands program on logics
  • Q6. Mysql qarries join and inner join
Round 3 - HR 

(7 Questions)

  • Q1. Explain your project how do you work on unit testing
  • Ans. 

    I have worked on various projects, including a web application for managing employee data.

    • I follow the Arrange-Act-Assert pattern for unit testing

    • I use testing frameworks like GoConvey and testify

    • I write test cases for both positive and negative scenarios

    • I use mocks and stubs to isolate dependencies

    • I aim for high code coverage to ensure thorough testing

  • Answered by AI
  • Q2. How much you expectation salary you work on microservice or monolithic
  • Q3. Difference between microservice and monolithic you work an any payment
  • Ans. 

    Microservices are small, independent services while monolithic is a single, large application.

    • Microservices are loosely coupled and can be developed and deployed independently.

    • Monolithic applications are tightly coupled and require a complete redeployment for any changes.

    • Microservices allow for better scalability and fault tolerance.

    • Monolithic applications are easier to develop and test.

    • Examples of microservices includ...

  • Answered by AI
  • Q4. Dockes and kubernets database
  • Q5. Mongodb,mysql,postgres
  • Q6. Project architetures,rest api,channel,goroutines,data structures
  • Q7. Design pattersns explain and write a program on singelton
  • Ans. 

    Singleton is a creational design pattern that ensures a class has only one instance and provides a global point of access to it.

    • Singleton pattern restricts the instantiation of a class to one object.

    • It is useful when exactly one object is needed to coordinate actions across the system.

    • Singleton pattern can be implemented using lazy initialization or eager initialization.

    • Example: Database connection, Logger, Configurati...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - must learn aws,rest api,dockers,basics programs in golang, go packages

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. What's slice datatype
  • Ans. 

    A slice is a dynamically-sized, flexible view of elements in an array in Go.

    • Slices are references to arrays, allowing for efficient manipulation of data.

    • They have a length and a capacity, with the length being the number of elements in the slice and the capacity being the maximum number of elements that the slice can hold.

    • Slices can be created using the make() function or by slicing an existing array or slice.

    • Example:

  • Answered by AI
  • Q2. Difference between gopath and go root
  • Ans. 

    GOPATH is the workspace for Go projects, while GOROOT is the location where Go is installed.

    • GOPATH is used to store Go project files and dependencies.

    • GOROOT is the location where the Go standard library and tools are installed.

    • GOPATH can have multiple directories, while GOROOT is a single directory.

    • Example: GOPATH=/home/user/go, GOROOT=/usr/local/go

  • Answered by AI

Skills evaluated in this interview

Cognizant Interview FAQs

How to prepare for Cognizant Golang Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Cognizant. The most common topics and skills that interviewers at Cognizant expect are Java, Microservices, Docker, GCP and Golang.

Tell us how to improve this page.

Cognizant Golang Developer Salary
based on 5 salaries
₹4 L/yr - ₹11.2 L/yr
16% less than the average Golang Developer Salary in India
View more details
Associate
72.4k salaries
unlock blur

₹5.1 L/yr - ₹16 L/yr

Programmer Analyst
55.5k salaries
unlock blur

₹2.4 L/yr - ₹9.7 L/yr

Senior Associate
48.3k salaries
unlock blur

₹9 L/yr - ₹27.2 L/yr

Senior Processing Executive
28.7k salaries
unlock blur

₹1.8 L/yr - ₹9 L/yr

Technical Lead
17.6k salaries
unlock blur

₹5.9 L/yr - ₹24.5 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.7
Compare

Infosys

3.7
Compare

Wipro

3.7
Compare

Accenture

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