Filter interviews by
I applied via Naukri.com and was interviewed in Mar 2022. There were 2 interview rounds.
Const variables are immutable and can be used to declare values that won't change during runtime. String replace replaces a substring with another in a string.
Const variables are declared using the 'const' keyword and cannot be reassigned.
String replace can be used to replace a substring with another in a string.
Example: const pi = 3.14; str := 'Hello World'; newStr := strings.Replace(str, 'World', 'Golang', -1);
Exampl...
REST API can be implemented in both Golang and other languages using HTTP methods and JSON data format.
In Golang, we can use third-party packages like Gorilla Mux and net/http to create REST APIs.
We can define routes and handlers for each HTTP method like GET, POST, PUT, DELETE.
We can use JSON encoding and decoding to send and receive data in REST API calls.
In other languages, we can use frameworks like Flask in Python...
Go does not have traditional OOP concepts like classes and inheritance, but it does support some OOP principles.
Go supports encapsulation through the use of structs and methods.
Polymorphism can be achieved through interfaces.
Inheritance is not supported, but composition can be used instead.
Go also supports abstraction through the use of interfaces and packages.
Top trending discussions
Mechanical Engineering offers a diverse range of opportunities to apply scientific principles to solve real-world problems.
Mechanical Engineering provides a strong foundation in math, physics, and materials science.
It offers a wide range of career opportunities in various industries such as automotive, aerospace, and manufacturing.
Mechanical Engineers design and develop machines, tools, and systems that improve our dai...
Yes, I know C language. Here's a program to print numbers from 1 to 10 excluding 5.
Use a loop to iterate from 1 to 10
Inside the loop, check if the current number is equal to 5
If it is not equal to 5, print the number
The question was about finding the average of a set of numbers.
I approached the problem by first summing all the numbers in the set.
Then, I divided the sum by the total number of elements in the set to find the average.
I used a loop to iterate through the set and keep track of the sum and count of elements.
based on 1 review
Rating in categories
TCS
Accenture
Cognizant
Infosys