Perl was developed as a general-purpose Unix scripting language. Perl is a family of two high-level, general-purpose, and dynamic programming languages. This technology is used for rapid prototyping as well as large scale development projects. Perl coding test helps tech recruiters and hiring managers to quantify developer's Perl programming skills. Perl programming test is designed by experienced subject matter experts (SMEs) to evaluate and hire Perl developer as per industry standards.
Perl coding test helps to screen the candidates who possess skills as follows:
1. Knowledge of custom system programming, interaction with nodes, regular expressions, security, and cryptography
2. Excellent knowledge of custom and advanced algorithms that can automate a set of processes
3. Know-how of systems and applications that use Perl related programming capabilities like CGI scripting, regular expression, text, and string parsing abilities
How our coding simulator will help you to evaluate the programming skills of a Perl developer:
1. Automatically evaluate and provide a score for the candidate’s written codes by compiling multiple test cases that generate discrete output
2. You will also get a detailed report for each test case execution along with execution-time and execution memory usage for the candidate written program
3. The Code-Replay feature provides real-life like simulation of keystrokes allowing the code reviewer to understand the typing and thinking pattern of the coder.
This test may contain coding questions and innovative AI-LogicBox (an AI-based pseudo coding platform) questions to assess candidate's coding skills in a fun and interactive way.
Cryptography: SHA - 1
You are given string s of length n.
Write a Perl script to compute SHA-1 message digests for user input and display it.
Note
SHA-1 or Secure Hash Algorithm 1 is a cryptographic hash function which takes an input and produces a 160-bit (20-byte) hash value. This hash value is known as a message digest. This message digest is usually then rendered as a hexadecimal number which is 40 digits long.
Input Format
The first line contains an integer, n, denoting the length of the string.
The next line contains a string, m, of length.
Output FormatOutput an integer that denotes the Hash code generated by SHA-1
Sample Input
5
Gipsy
Sample Output
b1d761c7b19dc4eb9353fc93a8969befab39bd45
Explanation
The output (hash value (hexadecimal number)) is produced using the Secure Hash Algorithm 1.