Start hiring job-fit candidates using this assessmentGET A DEMO
"We realized that to acquire quality talent, our recruitment process was in dire need of automation. Too many of our technicalteam were simply wasting hours conducting interviews that did not yield the desired results. For us the foremost criteria were to finda recruitment partner who could tick all the right boxes"
Global Product & Services Recruitment Head
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.
You have to write a code that takes this string as an input and returns a total number of dashes.
A string of integers
Number of dashes in the string
String message will contain at least one digit, but not more than 100
Each character in the code will be a digit ('0'-'9').
Good News! You can customize this test as per your requirement
Choose and add questions from Interview Mocha question libraries
Add your own set of questions
Customize test settings like duration, number of questions, passing score, web proctoring and much more
Mail us at email@example.com to create a custom test
Looking for a tailor-made test, to suit your assessment needs?Get in touch
Global companies using Mocha assessments
How Mocha assessments are brewed
Speed up your IT recruitment with Interview Mocha
- 500+ IT skill tests
- 20+ coding languages
- 50+ domain knowledge tests
- 100+ digital 2.0 skill tests
- Customer focus aptitude tests
- Enterprise ready features & more...