CSC209H5 Midterm: CSC209H UTM Test Fall11y 272

81 views16 pages
31 Jan 2019
School
Course
Professor

Document Summary

Do not turn this page until you have received the signal to start. (in the meantime, please ll out the identi cation section above, and read the instructions below carefully. ) This examination consists of 10 questions on 16 pages (including this one). Write a single bourne shell command that runs program foo with a commandline argument of bar, and sends the output to le outf. The following shell commands retrieve the number of lines in le restaurant list that contain the word. Add the proper types of quotes where ever they are required. a=cat restaurant list b=echo | grep -c toronto. Explain why sizeof(a) cannot be used to obtain the number of elements in the array. How many times does the original parent process output hello\n? int main(void) { printf("hello\n"); fork(); fork(); printf("hello\n"); return 0; Brie y explain what happens between the time i hit ctrl-c and the time the process terminates.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents