Nagarro
100+ ERNET India Interview Questions and Answers
Q101. Is directory a file
No, a directory is not a file in the context of computing.
A directory is a special type of file that contains information about files and other directories within it.
Directories are used to organize and store files in a hierarchical structure.
Examples of directories include folders on a computer's file system.
Q102. how to add list
To add a list in programming, you can use arrays or lists depending on the language.
In Python, you can add elements to a list using the append() method.
In Java, you can add elements to an ArrayList using the add() method.
In JavaScript, you can add elements to an array using the push() method.
Q103. What is ASYNC/AWAIT
ASYNC/AWAIT is a feature in JavaScript used for handling asynchronous operations.
ASYNC is used to define a function as asynchronous
AWAIT is used to pause the execution of a function until a Promise is settled
ASYNC/AWAIT simplifies asynchronous code and makes it easier to read and write
Example: async function fetchData() { await fetch('https://api.example.com/data'); }
Q104. Solid design principles
Solid design principles are fundamental guidelines for designing software that are focused on maintainability, scalability, and reusability.
Solid design principles include Single Responsibility Principle, Open/Closed Principle, Liskov Substitution Principle, Interface Segregation Principle, and Dependency Inversion Principle.
These principles help in creating software that is easier to maintain, extend, and test.
For example, adhering to the Single Responsibility Principle ensu...read more
Q105. Diff Abs & Interface
Abs is a class in Java that provides mathematical functions for absolute values, while Interface is a blueprint for classes to implement certain methods.
Abs is a class in Java that provides static methods for mathematical operations like abs(), max(), min().
Interface in Java is a blueprint for classes to implement certain methods without specifying the implementation details.
Abs class is used for mathematical operations on primitive data types, while Interface is used for def...read more
More about working at Nagarro
Interview Process at ERNET India
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month