r/computerscience • u/UnRenardRouge • May 10 '19
Any other CS students have no problem actually writing code, but struggle with tracing code, answering logic based questions, or really just paper and pencil CS exams in general?
39
u/PlayfulRemote9 May 11 '19
The hard part of cs is the logic. It’s why in interviews they look for how you solve the problem, not how you write the code
17
u/Prcrstntr May 10 '19
Scope tracing was some of the most tedious problems I had to do.
1
u/magical_h4x May 11 '19
What is scope tracing? I did a quick search and didn't find anything
1
u/alnyland May 11 '19
I’ve never heard of it but I’m guessing tracing data in a scope. If you know what a scope is and how variables and functions are allocated related to that scope this would make sense.
6
u/ZombieIsLost May 11 '19
I did pretty well on the coding assignments in my data structures and algorithms class averaged around 90%, but it's the one class where I couldn't do exams to save my life, I think I got around a 40% on the final with the average around 55%.
11
u/therealnathb May 11 '19
I always flunked exams, still to this day buckle under written papers. Had to get above 95% in all my projects and class work just so I could afford to get 30% in my written exams. I'm 25 and when I was 14 I started bringing my laptop to school and school let me sit the next 4 years of exams with it lol. Oops.
5
u/bestantinople May 11 '19
Assembly taught me to trace in the sense that I was absolutely forced to in order to do anything at al, lol. Definitely a valuable skill.
4
u/jmartn23 May 11 '19
I don't mean this to be offensive, but your code is probably pretty bad if you struggle to understand the underlying logic and can't trace code. Sure it's easy to write code, but it's hard to write good code until you get those other things under control.
2
u/K0nvict May 11 '19
I suck at writing out code in pen and paper. You have to do it on job interviews which sucks for me because it’s my weakness
1
u/alnyland May 11 '19
Why is that so hard? I’ve never understood this because the first few years I programmed I wasn’t allowed to have a computer at school (even our cell phones would be confiscated until 12th grade) so I would program on paper. It was mostly graphics and biological simulations so I didn’t need APIs. I personally prefer this because I can follow code very well and don’t have reliance on debuggers.
2
u/Acetronaut May 11 '19
Tracing code I can do.
The logic-based questions like "How do you check if a number is even without using division?" Or something to that effect, I don't even know. I have no clue how to do and the only way I'll be able to answer those interview questions I'd if I memorized that beforehand.
But if you mean logic as in discrete math and Boolean logic, then I can usually handle those pretty well.
Written CS exams bother me because they're usually not a practical demonstration of your skills and knowledge.
0
May 11 '19
[deleted]
1
u/Acetronaut May 11 '19
Yes! I hate when they test you on literally useless, irrelevant information.
0
May 11 '19
[deleted]
1
u/Acetronaut May 11 '19
I really like my professors that care about that. They know some of the stuff is bullshit, and they realize that, so they try to give you as much real world help as possible.
5
3
u/kag0 λ May 11 '19
Paper and pencil problems, eh. Don't worry, they don't reflect real life.
But how the fuck are you going to know what some code does it you can't follow along when you're reading it?
Even if you wrote it, you in 2 years (or two days if you're me) isn't going to remember what it does.
1
1
1
1
u/bfBoi99 May 11 '19
As if u read my mind!! Yeah i also struggle with this, although i usually get really good grades in the exams, but I'm much more comfortable writing my code on computer and I always get full grade on my assignments or lab (practical) exams. But i struggle when writing code on paper as I always forget some parts and get really confused as to where to add them. I think it's easier on computer because you can see the whole code in front of you clearly, but believe me with practice you will get really better You're not alone! :)
1
May 12 '19
After 'Intro to Computer Science,' I understood tracing code. For logic questions, study discrete math because deductive math (Linear Algebra and Calculus) has already proven logic: all the deductions you must have are examples against the axioms, maxims, and concepts. And you must prove the inductions. My CS exams had been open book, fill the blanks, answer logic questions, and paragraph prompts. My biggest challenge had been the second: accelerated courses can be tough. I had 172,000 seconds, for I had a few hundred pages read a few times. Then, I had eighty-six thousand seconds, for my initial peer review entry: multiple course discussions per week. And 602,000 seconds during multiple assignment deadlines. And the most common teacher: Catholic. Thus, the ethic review had been really poor and welcoming each ethic that resulted: military defense. Until I am well experienced and a mastered Computer Scientist somewhere else, I count the seconds apart: from that witch, the Catholic Computer Science instructor.
0
0
May 11 '19
Goto github repository and start tracing codes because when you start project with other coders, it is a must.
1
u/Bamgm14 May 11 '19
100% Me, coding is literally a trial and error process, not an exam which is written.... Bless those souls that wrote Assembly Code pen/paper exams... God that must be a nightmare
104
u/[deleted] May 10 '19
You will spend a lot of time debugging. It’s really good practice to get good at tracing code.