90% Fail Answer

Today on LinkedIn, I saw this:

fail_answer

Here’s my (correctly formatted) answers:

The following assumes:

  • + is the arithmetic addition operator
  • x is the arithmetic multiplication operator
  • Standard order of operations: multiplication takes precedence

Given no line has operators joining them, an answer (in decimal) is:

  • Line 1: 5
  • Line 2: 5
  • Line 3: 2

However, if one were to concatenate the lines (assuming whitespace is ignored), this gives:

1 + 1 + 1 + 1 + 11 + 1 + 1 + 1 + 11 + 1 x 0 + 1

Since there is no indication of which base is used, here are some answers:

  • binary: 1110
  • octal: 33
  • decimal: 35
  • hexadecimal: 2A

Yeah, I kind of geeked out on this…

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Time limit is exhausted. Please reload the CAPTCHA.