Report Section

PHP Javascript Developer Assessment
sample
| 1526456415867
Test Taker Details
s
sample
Email Address: sample@mettl.com
Test-Taker ID: - 21142750
Last Name:
Not Filled
Date of birth:
Mar 15, 1941
Contact No:
Not Filled
Gender:
Not Filled
Country:
Not Filled
Overall Assessment Score:
Values shown in above chart are percentages
Unsatisfactory (0 - 30)
Average (30 - 50)
Good (50 - 80)
Exceptional (80 - 100)
Benchmark/Group Average
Strengths
JavaScript - Object Usage and Properties
JavaScript - Parsing
JavaScript - Events and Event Handlers
Areas Of Development
1. PHP - Strings
2. JavaScript - HTML and Links
Competency Wise Analysis:
Values shown in above chart are percentages
Unsatisfactory (0 - 30)
Average (30 - 50)
Good (50 - 80)
Exceptional (80 - 100)
Sub-Skill Wise Analysis:
Values shown in above chart are percentages
Unsatisfactory (0 - 30)
Average (30 - 50)
Good (50 - 80)
Exceptional (80 - 100)
Question-Wise Details
Note: Some sections/questions are hidden by your Administrator. This may change the questions/sections ordering.
Section 1
Hands-on PHP Programming
1
question(s)
7m 53s
Time taken
10/10
Marks Scored
Question
Swapper
You are given a string which you have to convert into a palindrome such that each step involves swapping two adjacent characters. Find the minimum number of steps it would take for you to do so.
Note:
1. If the string could not be converted into a palindrome, return -1.
2. Also, if the given string is a palindrome, return 0.
Input Specification:
input1: The string |
Output Specification:
The minimum number of steps to convert the string to palindrome, if not possible return -1. |
Example 1:
input1: ntiin |
output: 1 |
Explanation:
The string can be converted to nitin in 1 step by swapping the t and the adjacent i.
Example 2:
input1: naman |
output: 0 |
Explanation:
The string is already a palindrome so no steps have to be performed.
//
Response
Compilation
Successful
Time Taken
7m
53s
Marks Scored
10
Out of
10
Language
PHP
PHP
00:00:00
/
00:00:00
Sample Test Case Timestamp
Graded Test Case Timestamp
Graded Test Case Code Compilation :
5
Successful
5
Attempt
Sample Test Case Code Compilation :
5
Successful
5
Attempt
Code complexity
:
0
Total no. of Testcase :
12
Total Passed :
12
Test Case
Marks
Cpu (ms)
Processing (ms)
Memory (KB)
Inputs
Expected output
Actual output
Error Message
Default Testcase 2
0
0
253
132224
naman
0
0
NA
Default Testcase 1
0
0
134
50296
ntiin
1
1
NA
Time Complexity 2
1
0
237
50296
vvvxxxvvxv
2
2
NA
Time Complexity 1
1
0
426
124028
wrwrwfrrfrffrrwwwffffwrfrrwfrrfrwwfwfrwfwfwffwrrwfrrrwwwfrrrwfrrfwrwwrwrrrffffwrrrwrwfffwrffrwwwrwww
172
172
NA
Corner Testcase 2
1
0
539
50296
zzzozzozozozoza
-1
-1
NA
Corner Testcase 1
1
0
220
132224
aaaabbcccccdd
30
30
NA
Necessary Testcase 2
1
0
379
50296
aaabbb
-1
-1
NA
Necessary Testcase 1
1
0
250
50296
affawwzzw
11
11
NA
Basic Testcase 4
1
0
248
197760
aaabbccddbbccddaaaaaaaa
42
42
NA
Basic Testcase 3
1
0
234
50296
aaaaaaaaaaaaa
0
0
NA
Basic Testcase 2
1
0
475
50296
aabbcccdd
15
15
NA
Basic Testcase 1
1
0
231
50296
veell
4
4
NA
Question-Wise Details
Section 2
Frontend Developement Skills
1
question(s)
12s
Time taken
0/10
Marks Scored
Question
Gallery View
You are the Front-end developer
of your company and are working on a new web application project.
Given:
You started building and completed the basic HTML structure of a Gallery view in which there is a horizontal series of items. The element clicked is displayed at bottom. There are buttons to scroll list left and right. The list is circular which means that after last element first element should be displayed.
You started building and completed the basic HTML structure of a Gallery view in which there is a horizontal series of items. The element clicked is displayed at bottom. There are buttons to scroll list left and right. The list is circular which means that after last element first element should be displayed.
Note : Do not change the array of list items and gallery window size in the file index.js
Objective(s):
You are now required to use CSS and JavaScript and complete the following tasks:
You are now required to use CSS and JavaScript and complete the following tasks:
- Implement the functionality for left and right buttons which will scroll the list to left and right respectively. The list items are stored in array variable a and list is circular.
- Add a functionality to display "You have selected x element" whenever the item is clicked .
- The default text should be "None Selected" and default list items should be 1,2,3.
Constrain(s):
- Do not change the "name" or "id" of any element in the form as it will cause the code developed by the back-end developer to fail.
- Do not remove the CDN link for jQuery as your code will not run without it.
- You are not required to add/change any HTML styling in the form.
///
Test Log
Test Log
16 May,2018
About the Report
This Report is generated electronically on the basis of the inputs received from the assessment takers. This Report including the AI flags that are generated in case of availing of proctoring services, should not be solely used/relied on for making any business, selection, entrance, or employment-related decisions. Mettl accepts no liability from the use of or any action taken or refrained from or for any and all business decisions taken as a result of or reliance upon anything, including, without limitation, information, advice, or AI flags contained in this Report or sources of information used or referred to in this Report.