r/learnprogramming • • 1h 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.

7 Upvotes

13 comments sorted by

2

u/SpacewaIker 1h 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 1h 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 1h 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 1h ago

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

2

u/gal771 1h ago

One submit only sadly

2

u/Character-Blood3482 1h ago

that is crazy man

1

u/Lichcrow 1h 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

-1

u/TheStryfe 1h ago

This might not be for you

0

u/gal771 1h 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 1h 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] 1h ago

[removed] — view removed comment

1

u/Mood-Rising 1h 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()