Wipro
ISS Facility Services Interview Questions and Answers
Q1. what is channel explain difference type of buffered and unbuffered
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
Q2. basics program on goroutines.expalin goroutine.explain parallisum and concurrency
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: c := make(chan int); go func() { c <- 1 }(); x := <-c; fm...read more
Q3. design pattersns explain and write a program on singelton
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, Configuration settings.
Singleton pattern can be implemented in Go usi...read more
Q4. difference between microservice and monolithic you work an any payment
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 include Netflix, Amazon, and Uber.
Examples of monolithic applica...read more
Q5. explain your project how do you work on unit testing
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
Q6. define array and slice
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}
Interview Process at ISS Facility Services
Top Golang Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month