Core Java Developer with Git Assessment

Default
ABC
sample@mettl.com
Test Taken on:
Report Version as on:
Finish State: Normal
Registration Details
Email Address: sample@mettl.com
First Name: Sam
Last Name: Not filled
Date of birth: Sep 15, 1994
Contact No: Not filled
Gender: Male
Country: India
Overall Assessment Score
Values shown in above chart are percentages
Unsatisfactory Average Good Exceptional Benchmark/Group Average
Strengths

Core Java - Constants Variables and Data Types:

Core Java - Multithreaded Programming:

Areas Of Development

Java - Collections:

Core Java - Threads:

Core Java - Flow of Control:

Competency Wise Analysis
Values shown in above chart are percentages
Unsatisfactory Average Good Exceptional
Sub-Skill Wise Analysis
Values shown in above chart are percentages
Unsatisfactory Average Good Exceptional
Question-wise Details
  Note: Some sections/questions are hidden by your Administrator
Hands-on Programming
Computer Networks
 
In network topologies under Computer Networks, there are three types of topologies: Bus topology, Ring topology and Star topology.
 
You are given a dataset that has several caselets (each caselet represents a topology) and each caselet has several lines. 
  1. A value 'N' denoting the number of nodes in the topology.
  2. A value 'M' denoting the number of connections in the topology.
  3. 'M' lines denoting which two nodes are connected.
You need to find which caselet represents which topology.
1. Return 1 if the caselet is a bus topology.
2. Return 2 if it is a star topology
3. Return 3 if it is ring topology
4. Return -1 otherwise
 
 
Input Specification:
input1: The value N
input2: The value M
input3: Array of size M containing the starting point of the connections
input4: Array of size M containing the end point of the connections
 
Output Specification:
Return the type of topology the network represents.
 
Example 1:
input1: 3
input2: 3
input3: {1,2,3}
input3: {2,3,1}
 
Output: 3
 
Explanation:
It represents a ring topology.
 
Example 2:
input1: 3
input2: 2
input3: {1, 2}
input3: {2, 3}
 
Output: 1
 
Explanation:
It represents a bus topology.
 
//

  • Compilation

    Successful

  • Time Taken

    10

    Minutes

    35 Seconds

  • Marks Scored

    3

    Out of 10

  • Language

    JAVA6


View Compilation Result View Summary JAVA6
Hide Summary Test Cases


Code compilation : 1 Successful 4 Attempts
Code complexity : 0



Total no. of Testcase : 12
Total Passed : 5

Test case Marks Cpu (ms) Processing (ms) Memory (KB) Inputs Expected output Actual output
Default Testcase 2 0
0
187
50296
3, 2, {1,2}, {2,3}
···
1
1
Default Testcase 1 0
0
196
50296
3, 3, {1,2,3}, {2,3,1}
···
3
3
Time Complexity Testcase 2 1
0
321
50296
75, 74, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75}
···
2
2
Time Complexity Testcase 1 0
0
403
50296
89, 89, {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89}, {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89}
···
3
2
Corner Testcase 2 0
0
260
50296
56, 55, {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55}, {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56}
···
1
2
Corner Testcase 1 0
0
183
124028
5, 5, {1,1,1,1,1}, {2,2,2,2,2}
···
-1
2
Necessary Testcase 2 0
0
314
115832
4, 4, {2,4,1,2}, {4,1,3,3}
···
3
2
Necessary Testcase 1 0
0
198
50296
10, 14, {3,7,6,8,3,5,6,4,2,7,9,7,8,3}, {2,2,4,1,9,6,3,1,5,10,5,1,10,4}
···
-1
2
Basic Testcase 4 1
0
186
50296
5, 4, {4,5,1,2}, {2,2,2,3}
···
2
2
Basic Testcase 3 0
0
274
132224
4, 3, {2,1,4}, {4,3,1}
···
1
2
Basic Testcase 2 0
0
279
197760
5, 9, {5,4,3,3,2,2,1,1,4}, {3,5,1,2,1,5,5,4,2}
···
-1
2
Basic Testcase 1 1
0
177
50296
4, 3, {1,1,1}, {2,3,4}
···
2
2

Test Log