Interview Questions
Interview Questions
Interview Questions
aPlease note: Questions 7-9 are optional and only meant to give an overview of
your current skills in various technical areas.
Just skip the questions you are not familiar with, we do not expect you to excel
in all areas ;-)
Feel free to add comments in your answers.
#Test 1 - 6 is written in python
[rco] 1
[rco] 1
[rco] 1
except:
pass
[rco] 0 - I see the idea, but s is never returned, nor initialized upon every
"first" call
[rco] 1
[rco] 0 - the file does not fit in memory, hence appending to new_text will
crash...
[rco] 1
Printer = function(){
this.print = function() {
console.log(this);
}
}
var printer = new Printer();
2.
SELECT * FROM PRODUCT WHERE ID IN (SELECT ID_PRODUCT FROM (SELECT ID_PRODUCT,COUNT
(ID_CATEGORY) AS NCATS FROM BELONGS WHERE ID_CATEGORY IN (SELECT ID FROM CATEGORY
WHERE PUBLIC = TRUE ) GROUP BY ID_PRODUCT) AS B WHERE NCATS > 5)
3.
FIRST I WILL INSERT CATEGORIES -- INSERT INTO CATEGORIES NAME,PUBLIC VALUES
( NAME, TRUE/FALSE)
THEN I WILL INSERT ALL THE PRODUCTS AND FOR EACH PRODUCT I WILL CHECK THE IDS OF
CATEGORIES THAT IT BELONGS. WITH THE ID OF THE PRODUCT AND ITS' CATEGORIES I WILL
POPULATE THE TABLE BELONGS
AND COONECT THE PRODUCTS WITH CATEGORIES
[rco] 1