Monday, November 12, 2012

More Arrays

The six weeks just ended, which is both a good and bad thing. It's good to start a new week with only one week before Thanksgiving break, but also bad because of the amount of tests we've had to manage. My test grade was bad, but I don't think it really represents how hard I've studied and how quickly I grasp the material. The questions were very different from what we had practiced on the quizzes and the labs, so it was good that I was able to do test corrections. One thing that I learned while doing my test corrections was the concept of having something like... for (int x: arr) in the code. Apparently, this format makes the code do the same thing to every int in the array sequence individually. For instance, if I had {1, 2, 3, 5, 7}, the code following this dictation would implement the same function on each value in the array. I didn't know this prior to taking the test, which is why I might have missed some of the questions pertaining to this concept. Similarly, I couldn't really distinguish the difference between something like arr[i] and i itself. I probably could have noticed my mistakes pertaining to this had I more time on the exam, but unfortunately I didn't have that luxury. Most of my mistakes were careless/me forgetting prior concepts such as substring. Substring starts from a certain index and ends on another index EXCLUDING that value. This is something that clearly slipped my mind while I was taking the exam and I missed a question for that. I don't know exactly what the difference was between the last test and this test because I did fine on the last one. It's possible that the material on this test was more difficult and complex, but I also think that there were just too many holes in my comprehension of it when I was going into the test. For the next one, I suppose one of the only things I can do is go more in-depth on what we're studying and hopefully I'll come out on top this time.

No comments:

Post a Comment