I can only speak for myself, but I've
never met a (CS) candidate from an accredited Scandinavian university / college that simply could not write code.
There are obviously candidates that struggle with performing under pressure - even those that have gone completely blank, but through some simple guiding have bounced back.
To be frank, at the schools I studied at, it would be impossible to fake your way through a whole degree, unless you either got someone to impersonate you and take your exams, or you cheated your way through every single exam...but even then, your grades would be a big red flag.
Sure, there are bad programmers out there - but not being able to punch out a line of valid code, after obtaining a whole degree in the subject...seems extremely unlikely - sans the extreme edge cases.
Even the straight E / D students I've worked with managed to cobble together working stuff, without the aid of search engines or stack exchange.