LTIMindtree
100+ SRM Group of Institutions Chennai Interview Questions and Answers
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
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?
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
Q3. Which coding language are you comfortable with?
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
What is Normalization and forms of normalization?
What are dunder methods in Python?
Q6. Do you know about sorting algorithms? What are the types of sorting algorithms? Write them,
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
Q7. How will you write a program to . For example, create a calculator
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.
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 moreInterview 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
Q1. Introduction
Q2. Strengths and Weaknesses
Q3. Are you willing to relocate ?
How to create a Context Manager?
Q11. eliminate repeated array from the given string
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
What are the different types of joins in SQL?
Q13. What is the method to swap two numbers without using any third variable?
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.
Q14. Write a Program to print the following pattern: * * * * * * * * * * * * * * *
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
What are generators and decorators?
Q16. What is the process for managing hotfix changes in a production environment?
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
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).
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
Q18. What is the difference between order by and group by in sql Why we use oops Scenario based question -3
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
Q19. What programming languages are you comfortable in ?
I am comfortable in programming languages such as Java, Python, and JavaScript.
Java
Python
JavaScript
Q20. Explain your project and which algorithm you used in it. Why that algorithm?
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.
Q21. How can we expose an Rest API using spring boot?
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.
Q22. What are the methods to scale up a Kubernetes cluster?
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
Q23. you're well versed with C programming? write a code for addition and multiplication of matrix
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
Q24. 1. Which programming language you are comfortable with?
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
Q25. How do you open command prompt in Windows ?
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
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?
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
Q27. What is the concept of inheritance in programming?
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
Q28. Are you willing to allocate? Write a program of pass data through function and Explain.
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
Q29. How to copy data of all the gdg versions into a single ps file using jcl
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.
Difference between List and Array
Q31. What is linked list?
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
Q32. Write down Fibonacci series and also explain pseudo code for it?
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
Q33. Remove all the pcs from the lab and keep in other lab RIGHT NOW?
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
Q34. Write a program to print unique elements in an array in java
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
Q35. code based on reverse a string and search an element.
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; }
Q36. How to remove extra spaces in Python ?
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.
Q37. What is abstraction? Explain with example
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.
Q38. 2. Tell me about software testing methodologies?
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
Q39. How do you open Device Manager In windows ?
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
Q40. HashMap storing and fetching the elements in various ways using java 7 and 8 as well.
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
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
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
Q42. Write a program to replace the character with another character in java.
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
Q43. What is oops?what is difference between static and final?
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
Q44. What are the OOPs concept explain?
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
Q45. What are the access speacifier In C language?
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
Q46. Comparable and comparator concepts and sorting by use of comparator functional Interface.
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
Q47. 3. What is difference between list and set?
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.
Q48. What are the concepts of Object-Oriented Programming (OOP)?
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
Q49. what is the difference between method overloading and overrding
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
Q50. What are the selectors in css
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).
Q51. What are Isolation level in Db2
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
Q52. Find the unique element in the array?
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
Q53. Address of a particular element in an array. And adress of 0th index is given
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.
Q54. Why windows function are not being used in where clause?
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.
Q55. Find the output of the following code snippets
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
Q56. What do you know about java?
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
Q57. Which is the fastest sorting algorithm?
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.
Q58. Explain Inheritance and Encapsulation with real-time examples.
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
Q59. Create a function and print the addition of two number
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
Q60. How to create end to end pipeline from Jenkins
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
Q61. What are Compute Services in AZURE, explain
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
Q62. What is PEGA, and what motivated you to learn it?
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
Q63. what are types of joins, explain inner join
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
Q65. Areas of strength and weekness .
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)
Q66. What do you know about LTIMindtree?
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
Q67. write a java program to swap two numbers without using third number
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
Q68. write a code to print prime numbers upto 100
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
Q69. How React lifecycle work indepth knowledge.
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
Q70. Write algorithm for matrix multiplication?
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
Q71. Introduction yourself What is c Prime number program N++,n+1 operate first
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
Q72. Write a program on bubble sort and explain it?
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
Q73. Program for Odd and Even number
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.
Q74. What is java? What is polymerization
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
Q75. How good are you in DBMS tools?
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
Q76. what are java 8 features explain in detail
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
Q77. What is oops concepts?
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
Q78. write a logic for fibonocci series with recursion
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
Q79. what is SDLC and elaborate it?
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
Q80. find greatest in an array without using any inbuilt functions
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.
Q81. Normalisation in SQL and functions in Java
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
Q82. Tuple is mutable or not if not change it
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.
Q83. What is abstract class and interface?
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())
Q84. Find the max and min number in the array
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
Q85. write a program to generate fibonacci number
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
Q86. What are the Types of Triggers
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.
Q87. Write a program Sum the digit?
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
Q88. Why java is platform dependent?
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
Q89. What is Constructor?
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.
Q90. What are the Oops concepts?
Oops concepts are the fundamental principles of Object-Oriented Programming.
Abstraction
Encapsulation
Inheritance
Polymorphism
Q91. List vs Array what are the differences
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];
Q92. What is bubble sorting?
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
Q93. what is GC and explain in latest one
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
Q94. What is AOP and explain pointcut
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.
Q95. SQL question difference between rdbms and dbms
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.
Q96. Willing to relocate and queries
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
Q97. write syntax for switch,for each loop etc..
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
Q98. What is Garbage Collector?
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
Q99. 1.write a program for fibonacci series
Program to generate Fibonacci series.
Declare variables for first two numbers of the series
Use a loop to generate subsequent numbers
Print the series
Q100. how much is Expected ctc
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
More about working at LTIMindtree
Top HR Questions asked in SRM Group of Institutions Chennai
Interview Process at SRM Group of Institutions Chennai
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month