r/C_Programming • • 9d ago

How can I pass c exam

I have a c exam tomorrow, I failed my internal exams, ik what im doin is dumb . Exam is on 50 and I need 15 to pass but I don’t know how to write programs, can I pass by studying theory

0 Upvotes

13 comments sorted by

20

u/lfdfq 9d ago

No.

16

u/OrganizationFew6655 9d ago

Not studying till the last minute is only the privilege of people who knows ball and you my unfortunate friend doesn't seem to know ball

4

u/non-existing-person 9d ago

Most likely you'll fail, hard, but it won't hurt to read something. I mean... what else you can do? Maybe you'll pass.

I suppose you could lie to a doctor you are sick or something to get a note from him - maybe your university will let you retake the exam at later time.

4

u/chrism239 9d ago

Perhaps investigate if there's an early-bird rate for re-enrolling early for next semester?

4

u/FedUp233 9d ago

What kind of exam has a pass score of 15 out of 50? That’s insane!

When I was in school a bare pass was 75 out of 100 (about 38 out of 50)! A basic C grade was in the 80’s out of 100 and an A was in the 90’s!

Who would ever hire someone who passed a programming test with 15 out of 50? Is this typical these days?

1

u/ItsSkyWasTaken 9d ago

Maybe it's like a final and that's the score they need to pass the entire course, combined with all the other grades?

1

u/FedUp233 9d ago

Possible - op was not very clear.

3

u/[deleted] 9d ago

You are cooked. I mean, learning the basics in one day is feasible if you are very motivated and have former programming experience, but you would probably not be able to pass an exam. If you already failed exams on C, it probably means you are weak on programming in general. Not going to work. You can't start working the day before the exam, doesn't work.

2

u/AntMan5421 9d ago edited 9d ago

I believe you can pass, but for that to happen you absolutely have to write code. idk what does your exam cover, but I imagine it's the standard algorithms and data structures. If that's the case, I recommend getting familiar with how C works, and then moving on to "theory". it's really not that much, i am sure all my friends in physics/math/medicine are learning much more complex topics. i guess the hard part here is starting out.

i will paste some starting points i prepared for a friend in a related situation. it's a bit broad because she had more time for the exam, but you still might find it useful i guess.

and don't listen to reddit, you know how it's around here these days :))

EDIT: my reply doesn't show up?? pasting it here:

First of all, you can write C on any computer with any operating system. I am only familriar with MacOS and Linux. The compilation commands are going to be different on Windows.

  1. compilation toolchain

    • writing code in .c files
    • hello world in C using printf
    • compiling to binary using clang
    • executing binary files
    • using make to speed up the process
    • working with documentation (we checked out printf syntax here)
    • man - a useful manual in your terminal examples: man ascii, man printf
  2. functions (she kinda knew how to write these so I don't have anything here)
  3. data structures & memory

    • variables
    • int, char, float and double types
    • sizeof - check the size of your variable
    • defining structs to hold your data
    • struct data fields
    • sizeof struct
    • pointers
    • value of a pointer https://www.youtube.com/watch?v=DTxHyVn0ODg
    • two pointers to the same thing
    • -> operator
    • passing by reference (& operator)
    • signature of main (check if your exam requires you to know how to write a program that you can run like ./myprogram 6 7, if not don't bother)
  4. compilation II (from my experience, you might not need this at all for uni, but here we went over things that are useful in general for writing programs)

    • header files
    • linking & preprocessor
    • compilation unit
    • object files
    • preprocessor macros
    • extern keyword
    • linking with math library
    • debug symbols and gdb
    • optimization files
  5. OOP - here we went over c++ classes, but since it's only in C++ and you have a C exam, thankfully you don't need to know about these

1

u/SmokeMuch7356 9d ago

This is an impossible question to answer. We don't know what you don't know, we don't know what this exam is going to cover.

Why are you in this position? Did you just not do your assignments, or is the subject matter really that difficult for you?

If you just didn't do your assignments, no amount of power cramming is going to help you now. I don't know what "theory" you're talking about, but you're not going to learn what you need in one day.

If you genuinely do not understand the material, that's okay; I went to school with plenty of people who were smart (at least smarter than me), hard-working, and enthusiastic, but could never wrap their heads around programming. Programming is as much a matter of aptitude as it is intelligence. But if that's the case you need to be honest with yourself and maybe look at changing your academic plans.

1

u/Dazzling_Music_2411 8d ago

Theory - Ha ha ha, very funny!

1

u/Puzzled-Extent7817 5d ago

You're in a C class but know nothing? Change your major. Or drop out.

0

u/BreakfastSame5083 9d ago edited 9d ago

You are sort of screwed. Maybe if you had a week or so, you would be ok. Learn from this allocate your study time better. Put some time aside to do assignments and exercises. C coding isn't difficult, but you can't learn it over night. Also if you are struggling, book time with your teacher, instructor, professor and let them help you.

As an aside I would say, once you get the basics down, you might actually enjoy it. Its like building a private world to solve puzzles and can be extremely satisfying.