Newgen Software Technologies
20+ Nitidin ePaper Interview Questions and Answers
You are given an integer ‘N’, your task is to find and return the N’th Fibonacci number using matrix exponentiation.
Since the answer can be very large, return the answer modulo 10^9 +7.
Fi...read more
The task is to find the Nth Fibonacci number using matrix exponentiation.
Use matrix exponentiation to efficiently calculate the Nth Fibonacci number
Return the answer modulo 10^9 + 7 to handle large numbers
Implement the function to solve the problem
The Fibonacci sequence starts with 1, 1, so F(1) = F(2) = 1
The time complexity can be improved to better than O(N) using matrix exponentiation
Given two arrays ‘ARR’ and ‘BRR’ of size ‘N’ and ‘M’ respectively. Your task is to sort the elements of ‘ARR’ in such a way that the relative order among the elements will be the same as those a...read more
The task is to sort the elements of ARR in such a way that the relative order among the elements will be the same as those are in BRR. For the elements not present in BRR, append them in the last in sorted order.
Create a frequency map of elements in ARR
Iterate through BRR and for each element, append it to the result array the number of times it appears in ARR
Iterate through the frequency map and for each element not present in BRR, append it to the result array
Sort the resul...read more
You are given a sorted integer array' ARR' of size 'N'. You need to remove the duplicates from the array such that each element appears only once. Return the length of this ne...read more
The task is to remove duplicates from a sorted integer array in-place and return the length of the modified array.
Use two pointers, one for iterating through the array and another for keeping track of the unique elements.
Compare the current element with the next element. If they are the same, move the second pointer forward.
If they are different, update the first pointer and replace the element at the first pointer with the unique element.
Continue this process until the end o...read more
You are given an array (ARR) of length N, consisting of integers. You have to find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.
A subarray is a ...read more
Client-Server Architecture is a computing model in which the server hosts, delivers, and manages most of the resources and services to be consumed by the client. This type of...read more
Ninja is given an integer ‘N’. Ninja wants to find whether the binary representation of integer ‘N’ is palindrome or not.
A palindrome is a sequence of characters that reads the same backward as...read more
You have been given two singly Linked Lists, where each of them represents a positive number without any leading zeros.
Your task is to add these two numbers and print the summatio...read more
Reverse the given string word-wise. The last word in the given string should come at 1st place, the last-second word at 2nd place, and so on. Individual words should remain as it is.
Inp...read more
Functions running in parallel with other functions are called asynchronous
A good example is JavaScript setTimeout().
Give an example of an Asynchronous function.
setTimeout(myFunc...read more
A JOIN clause is used to combine rows from two or more tables, based on a related column between them.
1.) INNER JOIN: Returns records that have matching values in both tables
2.) LEFT (OU...read more
1. What is primary, candidate and foreign key.
2. Write a query to join three tables.
Primary key uniquely identifies a record in a table. Candidate key is a unique key that can be chosen as the primary key. Foreign key establishes a link between two tables.
Primary key ensures uniqueness and is used to identify records in a table.
Candidate key is a unique key that can be chosen as the primary key.
Foreign key establishes a relationship between two tables based on the values of the primary key in one table and the corresponding values in another table.
Difference between equal and equals.
Difference between overloading and overriding.
What is inheritance.
What types of inheritance are supported by java.
equal is a keyword used for assignment, equals is a method used for comparing objects.
equal is used for assigning a value to a variable
equals is used for comparing objects for equality
Example: int x = 5; String s1 = "hello"; String s2 = new String("hello"); s1.equals(s2) returns true
Psychometric tests are used to measure an individual's' mental capabilities and behaviour. It was designed to check student overall suitability for a particular role based on performance in the...read more
Psychometric tests are used to measure mental capabilities and behavior for assessing suitability for a role.
Psychometric tests measure mental capabilities and behavior
They assess suitability for a particular role
They check personality characteristics and aptitude/cognitive ability
Q15. 1. What is triggers 2. Difference between method overloading and method overriding 3. Ask me to code five numbers in ascending order 4.ask me to code prime or not 5. Difference between final and finally keyword...
read moreInterview questions for Software Developer on triggers, method overloading/overriding, sorting, prime numbers, final/finally keyword, and normalization.
Triggers are database objects that are automatically executed in response to certain events.
Method overloading is having multiple methods with the same name but different parameters, while method overriding is having a subclass method with the same name and parameters as a superclass method.
Sorting five numbers in ascending or...read more
This section consists of 25 questions from the topics like algebra, probability, permutation & combination, time & work, time, speed & distance, arithmetic, percentages, profit & loss, HCF, LC...read more
Q18. Why do we use Static in java
Static keyword in Java is used to create class-level variables and methods.
Static variables are shared among all instances of a class
Static methods can be called without creating an instance of the class
Static blocks are used to initialize static variables
Static import is used to import static members of a class
Q19. What is Singleton Class?
A Singleton Class is a class that can only have one instance and provides a global point of access to it.
Singleton Class restricts the instantiation of a class to a single object.
It is used when only one instance of a class is required throughout the system.
It provides a global point of access to the instance.
It is implemented by making the constructor private and providing a static method to access the instance.
Examples include Logger, Configuration Manager, and Database Con...read more
Q20. Write Program with Singleton class
Singleton class ensures only one instance of a class is created and provides a global point of access to it.
Create a private constructor to prevent direct instantiation of the class
Create a private static instance of the class
Create a public static method to get the instance of the class
Ensure thread safety by using synchronized keyword or static initialization
Example: Database connection manager
Q21. Internal working of Hashmap
Hashmap is a data structure that stores key-value pairs and uses hashing to retrieve values quickly.
Hashmap uses an array to store the key-value pairs
The keys are hashed to generate an index in the array
If two keys hash to the same index, a linked list is used to store the values
Retrieving a value involves hashing the key to find the index and then traversing the linked list if necessary
Q22. What are constructor?
Constructors are special methods in a class that are used to initialize objects.
Constructors have the same name as the class they belong to.
They are called automatically when an object is created.
Constructors can have parameters to initialize object properties.
Example: public class Person { public Person(String name) { this.name = name; }}
Q23. Define Opps concept
OOPs concept stands for Object-Oriented Programming, a programming paradigm based on the concept of objects.
OOPs focuses on creating objects that contain both data and methods to manipulate that data.
Encapsulation, inheritance, polymorphism, and abstraction are the four main principles of OOPs.
Example: Inheritance allows a class to inherit properties and behavior from another class, promoting code reusability.
Top HR Questions asked in Nitidin ePaper
Interview Process at Nitidin ePaper
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month