Add office photos
Engaged Employer

LTIMindtree

3.9
based on 20k Reviews
Filter interviews by

100+ SRM Group of Institutions Chennai Interview Questions and Answers

Updated 29 Dec 2024
Popular Designations
Q1. Find prime numbers

You are given a positive integer ‘N’. Your task is to print all prime numbers less than or equal to N.

Note: A prime number is a natural number that is divisible only by 1 and itself. Example ...read more

View 3 more answers

Q2. there are 3 wheels. each can travel only 5kms. everytime you want to use the wheel to move forward, you have to use 2 of them. what is the maximum distance you can travel?

Ans.

Maximum distance that can be traveled using 3 wheels, each with a 5km limit and requiring 2 wheels to move forward.

  • Using all 3 wheels, we can move forward a total of 10kms (5kms using 2 wheels at a time)

  • After using the first 2 wheels to travel 5kms, we can switch to the remaining wheel and travel another 5kms

  • Alternatively, we can use 2 wheels to travel 5kms, then switch to the remaining wheel and use another 2 wheels to travel another 5kms, for a total of 10kms

View 1 answer

Q3. Which coding language are you comfortable with?

Ans.

I am comfortable with multiple coding languages including Java, Python, and C++.

  • Proficient in Java, Python, and C++

  • Experience with web development languages such as HTML, CSS, and JavaScript

  • Familiarity with scripting languages like Bash and PowerShell

  • Comfortable with SQL and NoSQL databases

  • Knowledge of machine learning libraries like TensorFlow and Keras

View 2 more answers
Q4. DBMS Question

What is Normalization and forms of normalization?

Add your answer
Discover SRM Group of Institutions Chennai interview dos and don'ts from real experiences
Q5. Python Question

What are dunder methods in Python?

Add your answer

Q6. Do you know about sorting algorithms? What are the types of sorting algorithms? Write them,

Ans.

Sorting algorithms are used to arrange data in a specific order. There are various types of sorting algorithms.

  • Types of sorting algorithms include: bubble sort, selection sort, insertion sort, merge sort, quick sort, heap sort, counting sort, radix sort, and bucket sort.

  • Bubble sort compares adjacent elements and swaps them if they are in the wrong order.

  • Selection sort selects the smallest element and swaps it with the first element, then selects the second smallest and swaps ...read more

View 1 answer
Are these interview questions helpful?

Q7. How will you write a program to . For example, create a calculator

Ans.

To create a calculator program, use a GUI framework and implement basic arithmetic operations.

  • Choose a programming language and a GUI framework such as JavaFX or Tkinter.

  • Implement the basic arithmetic operations such as addition, subtraction, multiplication, and division.

  • Add functionality for decimal points, clear button, and negative numbers.

  • Test the program thoroughly to ensure accuracy and usability.

Add your answer

Q8. What is the difference between Array and LinkedList? What are binary search, code, and complexities? What is a deadlock? What is OOPS? Pillars of OOPS(Encapsulation, Inheritance, Abstraction, Polymorphism), wit...

read more
Ans.

Interview questions for Software Engineer position

  • Array is a collection of elements of the same data type, while LinkedList is a collection of nodes that contain data and a reference to the next node

  • Binary search is a search algorithm that divides the search interval in half at every step, reducing the search space by half

  • Code complexity refers to the level of difficulty in understanding and maintaining a piece of code

  • Deadlock is a situation where two or more processes are un...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟
Q9. Basic HR Questions

Q1. Introduction
Q2. Strengths and Weaknesses
Q3. Are you willing to relocate ?

Add your answer
Q10. Python Question

How to create a Context Manager?

Add your answer

Q11. eliminate repeated array from the given string

Ans.

To eliminate repeated array from a given string

  • Convert the string to an array using split() method

  • Use Set object to remove duplicates from the array

  • Convert the array back to string using join() method

View 1 answer
Q12. DBMS Question

What are the different types of joins in SQL?

Add your answer

Q13. What is the method to swap two numbers without using any third variable?

Ans.

To swap two numbers without using a third variable, use arithmetic operations like addition and subtraction.

  • Add the two numbers and store the result in one of the variables.

  • Subtract the second number from the sum and store the result in the second variable.

  • Finally, subtract the first number (which is now stored in the second variable) from the sum and store the result in the first variable.

Add your answer

Q14. Write a Program to print the following pattern: * * * * * * * * * * * * * * *

Ans.

Program to print a pattern of stars in a pyramid shape

  • Use nested loops to print the pattern

  • The outer loop controls the number of rows

  • The inner loop controls the number of stars in each row

View 1 answer
Q15. Python Question

What are generators and decorators?

Add your answer

Q16. What is the process for managing hotfix changes in a production environment?

Ans.

Hotfix changes in a production environment are managed through a controlled process to minimize risks and ensure smooth deployment.

  • Hotfix changes should be thoroughly tested in a staging environment before being deployed to production.

  • A rollback plan should be in place in case the hotfix introduces new issues.

  • Communication with stakeholders and users about the hotfix deployment is crucial to manage expectations and minimize disruptions.

  • Version control systems should be used t...read more

Add your answer

Q17. Tell me about yourseld About projects What is sorting Insertion sort code What is searching Binary and linear search code About projects Oops concept ( polymorphism, enacpsulation).

Ans.

Interview questions on software engineering concepts and projects

  • Discussed my background and experience

  • Explained my projects and their significance

  • Defined sorting and provided insertion sort code

  • Explained searching and provided binary and linear search code

  • Discussed OOP concepts such as polymorphism and encapsulation

Add your answer

Q18. What is the difference between order by and group by in sql Why we use oops Scenario based question -3

Ans.

Order by sorts the result set while group by groups the result set based on a column

  • Order by is used to sort the result set in ascending or descending order

  • Group by is used to group the result set based on a column

  • Order by can be used with multiple columns while group by can only be used with one column

  • Order by is used after the select statement while group by is used before the select statement

Add your answer

Q19. What programming languages are you comfortable in ?

Ans.

I am comfortable in programming languages such as Java, Python, and JavaScript.

  • Java

  • Python

  • JavaScript

Add your answer

Q20. Explain your project and which algorithm you used in it. Why that algorithm?

Ans.

I worked on a project that involved sentiment analysis of customer reviews using Naive Bayes algorithm.

  • The project involved collecting customer reviews from various sources.

  • Preprocessing the data by removing stop words, stemming, and tokenizing.

  • Used Naive Bayes algorithm for sentiment analysis.

  • The algorithm was chosen because of its simplicity and effectiveness in text classification tasks.

  • The accuracy of the model was evaluated using cross-validation techniques.

Add your answer

Q21. How can we expose an Rest API using spring boot?

Ans.

Spring Boot can be used to expose Rest APIs easily.

  • Create a Spring Boot project with necessary dependencies.

  • Define the API endpoints using @RestController and @RequestMapping annotations.

  • Implement the API logic in methods annotated with @GetMapping, @PostMapping, etc.

  • Use @RequestBody and @PathVariable annotations to handle request data.

  • Configure the API using application.properties or application.yml file.

  • Test the API using tools like Postman or Swagger UI.

Add your answer

Q22. What are the methods to scale up a Kubernetes cluster?

Ans.

Methods to scale up a Kubernetes cluster include horizontal scaling, vertical scaling, and cluster auto-scaling.

  • Horizontal scaling: Adding more nodes to the cluster to distribute the workload.

  • Vertical scaling: Increasing the resources (CPU, memory) of existing nodes in the cluster.

  • Cluster auto-scaling: Automatically adjusting the number of nodes based on resource usage.

  • Using tools like Horizontal Pod Autoscaler (HPA) to automatically scale the number of pods in a deployment b...read more

Add your answer

Q23. you're well versed with C programming? write a code for addition and multiplication of matrix

Ans.

Code for addition and multiplication of matrix in C programming.

  • Use nested loops to iterate through each element of the matrix

  • For addition, add corresponding elements of both matrices and store in a new matrix

  • For multiplication, use dot product of rows and columns to calculate each element of the new matrix

Add your answer

Q24. 1. Which programming language you are comfortable with?

Ans.

I am comfortable with Java programming language.

  • Proficient in object-oriented programming concepts

  • Experience in developing web applications using Spring framework

  • Familiarity with Java libraries and tools such as Hibernate and Maven

View 1 answer

Q25. How do you open command prompt in Windows ?

Ans.

To open command prompt in Windows, press Win+R and type 'cmd' or search for 'Command Prompt' in Start menu.

  • Press Win+R and type 'cmd'

  • Search for 'Command Prompt' in Start menu

  • Right-click on Start menu and select 'Command Prompt'

  • Use Windows PowerShell instead of Command Prompt

Add your answer

Q26. What are the basic concepts of a programming language suitable for a fresher, and can you provide an example of a coding question that might be asked during an interview?

Ans.

Basic concepts of a programming language for fresher and example coding question

  • Basic concepts include variables, data types, loops, conditionals, functions, and arrays

  • Example coding question: Write a function to find the sum of all elements in an array

  • Understanding of syntax, debugging, and problem-solving skills are also important for a fresher

Add your answer

Q27. What is the concept of inheritance in programming?

Ans.

Inheritance is a concept in programming where a class inherits properties and behaviors from another class.

  • Allows for code reusability by creating a new class based on an existing class

  • Child class can access all public and protected members of the parent class

  • Helps in creating a hierarchy of classes with shared attributes and methods

Add your answer

Q28. Are you willing to allocate? Write a program of pass data through function and Explain.

Ans.

Answering a question about willingness to allocate and providing a program to pass data through a function.

  • Yes, I am willing to allocate.

  • To pass data through a function, we can define the function with parameters that will receive the data and then call the function with the data as arguments.

  • For example, if we have a function that adds two numbers, we can pass the numbers as arguments when calling the function.

  • function addNumbers(num1, num2) { return num1 + num2; }

  • var result...read more

Add your answer

Q29. How to copy data of all the gdg versions into a single ps file using jcl

Ans.

To copy data of all GDG versions into a single PS file using JCL.

  • Use IDCAMS utility to define a temporary GDG base.

  • Use SORT utility to merge all the GDG versions into a single file.

  • Use IEBGENER utility to copy the merged file to a PS file.

  • Delete the temporary GDG base using IDCAMS utility.

Add your answer
Q30. Python Question

Difference between List and Array

Add your answer

Q31. What is linked list?

Ans.

A linked list is a linear data structure where each element is a separate object with a pointer to the next element.

  • Consists of nodes that contain data and a pointer to the next node

  • Can be singly or doubly linked

  • Used for dynamic memory allocation, implementing stacks and queues, and more

View 1 answer

Q32. Write down Fibonacci series and also explain pseudo code for it?

Ans.

Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.

  • The first two numbers of the series are always 0 and 1

  • The next number is the sum of the previous two numbers

  • The series goes on infinitely: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...

  • Pseudo code: 1. Initialize variables a=0, b=1, c=0 2. Print a and b 3. Repeat steps 4-6 until desired number of terms 4. c=a+b 5. Print c 6. a=b, b=c

Add your answer

Q33. Remove all the pcs from the lab and keep in other lab RIGHT NOW?

Ans.

Yes, I can remove all the pcs from the lab and keep them in another lab right now.

  • Ensure all the necessary equipment and tools are available for the move

  • Coordinate with the lab staff to ensure a smooth transition

  • Label and document each PC for easy identification and setup in the new lab

  • Ensure proper packaging and handling to prevent any damage during the move

Add your answer

Q34. Write a program to print unique elements in an array in java

Ans.

Program to print unique elements in an array in Java

  • Create a HashSet to store unique elements

  • Iterate through the array and add each element to the HashSet

  • Print the HashSet to get the unique elements

Add your answer

Q35. code based on reverse a string and search an element.

Ans.

Code to reverse a string and search an element.

  • To reverse a string, use a loop to iterate through the string and append each character to a new string in reverse order.

  • To search for an element in a string, use the indexOf() method or a loop to iterate through the string and check each character.

  • Example: function reverseAndSearch(str, elem) { let reversed = ''; for(let i = str.length - 1; i >= 0; i--) { reversed += str[i]; } return reversed.indexOf(elem) !== -1; }

Add your answer

Q36. How to remove extra spaces in Python ?

Ans.

Use the split() and join() methods to remove extra spaces in Python.

  • Split the string using split() method to create a list of words.

  • Use join() method to join the words back together with a single space between them.

  • Use strip() method to remove any leading or trailing spaces.

Add your answer

Q37. What is abstraction? Explain with example

Ans.

Abstraction is the process of hiding complex implementation details and exposing only the necessary information.

  • Abstraction helps in reducing complexity and increasing efficiency.

  • It allows us to focus on the essential features of an object or system.

  • For example, a car can be abstracted as a vehicle with certain properties like speed, fuel efficiency, and seating capacity.

  • Abstraction can be achieved through interfaces, abstract classes, and encapsulation.

Add your answer

Q38. 2. Tell me about software testing methodologies?

Ans.

Software testing methodologies are techniques used to test software for quality and functionality.

  • There are several types of testing methodologies such as black box testing, white box testing, and gray box testing.

  • Black box testing focuses on testing the functionality of the software without knowledge of its internal workings.

  • White box testing involves testing the internal workings of the software, including code and algorithms.

  • Gray box testing is a combination of black and w...read more

View 5 more answers

Q39. How do you open Device Manager In windows ?

Ans.

Device Manager can be opened in Windows using multiple methods.

  • Press Windows key + X and select Device Manager

  • Open Run dialog box (Windows key + R) and type devmgmt.msc

  • Search for Device Manager in Windows search bar

  • Right-click on This PC/My Computer and select Manage, then select Device Manager from the left pane

Add your answer

Q40. HashMap storing and fetching the elements in various ways using java 7 and 8 as well.

Ans.

HashMap can store and fetch elements in various ways using Java 7 and 8.

  • In Java 7, we can use put() and get() methods to store and fetch elements respectively.

  • In Java 8, we can use forEach() and compute() methods to store and fetch elements respectively.

  • We can also use keySet(), values(), and entrySet() methods to retrieve keys, values, and key-value pairs respectively.

  • Java 8 also introduced the stream() method for HashMap, which allows for more efficient processing of large ...read more

Add your answer

Q41. 1. Write code to count number of hand shakes between N number of people. 2. Create a class and write function using the OOPs concept

Ans.

Code to count handshakes between N people and a class using OOPs concept.

  • For counting handshakes, use a loop to iterate through each person and add up the handshakes with the remaining people.

  • For the class, define attributes and methods based on the requirements and use encapsulation, inheritance, and polymorphism concepts.

  • Example: class Person with attributes name and age, and method greet(). Class Employee inherits from Person and has additional attribute salary and method ...read more

View 1 answer

Q42. Write a program to replace the character with another character in java.

Ans.

A program to replace a character with another character in Java.

  • Create a string variable with the original text

  • Use the replace() method to replace the character with another character

  • Print the new string with the replaced character

Add your answer

Q43. What is oops?what is difference between static and final?

Ans.

OOPs stands for Object-Oriented Programming. Static is a keyword used to create a class-level variable or method. Final is a keyword used to declare a constant value.

  • OOPs is a programming paradigm that focuses on objects and their interactions.

  • Static variables or methods belong to the class and not to the instance of the class.

  • Final variables cannot be changed once they are assigned a value.

  • Static and final can be used together to create a class-level constant.

  • Example: public...read more

Add your answer

Q44. What are the OOPs concept explain?

Ans.

OOPs (Object-Oriented Programming) concepts include inheritance, polymorphism, encapsulation, and abstraction.

  • Inheritance: Allows a class to inherit properties and behavior from another class. Example: Parent class 'Animal' and child class 'Dog'.

  • Polymorphism: Ability to present the same interface for different data types. Example: Method 'drawShape' can be used for different shapes.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: ...read more

Add your answer

Q45. What are the access speacifier In C language?

Ans.

Access specifiers in C language control the visibility and accessibility of variables and functions.

  • C language has three access specifiers: public, private, and protected.

  • Public variables and functions can be accessed from anywhere in the program.

  • Private variables and functions can only be accessed within the same file.

  • Protected variables and functions can be accessed within the same file and any derived classes.

  • Access specifiers are used in struct and class definitions to co...read more

Add your answer

Q46. Comparable and comparator concepts and sorting by use of comparator functional Interface.

Ans.

Comparable and comparator concepts and sorting by use of comparator functional Interface.

  • Comparable interface is used to define natural ordering of objects

  • Comparator interface is used to define custom ordering of objects

  • Sorting can be done using Comparator functional interface

  • Example: Sorting a list of employees by their salary using Comparator

Add your answer

Q47. 3. What is difference between list and set?

Ans.

List is an ordered collection of elements while set is an unordered collection of unique elements.

  • Lists allow duplicate elements while sets do not.

  • Lists are accessed by index while sets are accessed by value.

  • Lists are represented by square brackets [] while sets are represented by curly braces {}.

  • Example: [1, 2, 3] is a list while {1, 2, 3} is a set.

View 1 answer

Q48. What are the concepts of Object-Oriented Programming (OOP)?

Ans.

OOP is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit (object).

  • Inheritance: Ability of a class to inherit properties and behavior from another class.

  • Polymorphism: Ability to present the same interface for different data types.

  • Abstraction: Hiding the complex implementation details and showing only the nece...read more

Add your answer

Q49. what is the difference between method overloading and overrding

Ans.

Method overloading is having multiple methods in the same class with the same name but different parameters, while method overriding is having a method in a subclass with the same name and parameters as a method in its superclass.

  • Method overloading is resolved at compile time based on the method signature and parameters.

  • Method overriding is resolved at runtime based on the actual object type.

  • Example of method overloading: public void print(int num) and public void print(Strin...read more

Add your answer

Q50. What are the selectors in css

Ans.

Selectors in CSS are patterns used to select the elements you want to style on a web page.

  • Selectors can target elements based on their tag name, class, ID, attributes, and more.

  • Examples include: element selector (p), class selector (.example), ID selector (#example), attribute selector ([type='text']), and pseudo-class selector (:hover).

Add your answer

Q51. What are Isolation level in Db2

Ans.

Isolation levels in Db2 determine how transactions interact with each other.

  • Isolation levels include Read Uncommitted, Read Committed, Repeatable Read, and Serializable.

  • Higher isolation levels provide more consistency but can also lead to more contention and slower performance.

  • Isolation levels can be set at the transaction level or for individual queries.

  • For example, a transaction with Repeatable Read isolation level will prevent other transactions from modifying the same dat...read more

Add your answer

Q52. Find the unique element in the array?

Ans.

To find the unique element in an array

  • Iterate through the array and use a hash table to keep track of the frequency of each element

  • Return the element with frequency 1

  • Alternatively, use XOR operation to cancel out duplicate elements and return the remaining element

Add your answer

Q53. Address of a particular element in an array. And adress of 0th index is given

Ans.

Finding address of an element in an array given the address of 0th index.

  • Calculate the offset of the desired element from the 0th index address and add it to the 0th index address.

  • Address of ith element = address of 0th element + i * size of each element.

  • Example: Address of 3rd element in an array of strings = address of 0th element + 3 * size of string.

Add your answer

Q54. Why windows function are not being used in where clause?

Ans.

Windows functions are not used in WHERE clause to avoid performance issues.

  • Windows functions are used to perform complex calculations on data.

  • Using them in WHERE clause can slow down the query execution.

  • Instead, use simple conditions in WHERE clause and perform calculations in SELECT clause.

  • For example, instead of using AVG() function in WHERE clause, use HAVING clause.

  • Also, consider using indexes to improve query performance.

Add your answer

Q55. Find the output of the following code snippets

Ans.

Code snippet output prediction for software engineer interview

  • Understand the code logic and data flow

  • Consider the input values and their impact on output

  • Check for any loops or conditions that may affect the output

Add your answer

Q56. What do you know about java?

Ans.

Java is a popular programming language known for its platform independence and object-oriented approach.

  • Java is a high-level, class-based, object-oriented programming language.

  • It is designed to have as few implementation dependencies as possible, making it platform-independent.

  • Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM).

  • Java is widely used for developing desktop, web, and mobile applications.

  • Popular frameworks and librar...read more

Add your answer

Q57. Which is the fastest sorting algorithm?

Ans.

The fastest sorting algorithm is QuickSort.

  • QuickSort has an average time complexity of O(n log n).

  • It is a divide and conquer algorithm that recursively partitions the array.

  • It is widely used in practice due to its efficiency.

  • Other fast sorting algorithms include MergeSort and HeapSort.

Add your answer

Q58. Explain Inheritance and Encapsulation with real-time examples.

Ans.

Inheritance is a mechanism in which a new class inherits properties and behaviors from an existing class. Encapsulation is the concept of bundling data and methods that operate on the data into a single unit.

  • Inheritance allows a subclass to inherit attributes and methods from a superclass. For example, a class Animal can be a superclass with attributes like name and age, and methods like eat() and sleep(). A subclass Dog can inherit these attributes and methods.

  • Encapsulation ...read more

Add your answer

Q59. Create a function and print the addition of two number

Ans.

Create a function to print the addition of two numbers

  • Define a function that takes two parameters representing the numbers to be added

  • Inside the function, add the two numbers together

  • Print the result of the addition

Add your answer

Q60. How to create end to end pipeline from Jenkins

Ans.

To create an end to end pipeline from Jenkins, you need to set up stages for building, testing, and deploying your code.

  • Set up Jenkins job with necessary plugins for version control, build tools, and deployment

  • Define stages in Jenkinsfile for building, testing, and deploying code

  • Configure Jenkins job to trigger automatically on code changes

  • Integrate with version control system for code checkout and triggering builds

  • Use Jenkins pipeline syntax to define stages and steps for ea...read more

Add your answer

Q61. What are Compute Services in AZURE, explain

Ans.

Compute Services in Azure are cloud-based services that provide virtual machines, containers, and serverless computing capabilities.

  • Azure Virtual Machines: Allows users to create and manage virtual machines in the cloud.

  • Azure Container Instances: Offers a solution for running containers without managing servers.

  • Azure Functions: Enables serverless computing by running code in response to events.

  • Azure Batch: Provides job scheduling and compute management for large-scale paralle...read more

Add your answer

Q62. What is PEGA, and what motivated you to learn it?

Ans.

PEGA is a business process management tool used for building enterprise applications.

  • PEGA is a platform for creating and managing business processes and customer interactions.

  • It offers tools for designing, building, and deploying applications without the need for traditional coding.

  • I learned PEGA because of its popularity in the industry and its ability to streamline business processes.

  • Having PEGA skills can open up job opportunities in various industries such as finance, hea...read more

Add your answer

Q63. what are types of joins, explain inner join

Ans.

Types of joins include inner join, outer join, left join, and right join. Inner join returns rows when there is a match in both tables.

  • Inner join combines rows from two tables based on a related column between them

  • Only the rows with matching values in both tables are included in the result set

  • Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column

Add your answer
Q64. ML Question

Explain any ML model.

Add your answer

Q65. Areas of strength and weekness .

Ans.

My areas of strength include problem-solving, teamwork, and adaptability. My weakness is public speaking.

  • Strengths: problem-solving (e.g. developing efficient algorithms), teamwork (e.g. collaborating with colleagues on a project), adaptability (e.g. quickly learning new programming languages)

  • Weakness: public speaking (e.g. presenting technical information to a large audience)

View 1 answer

Q66. What do you know about LTIMindtree?

Ans.

LTIMindtree is a global technology consulting and services company specializing in digital transformation and IT services.

  • LTIMindtree was formed through the merger of LTI (Larsen & Toubro Infotech) and Mindtree in 2019.

  • It offers services in areas such as cloud computing, data analytics, cybersecurity, and artificial intelligence.

  • LTIMindtree serves clients in various industries including banking, healthcare, retail, and manufacturing.

  • The company has a strong focus on innovatio...read more

Add your answer

Q67. write a java program to swap two numbers without using third number

Ans.

Swapping two numbers without using a third number in Java

  • Create a temporary variable and use bitwise XOR operation to swap the numbers

  • Example: int a = 5, b = 10; a = a ^ b; b = a ^ b; a = a ^ b; // Now a = 10, b = 5

Add your answer

Q68. write a code to print prime numbers upto 100

Ans.

Code to print prime numbers upto 100

  • Loop through numbers 2 to 100

  • Check if number is prime by dividing it by numbers from 2 to itself-1

  • If number is prime, print it

Add your answer

Q69. How React lifecycle work indepth knowledge.

Ans.

React lifecycle refers to the sequence of methods that are invoked during the lifespan of a React component.

  • React components go through three main phases: Mounting, Updating, and Unmounting.

  • During the Mounting phase, constructor, render, and componentDidMount methods are called.

  • During the Updating phase, componentDidUpdate method is called when the component's props or state change.

  • During the Unmounting phase, componentWillUnmount method is called before the component is remo...read more

Add your answer

Q70. Write algorithm for matrix multiplication?

Ans.

Algorithm for matrix multiplication

  • Create a result matrix with dimensions of the two input matrices

  • Iterate through each row and column of the result matrix

  • For each element in the result matrix, multiply corresponding row in first matrix with corresponding column in second matrix

  • Add the products obtained in the previous step to get the final value for the element

Add your answer

Q71. Introduction yourself What is c Prime number program N++,n+1 operate first

Ans.

I am a software engineer with knowledge in C programming and prime number algorithms.

  • C is a programming language used for system programming and embedded systems.

  • A prime number is a number that is only divisible by 1 and itself.

  • To check if a number is prime, we can use a loop to divide it by all numbers less than itself.

  • N++ means incrementing the value of N by 1, while n+1 means adding 1 to the value of n.

  • The order of operations in N++,n+1 is to first increment N by 1, then a...read more

Add your answer

Q72. Write a program on bubble sort and explain it?

Ans.

Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.

  • Bubble sort is a comparison-based algorithm

  • It works by comparing each pair of adjacent elements and swapping them if they are in the wrong order

  • The algorithm repeats this process until no more swaps are needed

  • It has a worst-case and average complexity of O(n^2)

  • Example: [5, 3, 8, 4, 2] -> [3, 5, 4, 2, 8] -> [3, 4, 2, 5, 8] -...read more

Add your answer

Q73. Program for Odd and Even number

Ans.

Program to identify odd and even numbers.

  • Use modulo operator to check if a number is even or odd.

  • If a number is divisible by 2, it is even.

  • If a number is not divisible by 2, it is odd.

  • Print the result accordingly.

Add your answer

Q74. What is java? What is polymerization

Ans.

Java is a programming language used to develop applications. Polymerization is not related to Java.

  • Java is an object-oriented language

  • It is platform-independent

  • Polymerization is a chemical process of combining monomers to form a polymer

  • Polymerization is not related to Java

Add your answer

Q75. How good are you in DBMS tools?

Ans.

I have a strong understanding of DBMS tools and their functionalities.

  • Proficient in SQL and relational database management systems

  • Experience in designing and optimizing database schemas

  • Skilled in writing complex queries and stored procedures

  • Familiarity with database administration tasks such as backup and recovery

  • Knowledge of indexing and query optimization techniques

  • Experience with popular DBMS tools like MySQL, Oracle, and PostgreSQL

Add your answer

Q76. what are java 8 features explain in detail

Ans.

Java 8 introduced several new features including lambda expressions, streams, functional interfaces, and default methods.

  • Lambda expressions allow you to write code in a more concise and readable way.

  • Streams provide a way to work with sequences of elements and perform operations on them.

  • Functional interfaces are interfaces with a single abstract method, which can be implemented using lambda expressions.

  • Default methods allow interfaces to have method implementations, reducing t...read more

Add your answer

Q77. What is oops concepts?

Ans.

OOPs concepts are the principles of Object-Oriented Programming that focus on encapsulation, inheritance, polymorphism, and abstraction.

  • Encapsulation: bundling of data and methods that manipulate the data within a single unit

  • Inheritance: a mechanism that allows a new class to be based on an existing class

  • Polymorphism: the ability of an object to take on many forms

  • Abstraction: the process of hiding complex implementation details and showing only functionality to the user

  • Exampl...read more

Add your answer

Q78. write a logic for fibonocci series with recursion

Ans.

Logic for Fibonacci series using recursion

  • Define a function that takes an integer as input

  • If the input is 0 or 1, return the input

  • Else, return the sum of the previous two numbers in the series

  • Call the function recursively with the previous two numbers as input

Add your answer

Q79. what is SDLC and elaborate it?

Ans.

SDLC stands for Software Development Life Cycle, which is a process used by software development teams to design, develop, and test high-quality software.

  • SDLC is a systematic process for building software applications.

  • It consists of several phases such as planning, analysis, design, implementation, testing, and maintenance.

  • Each phase has its own set of activities and deliverables.

  • Examples of SDLC models include Waterfall, Agile, and DevOps.

  • SDLC helps ensure that software proj...read more

Add your answer

Q80. find greatest in an array without using any inbuilt functions

Ans.

Find the greatest element in an array without using any inbuilt functions.

  • Iterate through the array and compare each element with a variable storing the current greatest element.

  • Update the variable if a greater element is found.

  • Return the variable containing the greatest element at the end.

Add your answer

Q81. Normalisation in SQL and functions in Java

Ans.

Normalization in SQL involves organizing data in a database to reduce redundancy and improve data integrity. Functions in Java are reusable blocks of code that perform specific tasks.

  • Normalization in SQL involves breaking down data into smaller, more manageable tables to reduce redundancy and improve data integrity

  • Functions in Java are reusable blocks of code that perform specific tasks and can be called multiple times in a program

  • Examples of normalization in SQL include brea...read more

Add your answer

Q82. Tuple is mutable or not if not change it

Ans.

Tuple is immutable in Python.

  • Tuples are similar to lists but are immutable.

  • Once a tuple is created, you cannot change its values.

  • You can convert a tuple to a list and modify it, but you cannot convert a list to a tuple.

  • Tuples are faster than lists and can be used as keys in dictionaries.

Add your answer

Q83. What is abstract class and interface?

Ans.

Abstract class is a class that cannot be instantiated and interface is a contract that defines methods.

  • Abstract class can have both abstract and non-abstract methods while interface can only have abstract methods.

  • A class can implement multiple interfaces but can only inherit from one abstract class.

  • Abstract class can have constructors while interface cannot.

  • Example of abstract class: Animal (abstract method: makeSound())

  • Example of interface: Runnable (method: run())

Add your answer

Q84. Find the max and min number in the array

Ans.

To find the max and min number in an array, iterate through the array and compare each element with the current max and min.

  • Initialize max and min variables with the first element of the array

  • Iterate through the array and compare each element with max and min

  • If the element is greater than max, update max

  • If the element is smaller than min, update min

  • Return max and min

Add your answer

Q85. write a program to generate fibonacci number

Ans.

Program to generate fibonacci number

  • Use recursion or iteration to generate fibonacci sequence

  • Start with 0 and 1 as first two numbers

  • Add previous two numbers to get next number in sequence

Add your answer

Q86. What are the Types of Triggers

Ans.

Triggers are of two types: DML Triggers and DDL Triggers.

  • DML Triggers are fired when a DML event occurs, such as INSERT, UPDATE, or DELETE.

  • DDL Triggers are fired when a DDL event occurs, such as CREATE, ALTER, or DROP.

  • Examples of DML Triggers include AFTER INSERT, AFTER UPDATE, and AFTER DELETE.

  • Examples of DDL Triggers include AFTER CREATE, AFTER ALTER, and AFTER DROP.

Add your answer

Q87. Write a program Sum the digit?

Ans.

A program to calculate the sum of digits in a given number.

  • Take input from user or use a predefined number

  • Use a loop to extract each digit from the number

  • Add each digit to a variable to calculate the sum

  • Print the sum of digits

Add your answer

Q88. Why java is platform dependent?

Ans.

Java is platform dependent because it compiles code into bytecode that is executed by the Java Virtual Machine (JVM).

  • Java code is compiled into bytecode, which is a platform-independent representation of the code.

  • The bytecode is then executed by the JVM, which is specific to each platform.

  • This allows Java programs to run on any platform that has a compatible JVM.

  • The JVM acts as an interpreter, translating the bytecode into machine code that can be executed by the underlying h...read more

Add your answer

Q89. What is Constructor?

Ans.

Constructor is a special method that is called when an object is created.

  • Constructors have the same name as the class they belong to.

  • They are used to initialize the object's state.

  • They can be overloaded to accept different parameters.

  • If a class does not have a constructor, a default constructor is provided by the compiler.

Add your answer

Q90. What are the Oops concepts?

Ans.

Oops concepts are the fundamental principles of Object-Oriented Programming.

  • Abstraction

  • Encapsulation

  • Inheritance

  • Polymorphism

View 1 answer

Q91. List vs Array what are the differences

Ans.

List is a dynamic array that can grow or shrink in size, while an array has a fixed size.

  • List is a part of the Collections framework in Java, while an array is a basic data structure.

  • List can store objects of different types, while an array can only store objects of the same type.

  • List provides methods to add, remove, and access elements easily, while array requires manual manipulation.

  • Example: List names = new ArrayList<>(); String[] namesArray = new String[5];

Add your answer

Q92. What is bubble sorting?

Ans.

Bubble sorting is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.

  • Bubble sorting is a comparison-based algorithm.

  • It is named as bubble sort because smaller elements bubble to the top of the list.

  • It has a worst-case and average-case time complexity of O(n^2).

  • Example: [5, 3, 8, 4, 2] -> [3, 5, 8, 4, 2] -> [3, 5, 4, 8, 2] -> [3, 5, 4, 2, 8] -> [3, 4, 5, 2, 8] -> [3, 4, 2, 5, 8] -> [3, 4, ...read more

Add your answer

Q93. what is GC and explain in latest one

Ans.

GC stands for Garbage Collection, a process in which the runtime environment automatically manages memory by reclaiming unused objects.

  • GC is a form of automatic memory management used in programming languages like Java, C#, and Python.

  • It helps prevent memory leaks by identifying and freeing up memory that is no longer in use.

  • There are different types of GC algorithms such as Mark and Sweep, Reference Counting, and Generational GC.

  • Example: In Java, the JVM has a built-in Garba...read more

Add your answer

Q94. What is AOP and explain pointcut

Ans.

AOP stands for Aspect-Oriented Programming, which is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns.

  • AOP allows the separation of concerns that cut across multiple modules in a software application.

  • Pointcut is a set of one or more join points where advice should be executed in an AOP system.

  • Examples of pointcuts include method execution, method call, field access, etc.

Add your answer

Q95. SQL question difference between rdbms and dbms

Ans.

RDBMS is a type of DBMS that manages data in a structured format using tables with relationships.

  • RDBMS enforces referential integrity through foreign keys.

  • RDBMS supports ACID properties for transactions.

  • Examples of RDBMS include MySQL, Oracle, SQL Server.

  • DBMS is a broader term that includes RDBMS but also includes other data models like hierarchical or network databases.

Add your answer

Q96. Willing to relocate and queries

Ans.

Yes, willing to relocate. Open to discussing queries.

  • I am open to relocating for the right opportunity

  • I am willing to discuss any queries or concerns related to relocation

  • I have relocated for previous roles and am comfortable with the process

Add your answer

Q97. write syntax for switch,for each loop etc..

Ans.

Syntax for switch and for each loop

  • Switch syntax: switch(expression) { case value: // code block break; default: // code block }

  • For each loop syntax: for (type variableName : arrayName) { // code block }

  • Example for switch: switch (day) { case 1: System.out.println("Monday"); break; case 2: System.out.println("Tuesday"); break; default: System.out.println("Invalid day"); }

  • Example for for each loop: int[] numbers = {1, 2, 3, 4, 5}; for (int number : numbers) { System.out.printl...read more

Add your answer

Q98. What is Garbage Collector?

Ans.

Garbage Collector is an automatic memory management system that frees up memory occupied by objects that are no longer in use.

  • Garbage Collector is a part of the Java Virtual Machine that automatically manages memory allocation and deallocation.

  • It identifies objects that are no longer in use and frees up the memory occupied by them.

  • Garbage Collector helps prevent memory leaks and improves the performance of the application.

  • Examples of Garbage Collector in programming languages...read more

Add your answer

Q99. 1.write a program for fibonacci series

Ans.

Program to generate Fibonacci series.

  • Declare variables for first two numbers of the series

  • Use a loop to generate subsequent numbers

  • Print the series

Add your answer

Q100. how much is Expected ctc

Ans.

Expected CTC is dependent on various factors such as experience, skills, job role, and company policies.

  • Expected CTC can vary based on the candidate's experience and skillset.

  • Job role and responsibilities also play a crucial role in determining the expected CTC.

  • Company policies and budget can also impact the expected CTC.

  • It is important to research industry standards and negotiate based on market rates.

  • Expected CTC can be discussed during the interview process or after receiv...read more

Add your answer
1
2
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at SRM Group of Institutions Chennai

based on 121 interviews in the last 1 year
4 Interview rounds
Aptitude Test Round
Coding Test Round
HR Round 1
HR Round 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.7
 • 185 Interview Questions
3.8
 • 46 Interview Questions
3.8
 • 26 Interview Questions
4.2
 • 15 Interview Questions
3.0
 • 10 Interview Questions
4.3
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter