Premium Employer

Infosys

3.7
based on 36.4k Reviews
Filter interviews by

4000+ Purbasthali-I Govt. ITI Interview Questions and Answers

Updated 19 Dec 2024
Popular Designations
Q1. Count Ways To Reach The N-th Stairs

You have been given a number of stairs. Initially, you are at the 0th stair, and you need to reach the Nth stair. Each time you can either climb one step or two steps. You are...read more

View 9 more answers
Q2. Distinct Strings With Odd and Even Swapping Allowed

You are given an array of strings. Your task is to find the number of unique strings.

A string is considered unique if it cannot be formed from any other strin...read more

View 5 more answers
Q3. Maximum Subarray Sum

You are given an array (ARR) of length N, consisting of integers. You have to find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.

A subarray is a ...read more

View 11 more answers
Q4. Pair Sum

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

Note:

Each pair shou...read more
View 6 more answers
Discover Purbasthali-I Govt. ITI interview dos and don'ts from real experiences
Q5. Valid Parenthesis

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
View 2 more answers

Q6. 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?
Q7. Print All Subsets

You are given an array ‘arr’ of ‘N’ distinct integers. Your task is to print all the non-empty subsets of the array.

Note: elements inside each subset should be sorted in increasing order. But ...read more

View 3 more answers
Q8. Quick Sort

You are given an array of integers. You need to sort the array in ascending order using quick sort.

Quick sort is a divide and conquer algorithm in which we choose a pivot point and partition the arra...read more

View 4 more answers
Share interview questions and help millions of jobseekers 🌟

Q9. 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

Q10. 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
Q11. Trie Implementation

Implement a Trie Data Structure which supports the following two operations:

Operation 1 - insert(word) - To insert a string WORD in the Trie. Operation 2- search(word) - To check if a string...read more
View 2 more answers
Q12. Generate all parenthesis

You are given an integer ‘N’, your task is to generate all combinations of well-formed parenthesis having ‘N’ pairs. You are task is to generate all possible valid sets of parenthesis th...read more

View 2 more answers
Q13. Merge Sort Linked List

You are given a Singly Linked List of integers. Sort the Linked List using merge sort.

Merge Sort is a Divide and Conquer algorithm. It divides the input into two halves, calls itself for ...read more

View 2 more answers
Q14. Compress the String

Ninja has been given a program to do basic string compression. For a character that is consecutively repeated more than once, he needs to replace the consecutive duplicate occurrences with th...read more

View 2 more answers
Q15. Ninja And Divisible Array

Ninja has been given an array/list ‘ARR’ of even size ‘N’ and an integer ‘K’. Ninja gives his friend a task to divide the given ‘ARR’ into ‘N’/2 pairs such that the sum of each pair sho...read more

View 2 more answers
Q16. Split the String

You are given a string ‘str’ of ‘N’ lowercase alphabets. Your task is to check whether it is possible to split the given string into three non-empty substrings such that one of them is a substri...read more

View 4 more answers
Q17. Group Anagrams

You have been given an array/list of strings 'inputStr'. You are supposed to return the strings as groups of anagrams such that strings belonging to a particular group are anagrams of one another....read more

View 2 more answers

Q18. 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
Q19. Glowing Bulbs

There are an infinite number of electric bulbs. Each bulb is assigned a unique integer starting from 1. There are ‘N’ switches also and each switch is labeled by a unique prime number. If a switch ...read more

View 2 more answers
Q20. Number of Islands

You have been given a non-empty grid consisting of only 0s and 1s. You have to find the number of islands in the given grid.

An island is a group of 1s (representing land) connected horizontall...read more

View 3 more answers
Asked in
SDE Interview
Q21. Longest Increasing Subsequence

For a given array with N elements, you need to find the length of the longest subsequence from the array such that all the elements of the subsequence are sorted in strictly increa...read more

View 5 more answers
Q22. Flip Bits

You are given an array of integers ARR[] of size N consisting of zeros and ones. You have to select a subset and flip bits of that subset. You have to return the count of maximum one’s that you can obt...read more

View 2 more answers
Asked in
SDE Interview
Q23. Return Subsets Sum to K

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

Subset of an array 'ARR' is a tuple that can be obtained from 'ARR' by remov...read more

View 3 more answers
Q24. Maximum Subarray Sum

You are given an array/list ARR consisting of N integers. Your task is to find the maximum possible sum of a non-empty subarray(contagious) of this array.

Note: An array C is a subarray of a...read more

View 3 more answers

Q25. 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
Q26. OOPS Question

Which among String or String Buffer should be preferred when there are lot of updates required to be done in the data?

View 2 more answers
Q27. DBMS Question

What are the integrity rules in DBMS?

Add your answer

Q28. 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

Q29. 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
Q30. OS Question

What is meant by Multitasking and Multithreading in OS?

Add your answer
Q31. OOPS Question

What is Garbage collector in JAVA?

Add your answer

Q32. 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

Q33. 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 1 answer

Q34. 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 4 more answers
Q35. Intersection of Linked List

You are given two Singly Linked List of integers, which are merging at some node of a third linked list.

Your task is to find the data of the node at which merging starts. If there is...read more

View 3 more answers

Q36. 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

Q37. 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

Q38. 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
Q39. Rotting Oranges

You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:

  • Value 0 - representing an empty cell.
  • Value 1 - representing a fresh orange.
  • ...read more
  • View 2 more answers

    Q40. 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
    Q41. Reset Matrix

    You have given a 2-dimensional array ‘ARR’ with ‘N’ rows and ‘M’ columns in which each element contains only two values,i.e., 0 and 1. Your task is to convert the given matrix into the Good matrix i...read more

    View 3 more answers

    Q42. 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
    Q43. Spring Boot Question

    What is the @Controller annotation used for? How can you create a controller without an annotation?

    Add your answer

    Q44. 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
    Q45. OOPS Question

    What is Early Binding and Late Binding in C++ ?

    Add your answer
    Q46. Aptitude

    Train's speed when passed through a platform vs two train's relative speed.

    View 2 more answers

    Q47. 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
    Q48. Unival Trees

    You are given a binary tree. Return the count of unival sub-trees in the given binary tree. In unival trees, all the nodes, below the root node, have the same value as the data of the root.

    For exam...read more

    View 2 more answers

    Q49. 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
    Q50. Ways To Make Coin Change

    You are given an infinite supply of coins of each of denominations D = {D0, D1, D2, D3, ...... Dn-1}. You need to figure out the total number of ways W, in which you can make a change fo...read more

    View 4 more answers
    Asked in
    SDE Interview
    Q51. Count Inversions

    For a given integer array/list 'ARR' of size 'N' containing all distinct values, find the total number of 'Inversions' that may exist.

    An inversion is defined for a pair of integers in the arra...read more

    View 4 more answers

    Q52. 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
    Q53. Game In Space

    Ninja is in space with his super spaceship having unlimited fuel. Ninja initially has a health level ‘H’ and his spaceship has an armour ‘A’. He decides to play a game, where at any instant he can ...read more

    View 3 more answers

    Q54. 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

    Q55. 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

    Q56. 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

    Q57. 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

    Q58. 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
    Q59. Prime time again

    You have been given two integers ‘DAY_HOURS’ and ‘PARTS’. Where ‘DAY_HOURS’ is the number of hours in a day and a day can be divided into ‘PARTS’ equal parts. Your task is to find total instance...read more

    View 3 more answers
    Q60. DBMS Question

    Difference between INNER JOIN and OUTER JOIN

    Add your answer
    Q61. Puzzle

    There are 100 doors in a row, all doors are initially closed. A person walks through all doors multiple times and toggle (if open then close, if close then open) them in the following way:

    In the first wa...read more

    Add your answer

    Q62. 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

    Q63. 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
    Q64. OS Question

    What is thrashing in OS?

    Add your answer

    Q65. 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
    Q66. OOPS Question

    Difference between Constructor and Method?

    Add your answer

    Q67. 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

    Q68. 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

    Q69. 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

    Q70. 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
    Q71. Boundary Traversal

    You have been given a binary tree of integers. Your task is to print the boundary nodes of this binary tree in Anti-Clockwise direction starting from the root node.

    NOTE:
    The boundary nodes o...read more
    View 2 more answers

    Q72. 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

    Q73. 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
    Q74. Print Diagonal

    You are given a 2D matrix, your task is to return a 2D vector containing all elements of the matrix in a diagonal fashion.

    Example:

    Following will be the output of the above matrix:

    1 5 2 9 6 3 1...read more
    Add your answer
    Q75. OOPS Question

    What are the various types of constructors?

    Add your answer
    Q76. C++ Question

    What is Diamond Problem in C++ and how do we fix it?

    Add your answer

    Q77. 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

    Q78. 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

    Q79. 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

    Q80. 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

    Q81. 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
    Q82. Ninja Technique

    Ninja has its own technique of making a decision to do something or not. This technique is known as the ninja technique. In this technique, Ninja generates a random string containing only digits,...read more

    Add your answer
    Q83. MergeSort Linked List

    For a given Singly Linked List of integers, sort the list using the 'Merge Sort' algorithm.

    Input format :
    The first and the only line of input contains the elements of the linked list sepa...read more
    Add your answer

    Q84. 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
    Q85. Rat In A Maze

    You are given a starting position for a rat which is stuck in a maze at an initial point (0, 0) (the maze can be thought of as a 2-dimensional plane). The maze would be given in the form of a squar...read more

    Add your answer

    Q86. 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
    Q87. Compress the String

    Write a program to do basic string compression. For a character which is consecutively repeated more than once, replace consecutive duplicate occurrences with the count of repetitions.

    Exampl...read more
    Add your answer
    Q88. OOPS Question

    How does C++ support Polymorphism?

    Add your answer

    Q89. 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
    Asked in
    SDE Interview
    Q90. Bipartite Graph

    Given a graph, check whether the graph is bipartite or not. Your function should return true if the given graph's vertices can be divided into two independent sets, ‘U’ and ‘V’ such that every ed...read more

    View 2 more answers
    Q91. SpringBoot Question

    What is the starter dependency of the Spring boot module?

    Add your answer

    Q92. 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

    Q93. What is a dataframe and how it differs from dataset ?

    Ans.

    A dataframe is a two-dimensional tabular data structure in which data is organized in rows and columns. It differs from a dataset in terms of structure and functionality.

    • A dataframe is a data structure in which data is organized in a tabular format with rows and columns.

    • It is commonly used in data analysis and manipulation tasks.

    • Dataframes can handle both structured and semi-structured data.

    • They provide a convenient way to store and manipulate large datasets.

    • Dataframes offer ...read more

    View 2 more answers
    Q94. Shortest path in an unweighted graph

    The city of Ninjaland is analogous to the unweighted graph. The city has ‘N’ houses numbered from 1 to ‘N’ respectively and are connected by M bidirectional roads. If a road ...read more

    Add your answer

    Q95. 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
    Q96. M-Coloring Problem

    You are given an undirected graph in the form of an adjacency matrix along with an integer M. You need to tell if you can color the vertices of the graph using at most M colors such that no tw...read more

    View 2 more answers
    Q97. Reverse Linked List
    Input Format :
    The first line of input contains a single integer T, re...read more
    View 2 more answers

    Q98. 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

    Q99. 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

    Q100. 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
    1
    2
    3
    4
    5
    6
    7
    Contribute & help others!
    Write a review
    Share interview
    Contribute salary
    Add office photos

    Interview Process at Purbasthali-I Govt. ITI

    based on 2.8k interviews in the last 1 year
    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

    4.0
     • 375 Interview Questions
    3.7
     • 329 Interview Questions
    4.0
     • 201 Interview Questions
    4.2
     • 142 Interview Questions
    3.6
     • 135 Interview Questions
    3.6
     • 132 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
    Get AmbitionBox app

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

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