Pergunta de entrevista da empresa UST

Basic from java as I was from ECE.Asked to print pattern.There were also some project related questions. 2nd technical interview question was,a coffee mechine with options-cold coffee,hot coffee and normal coffee.You have to code it. Basic questions were asked in HR round.They put a pencil infront of me and asked me to use it in ten different ways but you can't use it as a pencil.