ECS030 MT1 S10 Key Camp

ECS030 MT1 S10 Key Camp - ECS 30 Closed book and closed...

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

View Full Document Right Arrow Icon
ECS 30 Midterm Spring 2010 Closed book and closed notes. Name:_______________________________________________________________________ SID:_________________________________ Question Possible Your score: 1. True, False 5 2. UNIX Commands 20 3. if statements 20 4. Loop 20 5. Expression Evaluation 20 6. Program 65 Total 150
Background image of page 1

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

View Full DocumentRight Arrow Icon
1. (5 points) What is true and false in C? 2 – 0 is false 3 – everything else is true. Or 1 – for true is 1 2. (20 points) UNIX Commands a.) (4 points) What UNIX command would you type to change the name of a.out to assignment1.exe? Pts: 2 1 1 mv a.out assignment1.exe b.) (4 points) What UNIX command would you type to see the file permissions of your home directory? Pts: 2 1 1 ls –la ~/ c.) (4 points) What UNIX command would you type to copy all files that contain ecs in their names from the current directory to the directory /home/camp? Pts: 2 1 1 cp ./*ecs* /home/camp d.) (4 points) Given that you are in the hw2 subdirectory of the ecs30 directory, and you wish create the hw3 subdirectory in ecs30. What one UNIX command line would create the hw3 subdirectory in the ecs30 directory? Pts:
Background image of page 2
Image of page 3
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 / 4

ECS030 MT1 S10 Key Camp - ECS 30 Closed book and closed...

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

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