CS228 Midterm Review Guide
Update: Many things have changed! This will not be an in-person test. I've shortened it, so that it's only 7 questions, but they're more complicated that usual. That said, since you can use a computer, I don't expect this to be a big problem, but this is not something I've done before. A couple notes to remember:
- You can't all fail. If nobody can get an A, the test was too hard.
- Don't spend to long on a question. Maybe spend a few minutes on each and see if you get it, then go back and do the harder ones.
After doing the test, you'll run the "turnin" command to turn in your answers, which should be in a text file like the lab answers. Feel free to submit the C programming question answer separate, but do put your name on it! There will be instructions on the test for this too.
There are no questions which are purely from the book. A lot of the questions require you to know how a Linux system functions in general. Creativity and reasoning will go a long way toward a good score.
Commands which might appear somewhere on the test:
- cd
- pwd
- ls
- who
- cat
- ssh
- export
- grep
- find
- sed
- nmap
- w
- file
- mv
- sleep
- man
- chmod
- fg
- killall
Pipes are mentioned in multiple questions, so be familiar with how to use these.
C programming: There will be at least 20 points worth of C programming content. Most likely at least one question will involve either argc and argv or a C-style string (as in, an array of characters). I'll try to restrict the C content to only covering things you had to do for a lab or project. The C programming question requires you to write a short program. You can use C++ if you like, without restriction, and since you can run your program, you can test it and make sure it works correctly.