CS 2213/2211
Advanced Programming
Quiz 0, Spring 2005
|
Date and time: Quiz 0 will be given in the lecture class on:
2005-01-27, that is, Thursday, 27 January 2005, 9:30 am - 10:45 am, at the beginning or the end of class.
Topics:
-
Unix Basics
Know all the commands given, including the redirection operators and the pipe.
Be familiar with the interactive session.
-
vi Editor
Know how to invoke vi
from a practical point of view. Know the 18 emphasized commands.
-
lint/make
Know how to compile, how to invoke lint,
and the basics of the make
utility, which uses a file named Makefile.
-
dice program
Study this program and the comments following it. In particular, be familiar with:
- The basic structure of a C program:
- #include lines, to include header files
- #define lines, to define constants (among other uses)
- global variable definitions
- list of prototypes of functions
- list of definitions of functions, including perhaps a main function
- How to write an array as a formal parameter in C.
- Simple array allocation in C as a local variable inside a function
(not possible in Java).
- Basics of the printf function.
Copyright © 2011, Neal R. Wagner. Permission is granted
to access, download, share, and distribute, as long as this notice remains.