CS3600 — Review Quiz

Coverage: Lab 0, Lab 1, and Chapter 1 (Linux command fundamentals).

How to submit (same as our polls)

  1. Create a text file named wk1_review_quiz.txt in ~/cs3600/2/.
  2. Put one answer per line using A/B/C/D only. Example for the first 3 questions:
    B
    C
    D
  3. Save the file; do not email. I will collect it from your course folder.

Tip: If a question is True/False, use A for True and B for False (noted below).


After saving, please make sure faculty can collect your quiz by running:

chmod g+X ~/cs3600/2
chmod g+r ~/cs3600/2/wk1_review_quiz.txt

Questions

  1. Which command shows your current working directory?
    A) pwd
    B) ls
    C) cd
    D) whoami
  2. Which command lists files in long format (permissions, owner, size, date)?
    A) ls -l
    B) ls -a
    C) ls -R
    D) du -h
  3. To change into the parent directory, you would run:
    A) cd /
    B) cd ..
    C) cd ~
    D) cd -
  4. Which command creates an empty file (or updates its timestamp)?
    A) mkdir
    B) touch
    C) cat
    D) head
  5. Compile a C source file prog.c into an executable named prog:
    A) gcc -o prog prog.c
    B) gcc prog.c
    C) cc prog.c -c
    D) make prog.c
  6. Run the executable lab1 in the current directory:
    A) lab1
    B) ./lab1
    C) bash lab1
    D) run lab1
  7. Which command shows the first 10 lines of a file?
    A) head file.txt
    B) tail file.txt
    C) less file.txt
    D) nl file.txt
  8. Which module provides communication among processor, main memory, and I/O?
    A) System Bus
    B) GPU
    C) Cache Controller
    D) Instruction Register (IR)
  9. A multicore processor:
    A) Uses multiple chips connected by a bus
    B) Combines multiple cores on a single chip, each with independent processor components
    C) Eliminates the need for cache memory
    D) Only supports single-threaded workloads
  10. A symmetric multiprocessor (SMP) system is characterized by:
    A) Specialized processors that handle only one type of job
    B) Processors sharing main memory and I/O devices, running under one OS
    C) Each processor having its own OS and memory
    D) One master processor that manages all others
Answer format: one letter per line in wk1_review_quiz.txt. True/False uses A = True, B = False.