[ ] Thursday, 13 November 2014 [ ]

Job Hunting

Came across a Junior Software Developer Role with an organisation called Sum of us the job had a online-test on ClassMarker as part of the selection process.

I gave the test ago but ran out of time on question 23 of 25 - so I decided to game the system.

The tests included three bits of python code:

Sum Function
def add(x, y):
return x + y

List Function
def f(L): 
result = [] 
for e in L: 
  if type(e) != list: 
    result.append(e) 
  else: 
    return f(e) 
return result

Encryption Function
def buildCodeBook():
	letters ='.abcdefghijklnopqrstuvwxyz '
	codeBook = {}
	key = 0
	for c in letters:
		codeBook[key] = c
		key += 1
	return codeBook
 
def decode(cypherText, codeBook):
	plainText = ''
	for e in cypherText:
		if e in codeBook:
		  plainText += codeBook[e]
		else:
		  plainText += ' '
	return plainText
 
codeBook = buildCodeBook()
msg = (8,14,12,1)
print decode(msg, codeBook)

Using Tor I gave the test a second go - the answers were in a different order, but the questions where the same, this time I finished with 2 minutes to spare. I was not sure that I had 25 out 25…

ClassMarker uses three cookies to record your visits - deleting them allows multiple attempts.

json: JavaScript Object Notation.

CSS last rule wins.

Was unsure of AJAX question…

highlight.js

A JavaScript library for generating highlighted code snippets.


$Id: diary,v 1.38 2025/01/01 22:43:54 fred Exp $