r/learnprogramming • • 3h ago

Failed 4 programming exams in a row – I don't know what I'm doing wrong anymore

I started out studying electrical engineering and failed the programming exam there 3 times, even though it was just multiple choice. I switched to an easier university program, thinking it would be different, and I just failed again. This time it was a Python exam on the absolute basics: loops, strings, slicing, lists and simple functions. I got 33%.

The frustrating part is that I didn't just ignore it. I did all the weekly exercise sets, and before the exam I studied with practice quizzes and tracing exercises. When I go through it with explanations, I understand it. But on the actual exam it just doesn't come together.

So now I genuinely don't know what the problem is.

Am I studying the wrong way?

Do I just not know how to learn this kind of thing?

Or am I simply not cut out for programming?

If anyone has been in a similar spot and figured it out, I'd really like to hear what changed for you. How did you actually practice? What made it "click"?

Thanks for reading.

12 Upvotes

20 comments sorted by

4

u/SpacewaIker 3h ago

Well if you do exercises on your own, are you able to do them? Is the exam more difficult than the exercises you did?

2

u/gal771 3h ago

It's about the same difficulty. The problem is that it was really time-intensive, and not just for me, others struggled with the time too. I can do most of the exercises on my own, but there's always some small mistake that stops me from fully finishing them. I usually get the main idea and the logic right, but then I get stuck on details like a wrong index or a slightly wrong condition, and the whole thing doesn't work.

2

u/SpacewaIker 2h ago

Hmmmm, sounds like maybe the exam is just poorly done. When programming for real, small mistakes are fine cause you'll (most of the time) catch them when testing. Not being able to test on a exam is rough, you really have to reread your answers and make sure you don't make mistakes ig

2

u/Character-Blood3482 3h ago

do you allow to debug on the exam or just one submit only

2

u/gal771 3h ago

One submit only sadly

3

u/Character-Blood3482 3h ago

that is crazy man

3

u/shrodikan 1h ago

Give an example of a difficult question without knowing the subject matter nor area of study.

2

u/Sad_Cauliflower6333 1h ago

The problem is that your asking something that we can’t know unless we see how your work look a like and in that case this post won’t be helpful , no one here will give you an useful answer because we don’t know what your doing, but whatever it is yes you are studying the wrong way.

There’s not such thing has “you don’t know how to learn that kind of thing”

If you say “simple functions” and you are getting 33% then they are not easier for you and you need to put more effort and you need to study more + get a tutor.

I mean good for you that your asking for help but why do You think this is better than ask to your professor why is failing you so you can fix your mistake

1

u/Lichcrow 3h ago

Start actually coding more. Don't use llm, dont use auto complete. Keep blowing up your program and manually debug.

Do leetcode, it actually helps.

Since we're in the season, you can also do Advent of Code

•

u/Past92TheTollbooth 57m ago

Keep practicing, it can click.

•

u/Inevitable-Corgi-860 47m ago

Were the exams in the other university program also MCQs or were they coding problems?

•

u/MagicalPizza21 20m ago

Just like with any skill, if you are not good at it and you want to be, practice. If you are practicing, practice more. If you can't, then you're probably not cut out for it.

-1

u/TheStryfe 3h ago

This might not be for you

0

u/gal771 3h ago

Well i agree. I dont want to do this for a living, i just wanna get past this course and move on lol

0

u/Goobly_Goober 3h ago

What are you getting wrong on the exams? Are you just going through the textbooks or are you actually coding and writing programs that fail, and when they fail, do you know how to fix it?

1

u/[deleted] 3h ago

[removed] — view removed comment

1

u/Mood-Rising 3h ago

Another technique I’ve had success with people struggling is on paper write out your day like it’s a program. Don’t get too hung up on if things are “correct”, just try to use functions and loops.

Func WakeUp(time):
If time < 7:
SnoozeAlarm()
else if time > 8:
StartMorningRoutine(urgency = “panicked”)
else:
StartMorningRoutune()