ECS030 MT1 Practice S10 Camp

ECS030 MT1 Practice S10 Camp - ECS 30 Practice Midterm #1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECS 30 Practice Midterm #1 Closed book, closed notes. Hanly Chapters 2-5 (10 points) You just printed something, and realize that it is a binary file that will print a bunch of garbage. What are the steps you take to cancel the print job? (5 points) What UNIX command would you type to see a list of all of the files (including the hidden files) in directory hw1? (5 points) You just wrote and saved the file test2.c. Now you want to make sure that only you can read and write it. What UNIX command would you type to make test.c only readable and writeable by you? (5 points) You want to move all of your C source files (ending in .c) and header files (ending in .h) from your hw1 subdirectory to your mid1 subdirectory. What UNIX command should you type? (5 points) You want to view the file test3.c a screen at a time. What UNIX command would you type? (25 points) Given the following series of if statements, provide the outputs for each X. Note that more than one printf can be executed for each X. if (X > 20)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/22/2010 for the course ECS 030 taught by Professor Staff during the Spring '08 term at UC Davis.

Page1 / 2

ECS030 MT1 Practice S10 Camp - ECS 30 Practice Midterm #1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online