John Doe

Full stack developer

Email
john.doe@***.com
Submitted on
Apr 7 - 5:15 PM
ID: FUT3245
Over all Time
60 mins
Total answered
21 / 25

75%

Over all Rating

75%

Over all Score

75/100

Qualified percentage’s is 50%

Section Score Details

Fundamentals of programming

43%

Data structures

60%

Web Development

30%

Back end Development

80%

Database Management

16%

Vision control system

50%

Software develop life cycle

90%

Testing and debugging

25%

Fireworks/Libraries

75%

Quantitative Aptitude

35%

Logical Reasoning

65%

Problem solving

72%

Fundamentals of programming

72%

Time taken

22 mins

Total Score

72/100

Quick access

01

02

03

04

05

06

07

08

09

10

11

12

13

14

15

16

17

18

19

20

Correct

Wrong

Not Answered

88%

Multiple choice questions

1. What is the primary purpose of the "if-else" statement in programming?

Multiple Choice Question 1 Point Easy

Correct answer        :   Used to execute both the true part and the false part

Candidate answer    :   IF statement and IF-ELSE statement is that there's an additional ELSE attached to it

Status                        :   Wrong

0/1

2. Which of the following is a linear data structure?

Multiple Choice Question 1 Point Easy

Correct answer        :   Array - it is a linear data structure.

Candidate answer    :   Array

Status                        :   Correct

1/1

3. How is the 2nd element in an array accessed based on pointer notation?

Multiple Choice Question 1 Point Easy

Correct answer        :   *(a+2) - a[2] is equivalent to *(a + 2) in pointer notation.

Candidate answer    :   *a+2

Status                        :   Wrong

0/1

Coding

72%

Time taken

22 mins

Total Score

72/100

Quick access

01

02

03

04

05

06

07

08

09

10

11

12

13

14

15

16

17

18

19

20

Correct

Wrong

Not Answered

88%

  1. The following JavaScript code is intended to count the number of vowels in a string. However, there is an error in the code that might lead to unexpected behavior. Identify the error and provide a corrected version.

function countVowels (inputString) {
// Convert the string to lowercase to handle both upper and lower case vowels
inputString = inputString.toLowerCase();
let vowelCount = 0;
for (let char of inputString) {
}
}
if [char === 'a' || char === 'e' || char === 'i' || char === 'o' || char === 'u'] {
vowelCount++;
}
return vowelCount;

// Example usage:
const testString = "Hello World";
const result = countVowels (testString);
console.log("Number of vowels in the string:", result);

  1. Answer given by candidate

function countVowels (inputString)
{
Convert the string to lowercase to handle both upper and lower case vowels inputString =
inputString.toLowerCase();
let vowelCount = 0;
for (let char of inputString)
{
if (char === 'a' || char === 'e' || char === 'i' || char === 'o' || char === 'u')
{
vowelCount++; return vowelCount;
}

Rating of coding            :      Rating 2

Comments on Coding   :      The candidate accurately identified and rectified the syntax error in the if statement for checking vowels.

  1. Write a JavaScript program to find the factorial of 5.
  1. Answer given by candidate

Let sum = 1;
for(let i=2;i<=5;i++)
{
sum*=i;
}
console.log(sum)

Rating of coding            :      Rating 10

Comments on Coding   :      The candidate provided a concise and correct solution to compute the factorial of a number in JavaScript.

Tab Violation Alert

Unauthorised tab usage in full stack developer test detected.

Total tab violation : 1

Violation happened at : 12:40 pm