Our C Programming test is the most effective tech assessment to gauge a candidate’s knowledge of C Programming concepts. This C Programming Skills test enables hiring managers and recruiters to hire job-fit candidates for a C Programmer job role. The online C Coding test can reduce hiring costs by 40% and help in building winning tech teams.
C Programming is a general-purpose programming language which supports structured programming. It is widely used for system and application software. The various C Programming elements and concepts, such as functions, loops, pointers, arrays should be used effectively by a programmer to solve real-world problems.
The C Programming test is designed mainly to assess candidates' performance in coding evaluation, knowledge of various functions, and related codes. In this test, the programmer must write the code using C coding language.
Using powerful reporting, a detailed analysis of test results is provided to facilitate better decisions and predict candidates'/employees' success. The test enables employers and recruiters to identify potential hires by evaluating working skills and job readiness. Therefore, the emphasis is laid on evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.
The test may contain AI-LogicBox(Pseudo coding platform), Coding Simulators, etc.
You are given a string which consists of decimal digits (0-9).
Each digit is made of a certain number of dashes, as shown in the image below.
For instance, 1 is made of 2 dashes, 8 is made of 7 dashes, and so on.
In this seven-segment display the digits are created by illuminating the following set of dashes:
1. 2 6. 6
2. 5 7. 4
3. 5 8. 7
4. 4 9. 6
5. 5 0. 6
Write a code that considers a string as input and returns the total number of dashes.
Input Format
A string of integers.
Output Format
The number of dashes in the string
Sample Input
12134
Sample Output
18
Explanation
1 = > 2
2 => 5
1 => 2
3 => 5
4 => 4
2 + 5 + 2 + 5 + 4 = 18