Skip to content

Relisource

Introduction

For the Junior .NET Developer Position at first there was a 1 hour long written Exam which consisted 3 Questions (SQL Query, Problem Solving, JavaScript-HTML)

Software Engineering Questions

Select The Company name which has the lowest total emoployee count.
CompanyPositionEmployee
ABCblah20
ABCblah15
ABCblah5
XYZblah10
XYZblah12
XYZblah5
MNOblah20
MNOblah5

[Answer]
Problem Solving

There is a food track consisting of cells marked with 0, 1, or other numbers. Here, 0 signifies the cell is not traceable, 1 signifies it is traceable, and any other number represents the destination. Starting from the top-left point, determine the longest path to reach the destination. If no path exists, print -1.

111
101
191

[Answer]
JavaScript & HTML

Write JavaScript code to check if a button is clicked in an HTML element using an EventListener. Upon clicking, the size of the HTML element should increase by 10%.


[Answer]

Embedded Software Engineering Questions

Problem Solving

Your task is to write a function in the C programming language to find an optimal route cost to a target location inside a maze and return the highest 4 bits (MSB + 3 bits) of the optimal route cost value. Your function should take as input two integer numbers for the starting index on the maze array. An optimal route is defined as a complete path from the start point to the target location that requires the least effort/cost. Diagonal movement in the maze is not allowed. An example maze is given below:

43783654-123
6-1-1-1-1-1-152094
7-1-116-1-171-1-15
115250356-1626
9-1-121-1-1-1-15-12
2-1-122-1-15-14-17
8-1-126-1-15-13-16
20534112311-12-15
2-1-1-1-1-120-12-14
4-14-1-1-14-11-13
6788765104-12

Maze Details:

  • The starting block location will be provided as a function parameter (Blue block in the example).
  • Blocks with a value of -1 are impassable (Grey blocks in the example).
  • The Goal block and only the Goal block will always have a cost of 0 (Green blocks in the example).
  • The maze will not have any circular routes that do not go through the Goal block first.
  • The maze is stored in a 2D array. The 2D maze array will be defined globally.
  • The maze size will be a pair of positive integer numbers, you can assume that the size parameters, length, and height of the maze will fit in a C integer (int) type.
  • The cost values, excluding the impassable blocks, will always be a positive integer that will fit in a C integer (int) type.
  • The maze length and height are not guaranteed to be equal but will be global fixed defined constants for each problem.

[Answer]