i
HCLTech
Filter interviews by
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
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
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...
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:
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
GOROOT is the root directory where Go is installed, while GOPATH is the workspace directory where Go projects are stored.
GOROOT is where Go's standard library and tools are located
GOPATH is where your own Go projects and their dependencies are stored
You can have multiple GOPATHs to organize different projects
Use go routines and channels to print numbers 1 to 10
Create a channel to communicate between go routines
Use a for loop to create 10 go routines, each printing a number
Send the numbers through the channel and print them in the main routine
What people are saying about HCLTech
I applied via Company Website and was interviewed in Dec 2024. There was 1 interview round.
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.
I applied via Approached by Company and was interviewed in Oct 2024. There was 1 interview round.
Golang Basics, DBMS, Channels, Unit Test
1) Search an array element
2) braces balance program
3) anagrams Program
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}
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.
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
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.
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
I applied via Recruitment Consulltant and was interviewed in Apr 2024. There was 1 interview round.
Ask to write a program for find prime number of n numbers using gorountines
I applied via Recruitment Consulltant and was interviewed before Oct 2023. There were 2 interview rounds.
Golang interview technical task
How you have worked in previous company
1 Interview rounds
Software Engineer
22.6k
salaries
| ₹1.2 L/yr - ₹8 L/yr |
Technical Lead
20.9k
salaries
| ₹6.9 L/yr - ₹25 L/yr |
Senior Software Engineer
15.6k
salaries
| ₹4 L/yr - ₹16.5 L/yr |
Lead Engineer
14.8k
salaries
| ₹4.2 L/yr - ₹14 L/yr |
Analyst
14.1k
salaries
| ₹1.2 L/yr - ₹6.6 L/yr |
TCS
Wipro
Accenture
Cognizant