Premium Employer

Infosys

3.6
based on 37.8k Reviews
Filter interviews by

4000+ NR Crew Interview Questions and Answers

Updated 7 Jan 2025
Popular Designations

Q201. Count Ways to Reach the N-th Stair Problem Statement

You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or two step...read more

View 4 more answers

Q202. Distinct Strings With Odd and Even Swapping Allowed Problem Statement

You are provided with an array of strings, and your objective is to determine the number of unique strings within it.

A string is deemed uni...read more

View 2 more answers

Q203. Maximum Subarray Sum Problem Statement

Given an array arr of length N consisting of integers, find the sum of the subarray (including empty subarray) with the maximum sum among all subarrays.

Explanation:

A sub...read more

View 5 more answers

Q204. Pair Sum Problem Statement

You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.

Note:

Each pa...read more

View 2 more answers
Discover NR Crew interview dos and don'ts from real experiences

Q205. Valid Parenthesis Problem Statement

Given a string str composed solely of the characters "{", "}", "(", ")", "[", and "]", determine whether the parentheses are balanced.

Input:

The first line contains an integ...read more
Add your answer

Q206. Khaled has an array A of N elements. It is guaranteed that N is even. He wants to choose at most N/2 elements from array A. It is not necessary to choose consecutive elements. Khaled is interested in XOR of all...

read more
Ans.

Choose at most N/2 elements from an array A of N elements and find XOR of all the chosen elements.

  • Choose the N/2 largest elements to maximize the XOR value.

  • Use a priority queue to efficiently select the largest elements.

  • If N is small, brute force all possible combinations of N/2 elements.

View 1 answer
Are these interview questions helpful?

Q207. Print All Subsets Challenge

Given an array arr containing 'N' distinct integers, your task is to generate all possible non-empty subsets of this array.

Note: While the elements within each subset should be in i...read more

Add your answer

Q208. Quick Sort Problem Statement

You are provided with an array of integers. The task is to sort the array in ascending order using the quick sort algorithm.

Quick sort is a divide-and-conquer algorithm. It involve...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q209. What are oops concepts?

Ans.

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

  • Encapsulation: Binding data and functions together in a single unit.

  • Inheritance: Acquiring properties and behavior of a parent class by a child class.

  • Polymorphism: Ability of an object to take many forms.

  • Abstraction: Hiding the implementation details and showing only the necessary information.

  • Example: A car is an object that encapsulates data like speed, fuel, and functions like start, stop, and accel...read more

View 18 more answers

Q210. 1. what is the difference between exception and error. How did u solve the errors in the code deployment?

Ans.

Exception is a runtime error that can be handled, while error is a severe issue that cannot be handled.

  • Exceptions are caused by the program logic, while errors are caused by external factors like hardware failure or network issues.

  • Exceptions can be caught and handled using try-catch blocks, while errors require fixing the underlying issue.

  • Example of exception: NullPointerException. Example of error: Out of Memory Error.

  • To solve errors in code deployment, identify the root cau...read more

View 15 more answers

Q211. Generate All Parentheses Combinations

Given an integer N, your task is to create all possible valid parentheses configurations that are well-formed using N pairs. A sequence of parentheses is considered well-fo...read more

Add your answer

Q212. Trie Implementation Task

Create a Trie data structure supporting two operations: inserting words and checking their presence. A Trie organizes data like a tree structure, where each node stores letters of words...read more

Add your answer

Q213. Merge Sort Linked List Problem Statement

You are given a singly linked list of integers. Your task is to sort the linked list using the merge sort algorithm.

Explanation:

Merge Sort is a divide and conquer algo...read more

Add your answer

Q214. String Compression Problem Statement

Ninja needs to perform basic string compression. For any character that repeats consecutively more than once, replace the repeated sequence with the character followed by th...read more

Add your answer

Q215. Ninja And Divisible Array Problem Statement

Ninja is tasked with dividing an array ARR of even size N and an integer K into N/2 pairs such that the sum of each pair is divisible by K.

Your goal is to determine ...read more

Add your answer

Q216. Split the String Problem Statement

You are given a string str consisting of N lowercase alphabets. Your task is to determine if it is possible to divide the string into three non-empty substrings such that one ...read more

View 2 more answers

Q217. Group Anagrams Problem Statement

Given an array or list of strings called inputStr, your task is to return the strings grouped as anagrams. Each group should contain strings that are anagrams of one another.

An...read more

Add your answer

Q218. What is your strong point in terms of technical knowledge? Like JAVA, C, C++. What is inheritance? What are the different types of inheritance? What are any two the differences between C++ and Java? How modular...

read more
Ans.

My strong point is Java. I have a good understanding of inheritance, modularity, and abstraction. I also have knowledge of C++.

  • Inheritance is a mechanism in OOP where a new class is derived from an existing class. Types of inheritance are single, multiple, multilevel, and hierarchical.

  • C++ is a compiled language while Java is an interpreted language. C++ supports operator overloading while Java does not.

  • Modularity in C++ is achieved through the use of header files and namespac...read more

View 7 more answers

Q219. Glowing Bulbs Problem Statement

You have an infinite number of electric bulbs, each assigned a unique integer starting from 1. There are 'N' switches, each labeled with a unique prime number. When a switch labe...read more

Add your answer

Q220. 1. Journal entry for Purchase with GST 2. Explain any one Ind AS 3. What is SAP? 4. What is ERP? 5. Why IT industry? 6. What is the use of Flash-Fill in Excel? 7. Any 5 excel features. (Pivot table, macros, fla...

read more
Ans.

Interview questions for SAP Fico Consultant

  • Journal entry for Purchase with GST involves debiting the Purchases account and crediting the Input GST account

  • Ind AS stands for Indian Accounting Standards, one of which is Ind AS 116 on Leases

  • SAP is a software company that provides enterprise software to manage business operations and customer relations

  • ERP stands for Enterprise Resource Planning, a software system that integrates business processes and data

  • IT industry offers opport...read more

View 2 more answers

Q221. What are the services you have used in AWS? What are the types of storage in S3? How will you troubleshoot if a web server is not responding? Have you come across DNS hosting, in AWS how can we achieve it? What...

read more
Ans.

AWS services, S3 storage types, troubleshooting web server, DNS hosting, static hosting, IAM policies, load balancers, NAT gateway

  • Used EC2, S3, RDS, Lambda, CloudFront, etc.

  • S3 storage types: Standard, Infrequent Access, Glacier

  • Check server logs, network connectivity, security groups, etc.

  • DNS hosting can be achieved using Route 53

  • Static hosting is used to host static websites using S3 and CloudFront

  • Roles define permissions for AWS resources, service rules define access to spec...read more

Add your answer

Q222. Number of Islands Problem Statement

Given a non-empty grid of 0s and 1s, determine the number of distinct islands. An island is a collection of '1's (land) connected horizontally, vertically, or diagonally. It ...read more

Add your answer
Asked in
SDE Interview

Q223. Longest Increasing Subsequence Problem Statement

Given an array of integers with 'N' elements, determine the length of the longest subsequence where each element is greater than the previous element. This subse...read more

Add your answer

Q224. Flip Bits Problem Explanation

Given an array of integers ARR of size N, consisting of 0s and 1s, you need to select a sub-array and flip its bits. Your task is to return the maximum count of 1s that can be obta...read more

Add your answer
Asked in
SDE Interview

Q225. Return Subsets Sum to K Problem Statement

Given an integer array 'ARR' of size 'N' and an integer 'K', return all the subsets of 'ARR' which sum to 'K'.

Explanation:

A subset of an array 'ARR' is a tuple that c...read more

Add your answer
Q226. Which should be preferred between String and StringBuffer when there are many updates required to the data?
Add your answer
Q227. What are the integrity rules in a Database Management System (DBMS)?
Add your answer

Q228. 1. What is the frame work u have worked and explain the framework with folder structure? 2. purely based on testing, different testing types like functional and non functional tests 3. real time scenarios like...

read more
Ans.

Test Engineer interview questions on frameworks, testing types, bug tracking, and regression testing.

  • Worked with Selenium framework with folder structure of test cases, test data, and page objects

  • Functional testing includes smoke, sanity, and regression testing while non-functional testing includes performance and security testing

  • Real-time scenario: prioritize and fix critical bugs first, communicate with stakeholders, and perform thorough testing before release

  • Integration te...read more

View 3 more answers

Q229. What is SQL? Explain in detail.

Ans.

SQL is a programming language used to manage and manipulate relational databases.

  • SQL stands for Structured Query Language.

  • It is used to create, modify, and query databases.

  • SQL is used in various industries such as finance, healthcare, and e-commerce.

  • Examples of SQL commands include SELECT, INSERT, UPDATE, and DELETE.

  • SQL is used to retrieve specific data from a database using queries.

View 3 more answers

Q230. What do you mean by Git stash? what are the different ways of git merge? Can you differentiate between git pull and git fetch? what is the branching strategy in Git and how will you create a new branch and swit...

read more
Ans.

Git stash is a feature that allows you to temporarily save changes without committing them.

  • Different ways of git merge: fast-forward, recursive, octopus

  • Git pull: fetches and merges changes from a remote branch, Git fetch: only fetches changes

  • Branching strategy in Git: Gitflow, trunk-based development, feature branching

  • To create a new branch: git branch , to switch to it: git checkout

  • Secrets should not be stored in Git repo, use a secure key management system

  • Staging area in G...read more

Add your answer

Q231. write a code to filter out loans with incomplete status using java 8 features.

Ans.

Code to filter out loans with incomplete status using Java 8 features.

  • Use stream() method to convert the list of loans into a stream

  • Use filter() method to filter out loans with incomplete status

  • Use collect() method to collect the filtered loans into a new list

View 5 more answers
Q232. What is meant by multitasking and multithreading in operating systems?
Add your answer
Q233. What is the garbage collector in Java?
Add your answer

Q234. What is accountant and how many basic rules are there

Ans.

An accountant is a professional who manages financial records and prepares financial reports. There are basic rules of accounting.

  • Accountants manage financial records and prepare financial reports

  • Basic rules of accounting include the accounting equation, double-entry accounting, and the matching principle

  • Accountants must follow generally accepted accounting principles (GAAP) and maintain ethical standards

  • Examples of accounting tasks include bookkeeping, tax preparation, and f...read more

View 15 more answers

Q235. Intersection of Linked List Problem

You are provided with two singly linked lists containing integers, where both lists converge at some node belonging to a third linked list.

Your task is to determine the data...read more

Add your answer

Q236. How to select a record from a table?

Ans.

To select a record from a table, use the SELECT statement with appropriate conditions.

  • Use the SELECT statement with the appropriate columns to retrieve data from the table.

  • Specify the table name in the FROM clause.

  • Use the WHERE clause to specify the conditions for selecting the record.

  • Example: SELECT * FROM table_name WHERE column_name = 'value';

Add your answer

Q237. Rotting Oranges Problem Statement

You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:

  • 0 - representing an empty cell
  • 1 - representing a fresh orange...read more
Add your answer

Q238. What are OOP concepts? Tell me about the pillars of Object Oriented Programming.

Ans.

OOP concepts are the building blocks of Object Oriented Programming. The four pillars of OOP are Abstraction, Encapsulation, Inheritance, and Polymorphism.

  • Abstraction: Hiding implementation details and showing only necessary information to the user.

  • Encapsulation: Binding data and functions together to protect data from outside interference.

  • Inheritance: Creating new classes from existing ones, inheriting properties and methods.

  • Polymorphism: Ability of objects to take on multip...read more

Add your answer

Q239. Why Ansible is called agentless? How will you run an ansible-playbook, tell me the command used for it? What are variables in ansible? What are the roles in ansible and what is the benefit of using it? How does...

read more
Ans.

Ansible is called agentless because it does not require any agent to be installed on the target host.

  • Ansible uses SSH to connect to the target host and execute commands remotely.

  • The command to run an ansible-playbook is 'ansible-playbook '.

  • Variables in Ansible are used to store values that can be used across multiple tasks and playbooks.

  • Roles in Ansible are a way to organize tasks, handlers, and variables into reusable units.

  • Ansible maintains inventory data in the inventory f...read more

Add your answer

Q240. What are the different types of Jobs in Jenkins, name at least 2, and their usage? How will you restrict access in Jenkins to someone, what is the plugin name? In what language Jenkins is written? What are the...

read more
Ans.

Jenkins is a popular CI/CD tool with various job types, access control, build triggers, and master-slave architecture.

  • Job types: Freestyle project, Pipeline project

  • Access control: Role-based Authorization Strategy plugin

  • Jenkins is written in Java

  • Build triggers: Manual, Scheduled, SCM, Remote Trigger, etc.

  • Build failure: Email notification, Console output, Build log

  • Master-slave: Distributes workload across multiple nodes for faster builds

Add your answer

Q241. Reset Matrix Problem Statement

Given a 2D array ARR with 'N' rows and 'M' columns, where each element is either 0 or 1, your task is to transform this matrix into a 'Good' matrix. A 'Good' matrix is one in whic...read more

Add your answer

Q242. 1.What is Singleton in java and create your own singleton class countering all breakable conditions? 2. What is Auto Configuration? 3. @Primary vs @Qualifier 4. What is idempotent? 5. What is class loader? Type...

read more
Ans.

The interview questions cover various topics related to Java development, including Singleton pattern, memory management, exception handling, Spring framework, and design patterns.

  • Singleton pattern ensures a class has only one instance and provides a global point of access to it.

  • Auto Configuration in Spring Boot automatically configures the Spring application based on dependencies present in the classpath.

  • @Primary annotation is used to give higher preference to a bean when mu...read more

Add your answer

Q243. Managerial: 1) Explain any one past issue and its mitigation strategy. 2) How we can handle the situation when we found code is not complaint before one day of deployment. 3) why are you looking for Switch?

Ans.

Answering managerial questions for Tech Lead position

  • For past issue, explain the problem and how you identified it

  • Describe the mitigation strategy and its effectiveness

  • For non-compliant code, assess the impact and prioritize fixes

  • Communicate the issue to stakeholders and plan for a fix

  • For looking to switch, explain the reasons and how it aligns with career goals

Add your answer
Q244. What is the difference between Early Binding and Late Binding in C++?
Add your answer

Q245. What do you mean by SDLC?

Ans.

SDLC stands for Software Development Life Cycle.

  • SDLC is a process used by software development teams to design, develop, and test high-quality software.

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

  • Each phase has its own set of activities and deliverables that must be completed before moving on to the next phase.

  • SDLC helps ensure that software is developed efficiently, on time, and within budget.

  • Examples of SDLC m...read more

View 1 answer
Q246. What is the relationship between a train's speed when passing through a platform and the relative speed of two trains?
Add your answer

Q247. Unival Trees Problem Statement

You are given a binary tree. Your task is to return the count of unival sub-trees in the given binary tree. In a unival tree, all nodes below the root node have the same value as ...read more

Add your answer

Q248. What is the command used for CPU usage in Linux? which Linux you have used? How will you see free memory in Linux in GB? Do you know NFS and what are the steps to create it?

Ans.

Command for CPU usage in Linux, checking free memory in GB, and creating NFS.

  • Command for CPU usage: top or htop

  • Checking free memory in GB: free -g

  • Creating NFS: install nfs-utils, configure /etc/exports, start nfs-server and nfs-lock services

  • Linux used not specified

View 1 answer

Q249. Can you tell me the difference between C and C++ ?

Ans.

C is a procedural programming language while C++ is an extension of C with added features of object-oriented programming.

  • C is a procedural language, while C++ supports both procedural and object-oriented programming.

  • C++ has additional features like classes, objects, inheritance, and polymorphism.

  • C++ supports function overloading and exception handling, which are not present in C.

  • C++ has a standard template library (STL) that provides useful data structures and algorithms.

  • C++ ...read more

Add your answer

Q250. An atomic spark job runs for 15 mins everyday ,one day it is running for more than an hour what might be the issue ?

Ans.

Possible reasons for an atomic spark job running for more than an hour.

  • Data size may have increased beyond the capacity of the cluster

  • Issues with network connectivity or hardware failure

  • Inefficient code or poorly optimized queries

  • Resource contention with other jobs running on the cluster

  • Data skew or data imbalance

  • Incorrect configuration settings

View 3 more answers
Asked in
SDE Interview

Q251. Count Inversions Problem Statement

Given an integer array ARR of size N containing all distinct values, determine the total number of inversions present in the array.

An inversion is defined for a pair of integ...read more

Add your answer

Q252. Ways To Make Coin Change

Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make the c...read more

Add your answer

Q253. What is OOPs? Difference between Overloading and overriding, what is polymorphism, what is database, what is candidate key, How we train model in ML, difference between call by value and call by reference, what...

read more
Ans.

Questions related to OOPs, database, and ML concepts.

  • OOPs stands for Object-Oriented Programming which is a programming paradigm based on the concept of objects.

  • Overloading is when multiple methods have the same name but different parameters, while overriding is when a subclass provides a specific implementation of a method that is already provided by its parent class.

  • Polymorphism is the ability of an object to take on many forms. In Java, it is achieved through method overlo...read more

Add your answer

Q254. Space Survival Game Challenge

Ninja is in space with unlimited fuel in his super spaceship. He starts with a health level H and his spaceship has an armour A. Ninja can be on only one of the three planets at a ...read more

Add your answer

Q255. What is the difference between windows application development and web based development?

Ans.

Windows app dev is for desktops, web dev is for browsers.

  • Windows app dev is for desktop operating systems like Windows, macOS, and Linux.

  • Web dev is for browsers and can be accessed from any device with an internet connection.

  • Windows app dev uses GUI frameworks like Windows Forms or WPF.

  • Web dev uses web technologies like HTML, CSS, and JavaScript.

  • Examples of Windows apps include Microsoft Word and Adobe Photoshop.

  • Examples of web apps include Facebook and Google Maps.

View 9 more answers

Q256. As your major is mechanical, explain how turbine works and its parts?

Ans.

A turbine is a mechanical device that converts the energy from a fluid flow into useful work.

  • Turbines are commonly used in power generation, aviation, and marine applications.

  • They consist of several key parts including the rotor, stator, blades, and shaft.

  • The rotor is the rotating part of the turbine, while the stator is the stationary part.

  • Blades are attached to the rotor and are designed to capture the energy of the fluid flow.

  • The shaft connects the rotor to the external lo...read more

Add your answer

Q257. Are you okay to learn front end and back end technologies to ensure you are a complete developer in the longer run? Would you be able to learn the concepts if a timeline is given?? If yes, explain your learning...

read more
Ans.

Yes, I am willing to learn front end and back end technologies and have a learning strategy in place.

  • I believe in continuous learning and growth as a developer.

  • I have experience in learning new technologies quickly and efficiently.

  • My learning strategy involves breaking down concepts into smaller parts and practicing regularly.

  • I also utilize online resources and seek guidance from experienced colleagues.

  • Examples of technologies I have learned include React, Node.js, and MongoD...read more

Add your answer

Q258. When we travel using busses from one place to another and there is no particular bus for this route then we have to co-ordinate timing of different busses to travel this route. We can make this process automati...

read more
Ans.

Yes, we can automate the process of coordinating timing of different busses for a particular route.

  • We can use GPS tracking to monitor the location of busses in real-time.

  • We can develop a software that can analyze the data and suggest the best route and timing for the passenger.

  • We can also use machine learning algorithms to predict the traffic and suggest the best route and timing for the passenger.

  • We can integrate this system with a mobile app that can provide real-time infor...read more

Add your answer

Q259. Prime Time Again Problem Statement

You are given two integers DAY_HOURS and PARTS. Consider a day with DAY_HOURS hours, which can be divided into PARTS equal parts. Your task is to determine the total instances...read more

Add your answer
Q260. What is the difference between INNER JOIN and OUTER JOIN in database management systems?
Add your answer

Q261. 1)what is constructor. 2)Difference between method overriding and overloading 3) Write a program for print prime number between two given ranges 4)What is dangling pointer

Ans.

Interview questions for System Engineer position

  • Constructor is a special method that is used to initialize an object

  • Method overriding is when a subclass provides its own implementation of a method that is already present in the parent class, while method overloading is when multiple methods have the same name but different parameters

  • Program to print prime numbers between two given ranges can be achieved using nested loops and checking for prime numbers using modulus operator

  • A...read more

Add your answer
Q262. What is thrashing in operating systems?
Add your answer

Q263. How do you make the child records read only of its parent record's field is updated to some value

Ans.

Child records can be made read-only when parent record's field is updated using validation rules.

  • Create a validation rule on child object

  • Use ISCHANGED() function to check if parent field is updated

  • Use PRIORVALUE() function to get the previous value of parent field

  • Use ISBLANK() function to check if the previous value of parent field is blank

  • Use ISNEW() function to allow creation of child records

  • Use OR() function to combine all conditions

  • Throw an error message if all conditions...read more

Add your answer
Q264. What is the difference between a constructor and a method in Object-Oriented Programming?
Add your answer

Q265. Introduce yourself 1.What is STLC 2. difference between Test plan,test case,test scanario 3.Positive and negative scanarion on pen. 4.selenium framework. 5.how to write selenium test cases.

Ans.

I am an Automation Test Engineer with knowledge of STLC, test plan, test case, test scenario, Selenium framework, and writing Selenium test cases.

  • STLC stands for Software Testing Life Cycle and is a process followed to ensure quality in software testing.

  • Test plan is a document that outlines the testing strategy, objectives, and scope of testing.

  • Test case is a set of steps and conditions that are executed to verify the functionality of a software application.

  • Test scenario is a...read more

View 1 answer

Q266. Is there any diversification going to happen in infosys from services to product development like Google?

Ans.

Yes, Infosys has already diversified into product development with offerings like Finacle and EdgeVerve.

  • Infosys has already developed products like Finacle, a banking software, and EdgeVerve, an AI-powered automation platform.

  • The company has also acquired product-based companies like Panaya and Skava.

  • Infosys has a dedicated Product Engineering Services unit that focuses on developing and maintaining software products.

  • However, services still remain the primary focus of Infosys...read more

Add your answer

Q267. You belong to mechanical domain, why do you want to switch it.

Ans.

I want to switch to system engineering as it aligns with my interests and skills.

  • I have always been interested in technology and how systems work

  • I have gained experience in programming and software development

  • I believe my skills in problem-solving and critical thinking will be valuable in system engineering

  • I am excited about the opportunity to work on complex systems and contribute to their design and development

Add your answer
Asked in
SDE Interview

Q268. Boundary Traversal of Binary Tree

Given a binary tree of integers, your task is to print the boundary nodes of the binary tree in an anti-clockwise direction starting from the root node.

Note:
The boundary incl...read more
Add your answer

Q269. What is Dockerfile? Can you tell me some fields used in the Docker file? What is the difference between Dockerfile and Docker compose? Which is better Docker compose or Kubernetes, explain some differences? IN...

read more
Ans.

Explanation of Dockerfile, Docker Compose, and differences between them and Kubernetes.

  • Dockerfile is a script that contains instructions to build a Docker image.

  • Fields in Dockerfile include FROM, RUN, COPY, ADD, CMD, and more.

  • Docker Compose is a tool for defining and running multi-container Docker applications.

  • Docker Compose uses a YAML file to define services, networks, and volumes.

  • Kubernetes is a container orchestration platform that automates deployment, scaling, and manag...read more

Add your answer

Q270. 2. Explain COMP, COMP-2, COMP-3 and Display. What are the difference between Continue and Next Sentence? Why does SOC7 occur?

Ans.

Explanation of COMP, COMP-2, COMP-3, Display, Continue, Next Sentence, and SOC7.

  • COMP is a binary data type, COMP-2 is a packed decimal data type, COMP-3 is a packed decimal data type with sign, and Display is a character data type.

  • Continue is used to transfer control to the next statement within the same paragraph, while Next Sentence is used to transfer control to the first statement of the next paragraph.

  • SOC7 occurs due to a data exception error, such as an invalid numeric ...read more

View 3 more answers

Q271. Why you use Java, What are the features of java, How it is different with others?

Ans.

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

  • Java is platform independent, meaning it can run on any platform that has a Java Virtual Machine (JVM).

  • It is object-oriented, allowing for modular and reusable code.

  • Java is known for its robustness and reliability, with features like automatic memory management and exception handling.

  • Java has a rich set of APIs and libraries, making it versatile for various app...read more

Add your answer

Q272. Print Diagonal Elements of a 2D Matrix

Given a 2D matrix, your task is to create and return a 2D vector that contains all elements of the matrix arranged in a diagonal fashion.

Input:

The first line contains an...read more
Add your answer
Q273. What are the various types of constructors in Object-Oriented Programming?
Add your answer
Q274. What is the Diamond Problem in C++ and how can it be resolved?
Add your answer

Q275. What will you do in case you have only 2 KRs for an application and one of them takes a long sick leave for a couple of months, just two weeks prior to Transition Go Live

Ans.

In case of a long sick leave for one of the key resources prior to Transition Go Live, I would take the following steps:

  • Assess the impact of the absence on the project timeline and deliverables

  • Identify if there are any backup resources available to temporarily fill the gap

  • If no backup resources are available, prioritize the remaining KR and allocate additional resources if necessary

  • Communicate the situation to the project stakeholders and manage their expectations

  • Re-evaluate ...read more

View 1 answer

Q276. What are features of JAVA?

Ans.

Java is a versatile programming language known for its platform independence and rich set of features.

  • Platform independence: Java programs can run on any operating system or device with a Java Virtual Machine (JVM)

  • Object-oriented: Java supports the principles of object-oriented programming, allowing for modular and reusable code

  • Garbage collection: Java automatically manages memory allocation and deallocation, reducing the risk of memory leaks

  • Exception handling: Java provides ...read more

View 1 answer

Q277. Write a program to check a given string is palindrome or not

Ans.

A program to check if a given string is a palindrome or not.

  • A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward.

  • To check if a string is a palindrome, we can compare the characters from the beginning and end of the string.

  • If the characters match at each position, the string is a palindrome.

  • We can use two pointers, one starting from the beginning and the other from the end, and compare the characters at each position....read more

View 2 more answers

Q278. At what scale did you choose yourself in the programming language?

Ans.

I chose myself in the programming language at a small scale and gradually increased it.

  • Started with basic syntax and gradually moved to more complex concepts

  • Practiced on small projects before moving to larger ones

  • Learned from online resources and collaborated with peers

  • Continuously updated skills and learned new languages as needed

Add your answer

Q279. How to check ram usage in linux EC2 instance

Ans.

To check RAM usage in Linux EC2 instance, use the 'free' command.

  • Open the terminal or SSH into the EC2 instance

  • Type 'free' command and press enter

  • The output will show the total, used, and free memory in kilobytes

  • Use '-h' option to display the output in human-readable format

  • Use 'top' command to see the real-time memory usage of processes

View 2 more answers

Q280. MergeSort Linked List Problem Statement

Sort a given singly linked list of integers using the 'Merge Sort' algorithm.

Input:

The first and only line of input contains the elements of the linked list separated b...read more
Add your answer

Q281. Ninja Technique Problem Statement

Implement a function that determines whether a given numeric string contains any substring whose integer value equals the product of two consecutive integers. The function shou...read more

Add your answer

Q282. Rat in a Maze Problem Statement

You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N matrix w...read more

Add your answer

Q283. How many such letter-pairs are there in the word SERVANT, having the same no. of letters left between them in the word as they have in the series?

Ans.

Counting letter-pairs with same no. of letters left between them in the word SERVANT.

  • Identify the letter-pairs in the word SERVANT.

  • Count the number of letters between each pair.

  • Compare the count with the position of the pair in the word.

  • If they match, increment the count of such pairs.

  • Answer the total count of such pairs.

View 1 answer

Q284. If there is some fest in your college and you are given the responsibility of parking 500 cars in your campus, how will you do it?

Ans.

I would create designated parking areas, implement a parking management system, and utilize efficient parking strategies.

  • Create designated parking areas based on the capacity and layout of the campus.

  • Implement a parking management system to track and manage the parking spaces.

  • Utilize efficient parking strategies such as valet parking, shuttle services, and carpooling.

  • Ensure proper signage and directions to guide the drivers to available parking spaces.

  • Coordinate with event or...read more

Add your answer

Q285. Is there an entry for purchase sales?

Ans.

Yes, there is an entry for purchase sales.

  • The entry for purchase sales is a double-entry accounting system.

  • The purchase is recorded as a debit to the inventory account and a credit to the accounts payable account.

  • The sale is recorded as a credit to the sales account and a debit to the accounts receivable account.

  • The cost of goods sold is recorded as a debit to the cost of goods sold account and a credit to the inventory account.

  • Examples include recording the purchase of inven...read more

View 18 more answers
Q286. How does C++ support polymorphism?
Add your answer
Asked in
SDE Interview

Q287. Bipartite Graph Problem

Check whether a given graph is bipartite or not. Return true if the graph's vertices can be divided into two independent sets, ‘U’ and ‘V’, such that every edge (‘u’, ‘v’) either connect...read more

Add your answer

Q288. What are the different kinds of terraform variables? What do you mean by terraform resource? Have you used terraform in your project?

Ans.

Terraform variables can be of different types. Terraform resource is a declarative representation of infrastructure.

  • Terraform variables can be of type string, number, bool, list, map, object, set.

  • Terraform resource is a block of code that defines a piece of infrastructure.

  • Examples of resources are AWS EC2 instance, Azure Virtual Machine, Google Cloud Storage bucket.

  • Yes, I have used Terraform in my project.

Add your answer
Q289. What is the starter dependency of the Spring Boot module?
Add your answer

Q290. How Data Flow in SCOM monitoring Tool? DB name for SCOM and DB queries for Data Grooming. Values for Operations Console Grooming How to unseal the sealed management pack Names of Management Packs you have worke...

read more
Ans.

SCOM monitoring tool uses a database to store and process data. It also requires management packs for monitoring different components.

  • Data flows from agents to management servers and then to the database

  • SCOM uses SQL Server as its database

  • Data grooming queries can be found in the OperationsManagerDW database

  • Operations Console grooming values can be set in the Administration workspace

  • To unseal a management pack, use the 'Unseal-ManagementPack' PowerShell cmdlet

  • Examples of mana...read more

Add your answer

Q291. Shortest Path in an Unweighted Graph

The city of Ninjaland is represented as an unweighted graph with houses and roads. There are 'N' houses numbered 1 to 'N', connected by 'M' bidirectional roads. A road conne...read more

Add your answer

Q292. Reverse Linked List Problem Statement

Given a Singly Linked List of integers, your task is to reverse the Linked List by altering the links between the nodes.

Input:

The first line of input is an integer T, rep...read more
Add your answer

Q293. How data structures and variables are managed in memory in Python?

Ans.

Python manages data structures and variables using dynamic memory allocation.

  • Python uses a heap to manage memory allocation for data structures and variables.

  • Variables are created dynamically and stored in memory as objects.

  • Python uses reference counting to keep track of the number of references to an object.

  • Garbage collection is used to reclaim memory for objects that are no longer referenced.

  • Examples of data structures in Python include lists, tuples, dictionaries, and sets...read more

View 1 answer

Q294. What are the different types of loops used in C++?

Ans.

C++ has three types of loops: for, while, and do-while.

  • For loop is used when the number of iterations is known beforehand.

  • While loop is used when the number of iterations is not known beforehand.

  • Do-while loop is similar to while loop, but it executes at least once before checking the condition.

View 1 answer

Q295. What you know about Machine and its function?

Ans.

A machine is a device that performs a specific task using power and mechanisms.

  • Machines can be simple or complex, ranging from a simple lever to a complex computer.

  • Machines use energy to perform work, such as lifting, moving, or transforming materials.

  • Examples of machines include cars, airplanes, washing machines, and robots.

  • Machines can be classified into six types: lever, pulley, wheel and axle, inclined plane, wedge, and screw.

Add your answer

Q296. M-Coloring Problem Statement

Given an undirected graph as an adjacency matrix and an integer M, determine whether you can color the vertices of the graph using at most M colors such that no two adjacent vertice...read more

Add your answer
Q297. What are the limitations of inheritance in object-oriented programming?
Add your answer
Q298. What is meant by normalization and denormalization?
Add your answer

Q299. A task of parking is given, how will you go forward with it?

Ans.

I would analyze the requirements and constraints of the parking task and devise a plan accordingly.

  • Understand the size and type of vehicles that need to be parked

  • Analyze the available space and layout of the parking area

  • Consider any regulations or restrictions on parking

  • Determine the optimal parking arrangement for maximum efficiency

  • Implement a system for monitoring and managing the parking area

Add your answer

Q300. Which programming languages do you use regularly in your work?

Ans.

I use multiple programming languages depending on the task at hand.

  • Python for automation and scripting

  • Java for building applications

  • Bash for shell scripting

  • SQL for database management

  • JavaScript for web development

  • Go for microservices

  • Perl for text processing

  • C/C++ for system-level programming

View 3 more answers
1
2
3
4
5
6
7
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at NR Crew

based on 367 interviews
Interview experience
4.1
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.5
 • 345 Interview Questions
3.7
 • 335 Interview Questions
4.2
 • 296 Interview Questions
3.9
 • 196 Interview Questions
4.1
 • 157 Interview Questions
3.6
 • 139 Interview Questions
View all
Top Infosys Interview Questions And Answers
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

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