Test Yantra Software Solutions
10+ InfoHybrid Interview Questions and Answers
Q1. String s="Expense is 1000 rs"..Extract 1000 from the above string and add 100 to it, print it like Expense is 1100
Extract and manipulate numerical value from a string.
Use regular expressions to extract the numerical value from the string.
Convert the extracted value to an integer, add 100 to it, and then format it back into the original string format.
Print the updated string with the new numerical value.
Q2. What is difference between let, const and vat?
let is block scoped, const is immutable, var is function scoped
let: block scoped, can be reassigned
const: block scoped, cannot be reassigned, but properties of objects can be changed
var: function scoped, can be reassigned
Q3. What is statis aspect of non static method
The static aspect of a non-static method refers to the fact that it belongs to the class and can be accessed without creating an instance of the class.
Non-static methods are associated with an instance of a class and can access instance variables.
Static methods, on the other hand, belong to the class itself and can be accessed without creating an instance.
Non-static methods can access static variables and methods, but static methods cannot access non-static variables and meth...read more
Q4. Difference between map and for each?
Map applies a function to each element of an array and returns a new array, while forEach iterates over each element without returning a new array.
Map returns a new array with the results of applying a function to each element of the original array.
forEach simply iterates over each element of the array without returning a new array.
Example: Using map to double each element in an array - [1, 2, 3].map(num => num * 2) would return [2, 4, 6].
Example: Using forEach to log each el...read more
Q5. What are es6 features?
ES6 features are new additions to JavaScript introduced in ECMAScript 2015.
Arrow functions
Let and const declarations
Template literals
Destructuring assignments
Classes
Promises
Modules
Q6. Write a program to sort an array.
Program to sort an array of strings
Use a sorting algorithm like bubble sort, selection sort, or merge sort
Iterate through the array and compare adjacent elements to sort them
Ensure the sorting algorithm is efficient and handles edge cases
Q7. Difference between overloading and overriding
Overloading is having multiple methods in the same class with the same name but different parameters. Overriding is having a method in a subclass with the same name and parameters as a method in the superclass.
Overloading is resolved at compile time based on the method signature, while overriding is resolved at runtime based on the object type.
Overloading is used to provide different implementations of a method based on the input parameters, while overriding is used to provid...read more
Q8. How to acheve encapsulation
Encapsulation is achieved by restricting access to certain components of an object and only allowing access through designated methods.
Use access modifiers like private, protected, and public to control access to class members
Create getter and setter methods to access and modify private variables
Encapsulate related data and methods within a class to ensure data integrity
Q9. Manual testing notes of Q spider
The question is asking for manual testing notes of Q spider.
Q spider is a software testing training institute.
Manual testing involves executing test cases manually without using any automation tools.
Manual testing notes of Q spider may include topics like test case design, test execution, defect reporting, and test documentation.
Examples of manual testing notes could be: 'How to write effective test cases?', 'Best practices for test execution', 'Defect tracking and reporting ...read more
Q10. What is hoisting?
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.
Variable and function declarations are hoisted to the top of their scope.
Only declarations are hoisted, not initializations.
Function declarations take precedence over variable declarations.
Hoisting can lead to unexpected behavior if not understood properly.
Q11. Why string is immutable
String is immutable in order to ensure data integrity and security.
Immutable strings prevent accidental changes to data, ensuring data integrity.
Immutable strings allow for more efficient memory management and optimization.
Immutable strings help prevent security vulnerabilities such as injection attacks.
Example: In Java, once a string object is created, its value cannot be changed.
Q12. Sql notes of Q spider
The question is asking for SQL notes of Q spider.
Q spider is a software training institute that provides SQL courses.
The question is asking for notes related to SQL from Q spider.
The answer should provide a descriptive explanation of the SQL notes.
Q13. Write an arrow function.
An arrow function is a concise way to write functions in JavaScript.
Arrow functions are written using the '=>' syntax.
They do not have their own 'this' keyword.
They are often used for short, one-line functions.
Example: const add = (a, b) => a + b;
Q14. What is spring boot
Spring Boot is a framework that simplifies the development of Java applications by providing pre-configured settings and tools.
Spring Boot eliminates the need for manual configuration by providing defaults for most settings.
It allows developers to quickly set up and run standalone Spring-based applications.
Spring Boot includes embedded servers like Tomcat, Jetty, or Undertow for easy deployment.
It promotes convention over configuration, reducing the amount of boilerplate code...read more
Q15. Java notes of Q spider
The question is asking for Java notes of Q spider.
Q spider is a training institute for Java programming.
Java notes from Q spider may include topics like object-oriented programming, data types, control statements, arrays, etc.
Examples of Java notes from Q spider can be code snippets or explanations of Java concepts.
Top HR Questions asked in InfoHybrid
Interview Process at InfoHybrid
Top Associate Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month