ECS030 MT1 S10 Key Camp

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

Info icon This 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
Image of page 1

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

View Full Document Right 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?
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern