Infosys SP Technical Interview Questions

Infosys SP Technical Interview Questions and Answers 2023

Find the latest Infosys SP Technical Interview Questions for Freshers for the 2022-23 batch students.

Page Highlights:-

  • Infosys SP Recruitment Pattern
  • Infosys SP Technical Interview Questions
infosys sp technical interview questions and answers pdf

Infosys SP Recruitment Pattern

Online Test

There are three coding questions asked in the online test. The test has a sectional and overall cut-off.

  • Question 1:- Basic questions on algorithms and data structures.
  • Question 2:- Greedy’s Algorithm
  • Question 3:- Dynamic Programming

Programming languages allowed in this exam:- C, C++, Java, Python

Infosys SP Technical Interview Questions for Freshers

Find the common Infosys SP Technical Interview Questions asked to freshers for the 2022-23 batch.

Infosys SP Technical Interview Questions

Question 1: Write a code for Bubble Sort.
Question 2: What are ACID properties?

Answer:-

ACID Properties stand for:-

  • A- Atomicity. The transaction is all or nothing. If one part of the transaction fails, the entire transaction fails.
  • C-Consistency. The data must follow all validation rules. The transaction will not leave the database without being completed.
  • I-Isolation. It provides concurrency control by ensuring that the concurrent property of execution is not met.
  • D-Durability. If a transaction is committed it will remain so regardless of the situation, power loss, crashes, etc.
Question 3: What do you understand by joins?

Answer:-

Joins are used in SQL to retrieve data from multiple tables.

Read More:- Joins in SQL

Question 4: What are pointers in C++?

Answer:-

A pointer stores the address of a variable.

Read More:- Pointers

Question 5: Write a code for the following:-

“A has a list of cities and the distance between each pair of cities. Write a program to find the shortest possible route A can take such that A can visit all the cities exactly once and then return to the origin city.”

Answer:-

This is the Traveling Salesman Problem.

Question 6: What are the advantages of the Iterative Waterfall Model over the Waterfall Model?

The iterative Waterfall model provides feedback from one phase to its previous phase. This is something not available in Waterfall Model.

Question 7: What is the Agile model?

Agile is a type of software development life cycle model. It is a combination of two iterative and incremental software development models. It divides the requirements into multiple parts known as iterations and develops each part separately. Each iteration is planned, designed, implemented, tested, and deployed to customers.

Question 8: What is View?

Answer:-

A view is a virtual table containing a subset of the database’s data.

Question 9: How does a local variable from a global variable?

Answer:-

Where a global variable can be accessed globally, a local variable is only accessible in the current scope.

Question 10: What is a virtual function and what is a pure virtual function?

Answer:-

A virtual function is overridden in a derived class and instructs the C++ compiler to execute late binding on that function.
A pure virtual function is declared in the Parent Class and does not have any implementation, it only has a declaration.

Question 11: What is a database schema?

Answer:-

A database schema is an organization of data as a blueprint of how the database is constructed.

Question 12: How to solve ClassCastException?

Answer:-

ClassCastxception is the child class of RuntimeException arises in typecasting. It is solved by ensuring that while typecasting the new type belongs to one of its parent classes.

Question 13: What are tokens in C++?

Answer:-

A token is the smallest element of a C++ program containing meaning for the compiler. Types of tokens include Keywords, Identifiers, etc.

Question 14: What is STL?

Answer:-

STL or Standard Template Library consists of classes, algorithms, and iterators. The components of STL are accessed in the form of templates.

Question 15: What is collection API?

Answer:-

Collection API provides a set of classes and interfaces making it easier to work with collections of objects such as lists, maps, etc.

Question 16: What is memory management in Python?

Answer:-

Python has a private heap memory where all the Python objects and data structures are stored. The management of this heap is memory management. It is internally managed by the Python memory manager.

Question 17: Write a code to reverse a linked list
Question 18: What is the difference between calloc() and malloc()?

Answer:-

Both malloc() and calloc() are used to allocate dynamic memory. The difference between them is where malloc() takes a size and returns a pointer to a chunk of memory at least that big, and calloc() takes a number of elements and the size of each and returns a pointer to a chunk of memory at least big enough to hold them all.

Question 19: Write a code to merge two sorted arrays without using extra space.
Question 20: What is the lambda function in python?

Answer:-

Lambda function also known as the anonymous function is used to reduce length of code.

For more Technical Interview Questions, check out: Technical Interview Questions Dashboard