Sopra Steria Coding Questions and Answers

Sopra Steria Coding Questions with Solutions

In this page, you will find out Sopra Steria Coding Questions and Answers asked in Online Assessments and Technical Interviews involved in the Recruitment Process of the Company.

Explore this page for getting more details like the Job Profile, CTC Offered, Service Agreement, Eligibility Criteria, etc of the company.

sopra-steria-coding-questions

About Sopra Steria :

Sopra Steria is a leading European Tech company that is mainly popular for its Consulting Services, Software Development – Support Services, and other digital services. Their vision is to promote Digital Transformation of all Industries whether it is Large scale or small-scale ventures.

The company is also having its own subsidiary called Sopra Banking Software, which is known for its Financial Services and Solutions. They generally provide Banking Related Software, Support, and help many Financial Institutions to deploy an efficient Banking System.

About Sopra Steria Recruitment Process :

The Sopra Steria Recruitment Process consists of the following steps :

  1. Online Assessment [ MCQs Based Aptitude + Technical ]
  2. Technical Interview
  3. HR Interview

We have mentioned further details of the Sopra Steria Recruitment Process in the following Tabular Form

Sopra SteriaRelated Information
Position :Engineer Trainee
Course :
  • B.E / B.Tech – CS, IT, or M.C.A.
  • Eligible Batch – 2023
Eligibility Criteria / Academic Qualification Required :
  • Minimum 70 % or equivalent CGPA required in 10th / 12th.
  • Minimum 60 % in Graduation
  • No Current Backlogs.
Offered CTC :₹ 6 L.P.A
Selection Process :
  1. Online Aptitude & Technical Assessment
  2. Technical Interview
  3. HR Interview
Joining Location :
  • Noida
  • Chennai
  • Bangalore

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

Sample Sopra Steria Coding Questions with Solutions

Question 1: Consecutive Prime Sum

Problem Description

Question – :  Some prime numbers can be expressed as a sum of other consecutive prime numbers.

  • For example
    • 5 = 2 + 3,
    • 17 = 2 + 3 + 5 + 7,
    • 41 = 2 + 3 + 5 + 7 + 11 + 13.
      Your task is to find out how many prime numbers which satisfy this property are present in the range 3 to N subject to a constraint that summation should always start with number 2.

Write code to find out the number of prime numbers that satisfy the above-mentioned property in a given range.

Input Format: First line contains a number N

Output Format: Print the total number of all such prime numbers which are less than or equal to N.

Constraints: 2<N<=12,000,000,000

Question 2: Self Sufficient

Problem Statement –  Abhijeet is one of those students who tries to get his own money by part time jobs in various places to fill up the expenses for buying books. He is not placed in one place, so what he does, he tries to allocate how much the book he needs will cost, and then work to earn that much money only. He works and then buys the book respectively. Sometimes he gets more money than he needs so the money is saved for the next book. Sometimes he doesn’t. In that time, if he has stored money from previous books, he can afford it, otherwise he needs money from his parents.

Now His parents go to work and he can’t contact them amid a day. You are his friend, and you have to find how much money minimum he can borrow from his parents so that he can buy all the books.

He can Buy the book in any order.

 

Function Description:

Complete the function with the following parameters:

NameTypeDescription
NIntegerHow many Books he has to buy that day.
EarnArray[ ]Integer arrayArray of his earnings for the ith book
CostArray[ ]Integer arrayArray of the actual cost of the ith book.

Constraints:

  • 1 <= N <= 10^3
  • 1 <= EarnArray[i] <= 10^3
  • 1 <=  CostArray[i] <= 10^3

 

Input Format:

  • First line contains N.
  • Second N lines contain The ith earning for the ith book.
  • After that N lines contain The cost of the ith book.

 

Output Format: The minimum money he needs to cover the total expense.

 

Sample Input 1:

3

[3 4 2]

[5 3 4]

 

Sample Output 1:

3

 

Explanation:

At first he buys the 2nd book, which costs 3 rupees, so he saves 1 rupee. Then he buys the 1st book, that takes 2 rupees more. So he spends his stored 1 rupee and hence he needs 1 rupee more. Then he buys the last book.

Question : 3

Problem Statement : Fountains are installed at every position along a one-dimensional garden of length n. Array locations[] represents the coverage limit of these fountains. The ith fountain (where 1sisn) has a coverage limit of locations[i] that can range from the position max((i – locations[i]), 1) to min((i + locations[i]), n ). In other words, the h fountains do not reach outside the boundaries of the garden. In the beginning,all the fountains are switched off. Determine the minimum number of fountains that need to be activated to cover the n length garden by water.

Example :

  • n = 3
  • locations[] = {0, 2, 13, then
    • For position 1: locations[1] = 0, max((1 – 0),
      • 1) to mini (1+0), 3) gives range = 1 to 1
    • For position 2: locations[2] = 2, max((2-2),
      • 1) to min( (2+2), 3) gives range = 1 to 3
    • For position 3: locations[3] = 1, max( (3-1),
      • 1) to min( (3+1), 3) gives range = 2 to 3

For the entire length of this garden to be covered, only the fountain at position 2 needs to be activated.

Function Description :

Complete the function fountainActivation in the editor below.

fountainActivation has the following Parameter:

  • int locations[n]: the fountain locations

Returns :

  • int: the minimum number of fountains that must be activated

Constraints :

  • 1<_n<_ 10^5
  •  O<_locations[i] <_ mini (n,100) (where 1 <_1<_10^5)

► Input Format For Custom Testing

Sample Case 0 :

Sample Input For Custom Testing :

  • 3 ->locations[] size n = 3
  • 1 ->locations[] [1, 1, 1
  • 1 ->Sample Output

Sample Output :

  • 1

Explanation :

Here, locations = {1, 1, 13

  • For position 1: locations[1] = 1, maxi (1 -1), 1) to min((1+1), 3) gives range = 1 to 2
  • For position 2: locations[2] = 1, max( (2 -1), 1) to min( (2+1), 3) gives range = 1 to 3
  • For position 3: locations[3] = 1, max((3 -1), 1) to min((3+1), 3) gyes range = 2 to 3

If the 2nd fountain is active, the range from position 7 to 3 will be covered. The total number of fountains needed is 1.

Question 4

Problem Statement : Street Lights are installed at every position along a 1-D road of length n.

Locations[] (an array) represents the coverage limit of these lights. The ith light has a coverage limit of locations[i] that can range from the position max((i – locations[i]), 1) to min((i + locations[i]), n ) (Closed intervals). Initially all the lights are switched off. Find the minimum number of fountains that must be switched on to cover the road.

Example :

n = 3

locations[] = {0, 2, 13}then

For position 1: locations[1] = 0, max((1 – 0),

1) to mini (1+0), 3) gives range = 1 to 1

For position 2: locations[2] = 2, max((2-2),

1) to min( (2+2), 3) gives range = 1 to 3

For position 3: locations[3] = 1, max( (3-1),

1) to min( (3+1), 3) gives range = 2 to 3

For the entire length of this road to be covered, only the light at position 2 needs to be activated.

Function Description

Returns

int: the minimum number of street lights that must be activated

Constraints

  • 1<_n<_ 10^5
  •  O<_locations[i] <_ mini (n,100) (where 1 <_1<_

10^5)

► Input Format For Custom Testing

Sample Case 0

Sample Input For Custom Testing

3 ->locations[] size n = 3

1 ->locations[] [1, 1, 1]

1 ->Sample Output

Sample Output

1

Question 5

Problem Statement : You just received another bill which you cannot pay because you lack the money.

Unfortunately, this is not the first time to happen, and now you decide to investigate the cause of your constant monetary shortness. The reason is quite obvious: the lion’s share of your money routinely disappears at the entrance of party localities.

You make up your mind to solve the problem where it arises, namely at the parties themselves. You introduce a limit for your party budget and try to have the most possible fun with regard to this limit.

You inquire beforehand about the entrance fee to each party and estimate how much fun you might have there. The list is readily compiled, but how do you actually pick the parties that give you the most fun and do not exceed your budget?

Write a program which finds this optimal set of parties that offer the most fun. Keep in mind that your budget need not necessarily be reached exactly. Achieve the highest possible fun level, and do not spend more money than is absolutely necessary.

Input

  • The first line of the input specifies your party budget and the number n of parties.
  • The following n lines contain two numbers each. The first number indicates the entrance fee of each party. Parties cost between 5 and 25 francs. The second number indicates the amount of fun of each party, given as an integer number ranging from 0 to 10.
  • The budget will not exceed 500 and there will be at most 100 parties. All numbers are separated by a single space.
  • There are many test cases. Input ends with 0 0.

Output

  • For each test case your program must output the sum of the entrance fees and the sum of all fun values of an optimal solution. Both numbers must be separated by a single space.

Example

  • Sample input:
    50 10
    12 3
    5 8
    16 9
    16 6
    10 2
    21 9
    18 4
    12 4
    17 8
    18 9
    50 10
    13 8
    19 10
    16 8
    12 9
    10 2
    12 8
    13 5
    15 5
    11 7
    16 2
    0 0
  • Sample output:
    50 29
    48 32

FAQs on Sopra Steria Coding Questions

Question 1: Is Coding questions asked in Sopra Steria Recruitment Process?

Yes, coding questions were asked in the Sopra Steria’s 1st Round of recruitment process (the online assessment) and second round (the technical interview).

Question 2: What kind of skills does Sopra Steria look for in job applicants in India?

Sopra Steria typically looks for candidates with technical skills and qualifications in areas such as software development, cloud computing, cybersecurity, and data analytics. They also value soft skills such as teamwork, communication, and problem-solving abilities. 

Question 3: In what field does Sopra Steria works?

Sopra Steria works in a variety of fields and industries, including banking and financial services, insurance, healthcare, government and public sector, energy and utilities, aerospace and defense, and transportation. The company also provides business process services, outsourcing solutions, and enterprise resource planning (ERP) services.

Question 4: How long does the recruitment process take at Sopra Steria?

The recruitment process at Sopra Steria in India can vary depending on the role and the number of candidates being considered. On average, the process can take anywhere from a few weeks to several months.

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription