Can acing the upper level course compensate background of no basic course in graduate application
It would look slightly odd, but good grades in advanced courses would generally be seen as sufficient to show that you understand the material. In the end, graduate admission committees aren't so much interested in knowing how you acquired necessary background knowledge than knowing that you have it. How that is demonstrated is secondary, and acing upper level courses is certainly one acceptable way to do so.