Report for test

C# Web developer test

RESULT

FAIL
Jun 1, 2016 12:06 (UTC)
7min

TOTAL

48%

BREAKDOWN

C#
33%
HTML/CSS
53%


NOTES


david: This candidate is strong on algorithms
bill: I recommend this candidate

QUESTION 1 C# Public

DESCRIPTION

A palindrome is a word that reads the same backward or forward.

Write a function that checks if a given word is a palindrome. Character case should be ignored.

For example, IsPalindrome("Deleveled") should return true as character case should be ignored, resulting in "deleveled", which is a palindrome since it reads the same backward and forward.

33%
1min 26sec

ANSWER
using System;

public class Palindrome
{
    public static bool IsPalindrome(string word)
    {
        if (word.ToLower().StartsWith("d") && word.EndsWith("d"))
            return true;

            return false;
        }

        public static void Main(string[] args)
        {
            Console.WriteLine(Palindrome.IsPalindrome("Deleveled"));
        }
    }

EVALUATION

Compilation OK, but 2 out of 3 test cases fail:

  • Example case: Correct answer
  • Lowercase words: Wrong answer
  • Various words: Wrong answer

QUESTION 2 HTML/CSS Public

DESCRIPTION

Fix the bugs in the following HTML code.

25%
46sec

ANSWER
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Company page</title>
  </head>
  <body>
    <p>Welcome! Here you can find following things:</p>
    <ol>
      <em><li><a href="#logo">Company's logo</a></li></em>
      <li><a href="#employees">List of employees</a></li>
    </ol>

    <h1>Company's logo
    <p>Company uses following logos:</p>
    <ul>
      <li>New logo:</li><img source="new_logo.gif"/>
      <li>Old logo:</li><img source="old_logo.gif"/>
    </ul>

    <h1>List of employees
    <thead>
      <th>First name</th>
      <th>Last name</th>
    </thead>
    <table>
      <tr>
        <td>Mary</td>
        <td>Williams</td>
      </tr>
      <tr>
        <td>James</td>
        <td>Smith</td>
      </tr>
    </table>
  </body>
</html>

EVALUATION

Run OK, but 3 out of 4 test cases fail:

  • Paragraphs: Correct answer
  • Headings: Wrong answer
  • Lists and images: Wrong answer
  • Table: Wrong answer

QUESTION 3 HTML/CSS Public

DESCRIPTION

Using CSS only (without adding additional HTML attributes), style articles so that they occupy the whole browser window and have the following properties:

Article Position Background color
First Upper-left quarter Red
Second Upper-right quarter Yellow
Third Lower-left quarter Blue
Fourth Lower-right quarter Green

Note: Note: The "CSS3 Flexible Box" layout mode and "Viewport Units(vh, vw, vmin and vmax)" are currently not supported.

67%
3min 58sec

ANSWER
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Articles</title>
  <style>
    html, body { 
      height: 100%; 
      width: 100%;
      margin: 0px; 
    }
    article { 
      position: relative; 
      float: left; 
      height: 50%; 
      width: 50%; 
    }
  </style>
</head>
<body>
  <article>First</article>
  <article>Second</article>
  <article>Third</article>
  <article>Fourth</article>
</body>
</html>

EVALUATION

Run OK, but 1 out of 3 test cases fail:

  • Article size: Correct answer
  • Article position: Correct answer
  • Article color: Wrong answer