----------------------------------------------------------------------------
COP 3610 -- Practice EXAM 1 -- 60 POINTS MAX		M. Schmalz   010214
----------------------------------------------------------------------------

    *** YOU MAY USE A TWO-SIDED 8-1/2" x 11" CRIB SHEET FOR THIS EXAM ***
	    *** ALL OTHER BOOKS AND NOTES MUST BE PUT AWAY ***
          *** ANSWER ALL QUESTIONS - NO PENALTY FOR GUESSING ***

  NAME:_______________________________________	SSN: _______________________

  ANSWER EACH QUESTION WITH THE "BEST" ANSWER.  PUT ANSWERS IN BLANKS
	NOTE:  More than one answer may be true.  Choose carefully.

__B___  1) An operating system does NOT contain which of the following

2pts	a) compilers and linkers    			b) printer and monitor
	c) communications and graphics libraries        d) printer drivers
	d) links between data and applications   	e) microcode     

11pts   2) What are three advantages of Multiprogramming as opposed to Batch
           Processing - explain each answer

        #1: Makes better use of the CPU - fewer cycles wasted

        #2: Decreases operator time for loading/unloading programs

	#3: Enables multiple users to run programs at the same time, thus
            decreasing the probability of starvation in a job queue.

9pts	3) Match the letters with the UNIX commands:

__E___  cd    		a) duplicate a diskette		j) stop disk drive

__H___	cp -s  		b) destructive form of COPY	k) close a file

__B___  mv  		c) context-sensitive help	l) show file contents

__I___	dir		d) show directory pagewise	m) clear screen

__R___	md 		e) set current directory	n) view file pagewise

__R___	man -k 		f) show all file parameters    	o) show Text files

__F___  ls -al        	g) move a file but copy it	p) set disk label

L,N,O_ 	less     	h) make duplicate file		q) reverse file       

_L,O__	cat   		i) illegal UNIX command		r) none of above

8pts    4) What services does a modern multi-programming operating system 
           provide to the user?  (list four services)


         __Memory protection___________  __File security_______________


         __Communications utilities____  __Spooling of printouts_______


 6pts 5) Describe how jobs are executed in each of the following computing
	 paradigms:

          Batch processing:    1) Operator loads card deck, 2) Cards loaded
				     onto tape, 3) Input tape loaded onto CPU
				     4) Programs run (you hope), 5) Output tape
				     of all jobs produced, 6) Operator loads
				     output tape onto printer

          Multiprogramming:    1) User submits job, 2) Job put in Job queue,
				     3) Job takes turns executing with other
				     jobs, 4) When job is done, printout is
				     produced.  Note that a job can block when
				     it has to do I/O, then can finish on CPU

          Time sharing:        CPU time is partitioned into slices, each
				     job gets a slice in turn.  User thinks
			             they have their own computer, as each
				     job shares CPU equally

      Given the following UNIX response to the ls -l command, answer each
      of the questions below, ASSUMING THAT EACH LISTED COMMAND IS INDEP-
      ENDENT OF THE OTHER COMMANDS.  If an erroneous command, state that.

	-r--rw----   1 mssz     fac         2513 Feb 24 15:04 S00msg1.txt
	-rw----r--   1 mssz     fac         3402 Feb 24 15:01 S00exam1.txt
	drwdrw----   1 mssz     fac          512 Feb 14 13:10 Assignments

3pts  6) Show permission string for 

         chmod go-w S00msg1.txt  ===>   ____-r--r-----____________

3pts  7) Show permission string(s) for 
                                            -r--------
         chmod go-rw S00*        ===>   ____-rw-------____________

***CLASS:  You fill out the rest of these as a study exercise...


3pts  8) Show permission string(s) for 

         chmod go+x *st          ===>   _________________________________

3pts  9) Show permission string for 

         chmod g-r S00exam1.txt  ===>   _________________________________

3pts 10) Show permission string(s) for 

         chmod ugo+r *xt         ===>   _________________________________

3pts 11) How many total w's in the permission string(s) for

         chmod go+wr S00*        ===>   _________________________________

2pts 12) How many "ls" entries displayed for

         ls -l *ts               ===>   _________________________________

2pts 13) What can an individual user do after

         chmod go-xw S00msg.txt  ===>   _________________________________

2pts 14) How many directories displayed for

         ls -al *xt              ===>   _________________________________
-EOF-