LTIMindtree
1500+ Mayank Propmart 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
You are given an array ‘ARR’ of 'N' integers. Your task is to find the longest harmonious subsequence of this array.
A sequence is Harmonious if the difference between the maximum ...read more
You are given an integer 'N'. You need to find the sum of squares of the first 'N' natural numbers.
For example:
If 'N' = 4. You need to return 1^2 + 2^2 + 3^2 + 4^2 = 3...read more
Tanmay and Rohit are best buddies. One day Tanmay gives Rohit a problem to test his intelligence and skills. He gives him an array of N natural numbers and asks him to solve the following queri...read more
Q5. 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
Q6. 1) If you are given a card with 1-1000 numbers and there are 4 boxes. Card no 1 will go in box 1 , card 2 in box 2 and similarly it will go. Card 5 will again go in box 1. So what will be the logic for this cod...
read moreLogic for distributing cards among 4 boxes in a circular manner.
Use modulo operator to distribute cards among boxes in a circular manner.
If card number is divisible by 4, assign it to box 4.
If card number is divisible by 3, assign it to box 3.
If card number is divisible by 2, assign it to box 2.
If card number is not divisible by any of the above, assign it to box 1.
You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.
For example:
If the given string is: STR = "abcde". You hav...read more
You're given string ‘STR’ consisting solely of “{“, “}”, “(“, “)”, “[“ and “]” . Determine whether the parentheses are balanced.
Input Format:
The first line contains an Integer 'T' which denot...read more
Ninja has been given two sparse matrices ‘MAT1’ and ‘MAT2’ of integers having size ‘N’ x ‘M’ and ‘M’ x ‘P’, respectively.
A sparse matrix is a matrix that contains very few non-zero element...read more
Q10. 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?
For a given array/list of integers of size N, print the Next Greater Element(NGE) for every element. The Next Greater Element for an element X is the first element on the right side of X in ...read more
What are dunder methods in Python?
You have been given a sorted (lexical order) dictionary of an alien language. Write a function that finds the order of characters in the alien language. This dictionary will be given to you in t...read more
Prateek is a kindergarten teacher. He wants to give some candies to the children in his class. All the children stand in a line and each of them has a grade according to his or her performance in the cla...read more
Q16. 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
You are given a singly linked list and an integer ‘K’. You are supposed to make ‘K’ th node from the end of a linked list as the starting node of the linked list.
Note :
Given ‘K’ will always b...read more
Given an array/list of integer numbers 'CHOCOLATES' of size 'N', where each value of the array/list represents the number of chocolates in the packet. There are ‘M’ number of students and the t...read more
You are given a square matrix of non-negative integers of size 'N x N'. Your task is to rotate that array by 90 degrees in an anti-clockwise direction without using any extra spac...read more
Ninja has a binary string ‘S’ of length ‘N’. Initially, all the characters in a string are ‘1’, i.e.
S[i] = ‘1’ for each 1 <= ‘i’ <= ‘N’.
An operation is defined as choosing a number between 1 to ...read more
Q21. 1.data dictionary concept-table creation steps How do you maintain TMG? What is one step and two step? Where do you use the search help and types of search help? What are lock objects? Difference between struct...
read moreQuestions related to SAP ABAP concepts and terminology.
Data dictionary concept and table creation steps
TMG maintenance
One step and two step
Search help and types of search help
Lock objects
Difference between structure and table
Views and types of views
Q22. 5.enhancements What is enhancements? Types of enhancements? How do you find an exit? Difference between classic badi and kernel badi? Difference between customer exit and user exit? Types of customer exit? Type...
read moreEnhancements are ways to modify SAP standard functionality. There are various types of enhancements and exits available.
Enhancements are used to modify SAP standard functionality without changing the original code
Types of enhancements include user exits, customer exits, BAdIs, enhancement spots, and enhancement frameworks
Exits are identified by searching for function modules with names containing 'EXIT_' or 'SMOD_'
Classic BAdIs are implemented using function modules, while ke...read more
Nth term of Fibonacci series F(n), where F(n) is a function, is calculated using the following formula -
F(n) = F(n-1) + F(n-2), Where, F(1) = F(2) = 1
Provided N you have to find out the ...read more
You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.
For example:
If the given string is: STR = "abcde". You h...read more
Q25. 6.sap script and smart form? Types of window in sap script and smart form Is script is client dependent or independent? Difference between script and smart form? Tell me the tcodes used for smart forms and scri...
read moreQuestions related to SAP ABAP scripting and smart forms.
SAP Script and Smart Forms are used for creating and printing forms in SAP systems.
SAP Script has client dependency while Smart Forms are client independent.
SAP Script uses function modules like OPEN_FORM, WRITE_FORM, and CLOSE_FORM.
Smart Forms use function modules like SMARTFORM_FILL_OUT, SMARTFORM_GET_SMARTFORMS_LIST, and SMARTFORM_GET_PRINT_PDFS.
SAP Script has fewer features compared to Smart Forms.
SAP Script has wind...read more
Q26. Your introduction? What are oops concept? What is inheritance? What is difference between c and c++? Write a code to print sum of all prime no. Between 1to100? What is primary key and foreign key? Difference be...
read moreAnswers to questions asked in a Graduate Engineer Trainee interview
OOPs concepts include encapsulation, inheritance, polymorphism, and abstraction
Inheritance is a mechanism where a new class is derived from an existing class
C++ is an object-oriented programming language while C is a procedural programming language
Code to print sum of prime numbers between 1 to 100: [code snippet]
Primary key is a unique identifier for a record in a table while foreign key is a field in a table...read more
Q27. Explain any terraform project that I did recently also what were the variables you defined in terraform configuration, how will you access a storage account blob container from more than one subscriptions from ...
read moreExplaining recent Terraform project, accessing storage account blob container from multiple subscriptions, Azure DevOps variable group and pipeline, and brief on Ansible role.
Recently worked on Terraform project to provision Azure resources
Defined variables in Terraform configuration for resource names and sizes
Accessed storage account blob container from multiple subscriptions using shared access signature (SAS) tokens
Current project infrastructure in Azure includes virtual ...read more
Q28. 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.
Q29. 2.Reports: Events in classical reports and explain? Events in interactive reports? Difference between at pf status and user command? Tell me the function module you last used in your report? How do you debug th...
read moreQuestions related to SAP Abap reports and debugging
Events in classical reports are start-of-selection, end-of-selection, and top-of-page. In interactive reports, events are at-line-selection, at-user-command, and top-of-page.
AT PF status is used to define the status of the screen, while user command is used to define the actions that can be performed on the screen.
The function module used in a report depends on the requirement. For example, if we need to convert a date from o...read more
Q30. 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 ?
Q32. 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
How to create a Context Manager?
Q34. What should be done when a defect is found in production?
Defects found in production should be immediately reported and a plan should be made to fix the issue.
Report the defect to the development team and stakeholders
Analyze the impact of the defect on the system and users
Prioritize the defect based on severity and impact
Create a plan to fix the defect and test the fix thoroughly
Deploy the fix to production after testing
Monitor the system to ensure the defect has been resolved
Q35. in Angular what is services and how to call service api, and how bind our data with in component.
Services in Angular are singleton objects that provide functionality to components. They can be called using dependency injection.
Services are used to share data and functionality across multiple components
They can be created using the 'ng generate service' command
Services can be injected into components using the constructor
To call a service API, use Angular's HttpClient module
Data can be bound to components using property binding or two-way binding
What are the different types of joins in SQL?
Q37. 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
Q38. 1. Difference between calculate and filter function. 2. What is pivot and unpivot table in power bi? 3. Optimization techniques in power bi. 4. Types of gateways in power bi. 5. Difference between star and snow...
read moreQuestions related to Power BI
Calculate function is used to create new columns based on a formula while filter function is used to filter data based on a condition.
Pivot table is used to summarize and aggregate data while unpivot table is used to transform data from wide to long format.
Optimization techniques include reducing data model size, using calculated columns instead of measures, and minimizing data refresh frequency.
Types of gateways include personal, on-premises, and...read more
Q39. How do you performed incrimental load in your project?
Incremental load is performed by identifying new data and adding it to the existing data set.
Identify new data based on a timestamp or unique identifier
Extract new data from source system
Transform and map new data to match existing data set
Load new data into target system
Verify data integrity and consistency
What are generators and decorators?
Q41. 1. diff b/w findelements vs findelement? 2. set vs map? 3. wap for occurences of characters 4. wap for fibonacci series 5. write xpath from a website(they will tell the exact location) 6. How to get galues from...
read moreAnswers to various technical questions related to automation testing and software development.
findElements vs findElement: findElements returns a list of web elements matching the locator, while findElement returns the first web element matching the locator.
Set vs Map: Set is a collection of unique elements, while Map is a collection of key-value pairs.
Program for occurrences of characters: Write a program to count the occurrences of each character in a given string.
Program f...read more
Q42. 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
Q43. 1. Difference between sum and sumx function in power bi. 2. What is X Velocity in power BI ? 3. Types of filters in power bi. 4. Types of connection mode in power bi.
Answers to Power BI related questions.
sum function adds up the values in a column, while sumx function adds up the result of an expression evaluated for each row in a table
X Velocity is a feature in Power BI that allows for faster data processing and analysis
Types of filters in Power BI include visual level filters, page level filters, and report level filters
Types of connection mode in Power BI include Import, DirectQuery, and Live Connection
Q44. What is meant by regression and retesting?
Regression is testing to ensure changes do not affect existing functionality. Retesting is testing to ensure defects have been fixed.
Regression testing is done to ensure that changes made to the software do not affect the existing functionality.
Retesting is done to ensure that defects found during testing have been fixed.
Regression testing is done after every change to the software.
Retesting is done after a defect has been fixed.
Regression testing is automated to save time an...read more
Q45. What are a concurrent hashmap and its advantage over a normal hashmap?
Concurrent hashmap allows multiple threads to access and modify the map concurrently without causing data inconsistency.
Concurrent hashmap is thread-safe and allows multiple threads to access and modify the map concurrently.
It uses a technique called lock striping to divide the map into segments and apply locks to each segment instead of the entire map.
This allows multiple threads to access different segments of the map concurrently without causing data inconsistency.
Concurre...read more
Q46. Explain microservice architecture and how do we implement that using spring boot
Microservice architecture is a design approach where an application is composed of small, independent services that communicate over well-defined APIs.
Break down the application into smaller, loosely coupled services that can be developed, deployed, and scaled independently.
Each service focuses on a specific business capability and communicates with other services through APIs.
Spring Boot provides a convenient framework for building microservices by offering features like emb...read more
Q47. 1. Introduce yourself 2. Predict the output for a program that would throw DivideByZeroException 3. Write a program to find factorial 4. Write a program: "Welcome To Mindtree" to "Mindtree To Welcome" 5. Compon...
read moreThe interview questions cover topics like introducing oneself, predicting program output, writing programs, Selenium components, Cucumber, and API encryption.
Introduce yourself confidently, highlighting relevant experience and skills.
To predict the output of a program that throws DivideByZeroException, understand how the exception is handled in the code.
Write a program to find factorial using loops or recursion.
To reverse the words in a string, split the string into words, re...read more
Q48. 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
Q49. 3.module pool programming Events in module pool ? Difference between process before output and process after input? What is the default screen number?
Module pool programming events, process before output and process after input, default screen number.
Events in module pool include initialization, start-of-selection, end-of-selection, and others.
Process before output is used to modify screen elements before they are displayed, while process after input is used to validate user input.
The default screen number is 1000.
Q50. 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.
Q51. if you change the infrasrtuctur in aws management console will it change statefile
Yes, changing infrastructure in AWS management console will change statefile.
Any changes made in the AWS management console will be reflected in the statefile.
The statefile is a record of the current state of the infrastructure.
For example, if you add a new EC2 instance in the management console, it will be reflected in the statefile.
Q52. 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.
Q1. He asked for an end to end explanation of my last project.
Q2. Why do you want to join Larsen & Toubro Infotech?
Q54. 7.Idoc Steps to create an idoc? Steps to reprocess the idoc? How do you debug the idoc?
Steps to create, reprocess and debug an IDoc in SAP ABAP.
To create an IDoc, define the message type, basic type, and segment structure in WE31.
Create a function module to populate the IDoc data and trigger the IDoc creation using WE19.
To reprocess an IDoc, use transaction BD87 and select the IDoc to be reprocessed.
Check the error message and correct the issue before reprocessing the IDoc.
To debug an IDoc, set a breakpoint in the function module used to create the IDoc.
Use tra...read more
What is alter command ?
He gave me a question and asked me to perform queries on that.
Q57. Explain Python Data Structures and advantages and some differences in each
Python data structures are containers that hold data in an organized manner, each with its own advantages and differences.
Python lists are versatile and can hold different data types.
Tuples are immutable and can be used as keys in dictionaries.
Sets are unordered and eliminate duplicate elements.
Dictionaries store data in key-value pairs for efficient retrieval.
Q58. 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
Q59. 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
Q60. What is Difference between anotation and decorators
Annotations are used in Java while decorators are used in Python.
Annotations are used to provide metadata to the code and can be accessed at runtime.
Decorators are used to modify the behavior of a function or class.
Annotations are declared using the @ symbol in Java while decorators use the @ symbol in Python.
Annotations are part of the language syntax in Java while decorators are implemented using functions in Python.
Q61. 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
Q62. what are Terraform workspaces, what is a null resource in terraform, what is git fetch and how it's different from git pull, What is a load balancer in azure, what is an application gateway in azure, what are p...
read moreQuestions related to Azure DevOps Engineer role
Terraform workspaces are used to manage multiple environments with the same codebase
Null resource in Terraform is used to execute arbitrary code that doesn't create any resources
Git fetch downloads changes from the remote repository but doesn't merge them with the local branch
Load balancer in Azure distributes incoming traffic across multiple virtual machines
Application gateway in Azure is a web traffic load balancer that can als...read more
Q63. Can we write int func() and int func(int a) in a single class?
Yes, we can write int func() and int func(int a) in a single class.
We can overload the function with different parameters.
The function with no parameter is called default constructor.
Example: class MyClass { int func(); int func(int a); };
Both functions can have different implementations.
Q64. What is Functional interface and way of implementing it
Functional interface is an interface with only one abstract method, can be implemented using lambda expressions.
Functional interface has only one abstract method
Can be implemented using lambda expressions
Used in Java to achieve functional programming
Q65. What is the request filter for API requests and how is it configured to utilise different forms of authentication?
Request filter for API requests is a mechanism to intercept and process incoming requests before they reach the intended endpoint.
Request filters can be implemented using frameworks like Spring Security in Java.
They can be configured to support different forms of authentication such as basic authentication, OAuth, JWT, etc.
Authentication mechanisms can be specified in the filter configuration to validate incoming requests before processing.
Q66. 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
Difference between List and Array
Q68. 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.
Q69. Explain BDD concepts a) What is dryRun ? b) What is hooks? c) Where does the execution start at a BDD framework ? (Ans: TestRunner file) d) What is a glue ? e) Difference between Scenario Outline and Scenario C...
read moreQ70. How can a circuler cake can be cut into 8 equal pieces with 3 cuts only?
A circular cake can be cut into 8 equal pieces with 3 cuts only by cutting the cake into quarters and then making a diagonal cut.
Cut the cake into quarters with two cuts, creating four equal pieces.
Make a diagonal cut from the center of the cake to the edge, dividing each quarter into two equal pieces.
This will result in eight equal pieces of cake with only three cuts.
What is LRU algorithm?
Which of the following statement about semaphore is true?
Q72. How do you configure and verify custom DNS in Azure AD?
To configure and verify custom DNS in Azure AD, follow these steps:
Create a DNS zone in Azure DNS
Add a custom domain to Azure AD
Create a CNAME record in the DNS zone that points to the Azure AD domain
Verify the custom domain in Azure AD
Update the DNS registrar to use the Azure DNS name servers
Test the custom DNS by accessing Azure AD resources using the custom domain
Q73. When do we do the regression testing and why?
Regression testing is performed to ensure that changes or updates to a software application do not introduce new defects or impact existing functionality.
Regression testing is done after making changes to the software application.
It helps in identifying any unintended side effects of the changes.
It ensures that previously working features are not broken due to the changes.
Regression testing is typically performed during the testing phase of the software development lifecycle....read more
Q74. How do you know about this type of ID related issues because you are not completed it with your degree but you know everything how to learn it and how to based IT
I have gained knowledge and skills in ID related issues through self-learning and practical experience.
I have a strong passion for technology and have actively pursued learning about ID related issues outside of my degree.
I have taken online courses, attended workshops, and participated in hands-on projects to enhance my knowledge in this area.
I have also sought guidance from experienced professionals and engaged in self-study to stay updated with the latest developments.
I ha...read more
Q75. If you want very less latency - which is better standalone or client mode?
Client mode is better for very less latency due to direct communication with the cluster.
Client mode allows direct communication with the cluster, reducing latency.
Standalone mode requires an additional layer of communication, increasing latency.
Client mode is preferred for real-time applications where low latency is crucial.
Q76. 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
Q77. What is meant by fact and dimension table?
Fact table contains quantitative data while dimension table contains descriptive data.
Fact table stores data related to business processes and events
Dimension table stores descriptive information about the data in the fact table
Fact table is usually larger than dimension table
Fact table is connected to dimension table through foreign keys
Example: Sales fact table and product dimension table
Q78. What is a join and different types of joins?
A join is a SQL operation that combines rows from two or more tables based on a related column between them.
Types of joins include inner join, left join, right join, and full outer join.
Inner join returns only the matching rows from both tables.
Left join returns all rows from the left table and matching rows from the right table.
Right join returns all rows from the right table and matching rows from the left table.
Full outer join returns all rows from both tables, with NULL v...read more
Q79. When a spark job is submitted, what happens at backend. Explain the flow.
When a spark job is submitted, various steps are executed at the backend to process the job.
The job is submitted to the Spark driver program.
The driver program communicates with the cluster manager to request resources.
The cluster manager allocates resources (CPU, memory) to the job.
The driver program creates DAG (Directed Acyclic Graph) of the job stages and tasks.
Tasks are then scheduled and executed on worker nodes in the cluster.
Intermediate results are stored in memory o...read more
Q80. 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
How to create Immutable class?
State strength and weakness
How do you respond to change?
Q83. Print the odd numbers inbetween 1 to 10 and greater than 5 using streams
Using Java streams to print odd numbers between 1 to 10 and greater than 5
Use IntStream.range() to generate numbers from 1 to 10
Filter the numbers using filter() to get odd numbers
Use filter() again to get numbers greater than 5
Print the numbers using forEach()
Q84. How many types of subscription in power BI report reserver
There are two types of subscriptions in Power BI Report Server.
The two types of subscriptions are Power BI Report Server Standard and Power BI Report Server Enterprise.
The Standard subscription allows for a single server deployment, while the Enterprise subscription allows for a distributed deployment.
The Enterprise subscription also includes additional features such as high availability and disaster recovery.
Both subscriptions require a license for each user accessing the re...read more
Q85. 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
Q86. 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
Q87. What are the advantages of hibernate framwork?
Hibernate framework provides ORM capabilities, simplifies database access, and improves performance.
Hibernate reduces boilerplate code by providing ORM capabilities.
It simplifies database access by abstracting away the underlying SQL.
Hibernate improves performance by caching data and reducing database round trips.
It supports lazy loading, which improves performance by loading data only when needed.
Hibernate supports multiple database vendors and provides transaction managemen...read more
Q88. What is vmware, what is diffence between standard and DV switch, what is BSOD, how to troubleshoot BSOD in windows server, how to troubleshoot corrupted OS, what patching tools you use
Answering questions related to VMware, BSOD, troubleshooting, and patching tools.
VMware is a virtualization software that allows multiple operating systems to run on a single physical machine.
Standard switch is a virtual switch that connects virtual machines to the physical network, while DV switch is a distributed virtual switch that allows for centralized management of network configurations.
BSOD stands for Blue Screen of Death, which is an error screen displayed on Windows...read more
Q89. How do you do performance optimization in Spark. Tell how you did it in you project.
Performance optimization in Spark involves tuning configurations, optimizing code, and utilizing caching.
Tune Spark configurations such as executor memory, number of executors, and shuffle partitions.
Optimize code by reducing unnecessary shuffles, using efficient transformations, and avoiding unnecessary data movements.
Utilize caching to store intermediate results in memory and avoid recomputation.
Example: In my project, I optimized Spark performance by increasing executor me...read more
Q90. 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; }
Q91. List - Stores all types of elements Array - Stores one type of element and in sequential memory blocks hence faster access
An array stores one type of element in sequential memory blocks for faster access.
Arrays are useful for storing and accessing data in a specific order.
They can be used to store numbers, characters, or other data types.
Arrays can be multidimensional, allowing for more complex data structures.
Accessing elements in an array is done using an index, starting at 0.
Arrays can be resized dynamically in some programming languages.
Q92. 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.
Q93. What is the conditional property of Spring beans and how is it configured?
Conditional property in Spring beans allows for conditional bean creation based on specified conditions.
Conditional property is used to conditionally create beans based on certain conditions.
It is configured using @Conditional annotation on the bean definition class.
Examples include @ConditionalOnProperty, @ConditionalOnClass, @ConditionalOnMissingBean, etc.
Q94. How do you enable pagination in responses from a REST API ?
Pagination in REST API responses can be enabled by using query parameters like 'page' and 'limit'.
Use query parameters like 'page' and 'limit' to specify the page number and number of items per page.
Implement logic in the backend to fetch and return the appropriate subset of data based on the page and limit values.
Include metadata in the response to indicate total number of items and current page number.
Example: /api/users?page=2&limit=10 will return the second page of 10 use...read more
Q95. How would you implement a JUnit test for a REST API that you have developed?
Implementing JUnit test for a REST API
Create a test class for the REST API endpoints
Use @RunWith(SpringRunner.class) and @SpringBootTest annotations
MockMvc to perform HTTP requests and validate responses
Use @Autowired to inject dependencies for testing
Assert statements to verify expected results
Q96. What is overloading and overriding ? What are locators in Selenium? What is the syntax of xpath locator ? What are the methods to write the test cases? Is it mandatory to have input tag in defining xpath?
Answers to questions related to automation testing using Selenium
Overloading is when a method has the same name but different parameters in the same class, while overriding is when a subclass provides its own implementation of a method already defined in its superclass
Locators in Selenium are used to identify web elements on a web page
The syntax of xpath locator is //tagname[@attribute='value']
Methods to write test cases include boundary value analysis, equivalence partitioni...read more
Q97. 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
Q98. What are custom middleware? Have you implemented in previous project how
Custom middleware are functions that have access to the request and response objects in an Express application's request-response cycle.
Custom middleware can be used to perform tasks such as logging, authentication, error handling, etc.
Middleware functions can be added to the request handling chain using the 'use' method in Express.
An example of custom middleware implementation is adding a function to log request details before passing it to the route handler.
Q99. 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
Q100. 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
More about working at LTIMindtree
Top HR Questions asked in Mayank Propmart
Interview Process at Mayank Propmart
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month