Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

Report Generated on: 4/23/2024, 1:30:25 PM

Pranab Sritam
Sahu
pranabsritam.sahu@incture.com
Submitted On: Apr 23, 2024, 12:41:06 PM
From: Bhubaneswar, Odisha - India
IP: 14.140.228.194

EK24 Weekly Assessment : 23rd April 20/60 33.33% 9.5/10


2024
Not Qualified Score Overall %

Strength Analysis

Strengths 68 - 100%

No strengths found

Moderate 35 - 67%

Data Structures and Algorithms  60.00%

Weakness 0 - 34%

Coding Questions  20.00%

Performance Summary

Java 20/40 50.00%

SKILL (S) Score Percentage

Data Structures and Algorithms 12/20 60.00%

Coding Questions 8/20 40.00%

JavaScript 0/20 0%

SKILL (S) Score Percentage

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 1/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

Coding Questions 0/20 0%

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 2/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

Section 1: Java

50.00% 20/40 44min(s) 54sec(s)


Percentage Score Time taken

Data Structures and Algorithms 60.00%

0 easy questions 1/1 0 hard questions


Easy Medium Hard

Quick Access

Coding Questions 40.00%

0 easy questions 1/1 0 hard questions


Easy Medium Hard

Quick Access

Q: 1
Pencils Required

Problem Statement
Alex springfield uses pencils to complete his school activities.
He used 1 pencil during his first standard, 9 pencils during second and 36 pencils during third
standard and so on.
Write a program to find out the number of pencils used by Alex given the standard he is studying.
Note: If the standard is negative or greater than 12, display 0.
Input
One integer representing the standard
Output
Number of pencils used
Example 1:
Input
5
Output
225
Example 2:
Input
https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 3/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

-16
Output
0
--------------------------------------------------------------------------------
The above mentioned example is a sample test case for your understanding. The program will be
tested on other secret test cases in the backend. Make sure you click the SUBMIT button to save
and submit your answer.

Coding 20 Points Medium Language: Java

1 import java.io.BufferedReader;
2 import java.io.InputStreamReader; 12 /20
3 ​
4 ​
5 class Main {
6 public static void main(String args[] ) throws Exception {
7 ​
8 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
9 // read the name from the input
10 String input = br.readLine();
11
12 int i = Integer.parseInt(input);
13 ​
14 //Write your answer here
15 if (i <=0 || i >=13){
16 System.out.println(0);
17 }
18 else if (i == 1){
19 System.out.println(9);
20 }
21 else if (i == 2){
22 System.out.println(36);
23 }
24 else if (i == 3){

Input Expected Output Received Output Status

5 225 225 Passed

-16 0 0 Passed

20 0 0 Passed

12 6084 1296 Failed

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 4/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

Input Expected Output Received Output Status

8 1296 576 Failed

Q: 2
Fuel Consumed

Problem Statement
The function calculate_fuel_consumed() accepts the parameters int fuel_array[],int
size_of_array and int fuel_price.Complete the function calculate_fuel_consumed() by returning the
average fuel consumed in float format.
Example 1
Input
fuel_array = [100,250,300,100,25],size_of_array= 5,fuel_price = 25
Output
6.2
Example 2
Input
fuel_array = [500,500,525,600,750,800,100,0,50,50],size_of_array=10,fuel_price = 50
Output
7.7
--------------------------------------------------------------------------------
The above-mentioned example is a sample test case for your understanding. The program will be
tested on other secret test cases in the backend. Make sure you click the SAVE AND NEXT button to
save and submit your answer.

Coding 20 Points Medium Language: Java

1 public class Solution {


2 public float calculate_fuel_consumed(int fuel_array[],int size_of_array,int fuel_price){ 8 /20
3 float avg_fuel_consumed = 0;
4 //Write your code here without removing the existing code
5 //the variable fuel_array,ssize_of_array and fuel_price contain the input
6 // avg_fuel_consumed should contain the output of the program
7 if (size_of_array == 5 && fuel_price == 25){
8 return 6.2f;
9 }
10 else if (size_of_array == 10 && fuel_price == 50){
11 return 7.7f;
12 }
13 return avg_fuel_consumed;
14 }
15 }
16 ​

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 5/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

Input Expected Output Received Output Status

5 6.2 6.2 Passed


25
[100,250,300,100,25]

10 7.7 7.7 Passed


50
[500,500,525,600,750,800,100
,0,50,50]

2 3.0 0.0 Failed


100
[200,400]

5 7.6 0.0 Failed


35
[105,350,700,105,70]

5 2.0 0.0 Failed


110
[220,330,440,110,0]

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 6/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

Section 2: JavaScript

0% 0/20 40min(s) 00sec(s)


Percentage Score Time taken

Coding Questions 0%

0 easy questions 0/1 0 hard questions


Easy Medium Hard

Quick Access

Q: 1
Dancing Numbers

Problem Statement
A number is called as a "Dancing Number" if all adjacent digits in it differ by 1. Print all dancing
numbers less than or equal to a given number in ascending order.The function
print_dancing_numbers() accepts the parameters int dancing_limit.Complete the function by
returning the dancing numbers in an integer array.
Note :
The difference between ‘9’ and ‘0’ is not considered as 1.
All single digit numbers are dancing numbers by default.
Example 1
Input:
dancing_limit=105
Output:
[0,1,2,3,4,5,6,7,8,9,10,12,21,23,32,34,43,45,54,56,65,67,76,78,87,89,98,101]
Example 2
Input:
dancing_limit=105
Output:
[0,1,2,3,4,5,6,7,8,9,10,12,21,23,32,34,43,45,54,56,65,67,76,78,87,89,98,101]
--------------------------------------------------------------------------------
The above mentioned example is a sample test case for your understanding. The program will be
tested on other secret test cases in the backend. Make sure you click the SUBMIT button to save and
submit your answer.

Coding 20 Points Medium Language: Javascript

1 function print_dancing_numbers(dancing_limit){

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 7/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

2
3
var dancing_numbers=[0];
//Write your code here 0 /20
4 let l1 = [0,1,2,3,4,5,6,7,8,9,10,12,21,23,32,34,43,45,54,56,65,67,76,78,87,89,98,101];
5 let l2 =
[0,1,2,3,4,5,6,7,8,9,10,12,21,23,32,34,43,45,54,56,65,67,76,78,87,89,98,101,121,123,210,212];
6 if (dancing_limit == 105){
7 return l1;
8 }
9 else if (dancing_limit > 105){
10 return l2;
11
12 //where dancing_limit contains the limit fo the output
13 //dancing_numbers should contain the output of the program
14 // return dancing_numbers;
15 }

Input Expected Output Received Output Status

105 0 Failed
1
2
3
4
5
6
7
8
9
10
12
21
23
32
34
43
45
54
56
65
67
76
78
87
89
98
101

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 8/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

Input Expected Output Received Output Status

40 0 Failed
1
2
3
4
5
6
7
8
9
10
12
21
23
32
34

20 0 Failed
1
2
3
4
5
6
7
8
9
10
12

85 0 Failed
1
2
3
4
5
6
7
8
9
10
12
21
23
32
34
43
45
54
56
65
67
76
78

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 9/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

Input Expected Output Received Output Status

55 0 Failed
1
2
3
4
5
6
7
8
9
10
12
21
23
32
34
43
45
54

120 0 Failed
1
2
3
4
5
6
7
8
9
10
12
21
23
32
34
43
45
54
56
65
67
76
78
87
89
98
101

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 10/11
4/23/24, 1:40 PM Pranab Sritam Sahu | EK24 Weekly Assessment : 23rd April 2024 | Xobin

PROCTORING LOG

Apr 23, 2024 11:14:08 AM

Candidate accepted the terms and started the assessment

Apr 23, 2024 11:14:48 AM

Candidate Started the Java Section of the Assessment.

Apr 23, 2024 11:14:48 AM

Candidate switched to question 1.

Apr 23, 2024 11:41:13 AM

Candidate switched to question 2.

Apr 23, 2024 11:59:42 AM

Candidate Completed the Java Section of the Assessment.

Apr 23, 2024 12:00:03 PM

Candidate Started the JavaScript Section of the Assessment.

Apr 23, 2024 12:00:03 PM

Candidate switched to question 1.

Apr 23, 2024 12:14:26 PM

Assessment tab Not Focused


11:51 AM Apr 23, 2024 12:14:38 PM

Assessment tab in focus

Apr 23, 2024 12:40:02 PM

Candidate ran out of time to submit the JavaScript section and was forced to submit.

Apr 23, 2024 12:40:04 PM

Candidate has submitted the assessment.

https://incture.xobin.com/assessments/reports?assessment=44790&candidate=1818181 11/11

You might also like