ChallengeRocket
  • Product
    • Recruitment Challenges
    • Skill Assessment
    • Direct Hire
    • Hackathons
    • Intern Challenges
  • Challenges
  • Case-studies
  • Employers
  • Log in
  • Join talent network
  • Book demo
Menu
  • Home
  • Challenges
  • Exam Checker

This Challenge is completed

Exam Checker

Exam Checker
  • Completed
  • Completed

SEE LEADERBOARD

OTHER CHALLENGES

~5MIN
Jun 04, 2019 - Jan 03, 2021 03:50 UTC
SKILL PRACTICE CHALLENGE
  • Challenge outline
  • Tips
  • Leaderboard
Exam Checker
  • Challenge outline
  • Tips
  • Leaderboard

Challenge overview

Hello and welcome to the challenge!


Write a code which checks exam results by comparing student's answers with correct ones. Sum the score by adding 4 points for every correct answer, subtracting 1 point for every incorrect one and ignoring empty answers (marked by empty strings).


Input

  • array with correct answers as one-letter strings
  • array with student's answers as one-letter or empty strings


Output

  • the scored amount of points as an integer number


Constraints

  • 0 < length of the given arrays < 100


You can solve this programming contest in Ruby, JavaScript, Python, PHP and more languages. If you want, you can also take part in other Challenges. Below you can find some of them:


  • Sum Of Pairs
  • Make The Smallest Number
  • Odd Substrings


Did you like this challenge and would like to try your hand at some interesting big programming competitions? Check what’s all over the news in tech world in June 2019 in our article with upcoming IT Conferences, Hackathons and Online Challenges in June 2019.


Have fun and good luck! :)

ChallengeRocket
Tech talent
Challenges Blog Find jobs Employers
Companies
Business HR Blog Pricing
Challengerocket
FAQ EU Join Us Contact Us
Copyright © 2023 ChallengeRocket. All rights reserved.
Privacy Terms and Conditions Service status

Let’s talk

Proven effectiveness - get up to x3 more candidates and shorter recruitment time.

In view of your consent, the data you provide will be used by ChallengeRocket Sp. z o.o. based in Rzeszów (address: Pl. Wolności 13/2, 35-073, +48 695 520 111, office@challengerocket.com) to send messages as part of the newsletter subscription. Don't worry, only us and the entities that support us in our activities will have access to data. All information on data processing and your rights can be obtained by contacting us or at www.challengerocket.com in the Privacy Policy tab.

We will reply within 2 business days.

Log in


Forgot your password?

OR
Don’t have an account?
Create a candidate account or a company account

Log in

Forgot your password?

Create a candidate account

Already have an account?
Log in
OR
  • At least 10 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not a candidate?  Sign up as an employer

Reset your password

Remember your password? Log in Log in for business

Create an employer account

Sign up for free.
Select the best plan to publish job ofers & challenges.

Company name introduced here will be visible on your job ads.
  • At least 10 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not an employer?  Sign up as a candidate