You are on page 1of 6

Software Engineer – Evaluation Question

Read the entire document carefully without fail. Failing to follow the guidelines will also lead to
rejection of the submission and will not be taken forward to further interview rounds.

Instructions for interview, as well as Evaluation question:

1. Download Dev C++ from this link and install it. Use it to compile and execute your evaluation
program. The same will be used for the interview.
https://sourceforge.net/projects/orwelldevcpp/files/latest/download

2. Your program must have .CPP extension while saving but only C syntax and functions are
allowed. It must compile and run properly in Dev C++. If it doesn’t work, the submission will not
be considered.

3. You must compose your code logic only in place of ‘//Do your logic here.’ comment. You can add
extra functions if required where ‘// You can add extra functions here.’ comment is placed in the
code.

4. You must not use internet or any AI tools for the logic for the interview and for the evaluation
question.

5. Format your code properly with proper indenting.

6. You must strictly follow C syntax (not CPP) and functions. You must not add any header files
apart from what is given in program skeleton.

7. After submitting the evaluation program, you can practice similar problems. The next interview
round will have similar questions with increasing complexity to evaluate your problem-solving
skills.

Submission Link: https://link.admindroid.com/Jan24DevSubmissions

You must submit the evaluation answers before January 16, 2024
(Tuesday) – 7:00 PM.
You will be disqualified if the evaluation question is submitted late
or if your submission doesn’t meet our expectation.

ALL THE BEST


How to Submit?
Each program we give will have a comment block where you can compose your code. Once done,
you must upload only that portion.

For the Evaluation content, your uploaded file must look like this:
• Note the start and end comments. After compiling and running, copy-paste the code
between the marked comments and upload.
• Do not modify any part of code outside the highlighted comments.
Evaluation Question (Question 0)

Find the weightage of each row and column of a given square matrix. A square matrix is one that has
same number of rows and columns.
The Weightage is the sum of the rows and columns respectively.

Instructions for this question:


1. For this question, we may provide inputs up to 8x8 matrix to verify your code.
2. You must strictly use the program skeleton below and share your answer.
3. All general instructions in the above page must be followed.

Note: Submission link is given at the end of this file. Read submission instructions carefully to clear
without errors.
Sample output:
Explanation for Test case - 1

Let’s take the test case from the program skeleton:

The weightage matrix for this is


10 4
8 5
6 14
15 16

The below picture explains how the weightage of rows and columns are calculated. They are then
placed in an array as mentioned in the program skeleton. The first column in the output was the
weightage of rows (10,8,6,15), and the second column was the weightage of columns (4,5,14,16).
Program skeleton: Download the code, make changes, and submit as specified in instructions.

The below code can also be downloaded from: https://link.admindroid.com/Jan24DevEvalQn

Screenshot just for your understanding:

You might also like