2792 why do schools believe that those tests show anything? Maybe if its about some weird feature of a language and you want to see if that is understood without starting a whole project.
For example with javascript's non-blocking code concept you can ask something like
Why would the code below print 20 instead of 10.
Code:
var a = 10
$.ajax({
url : "some/url.php",
success : function(data){
console.log(a)
}
})
a=20
but again tests like these are very language specific and don't show how good someone is with that language, only shows if the one that gets tested is aware of certain language specific things.