The answers to Part 1 must be entered into this application. Submit your answers to this part by pressing the save button on this application. You may submit your answers as many times as you like. The last submission 'ONLY' will be marked.
Answers to this part must be submitted in the first 30 minutes of the exam. Submission after the first 30 minutes will not be accepted.
During the first 30 minutes the only programs you can run in the exam environment are the applications to enter written answers, clock (xclock), calculator (xcalc) and the viewers for cheatsheets and other documentation.
The file q1.c
contains this C Code:
........ ........ ........ ........ ........ ........ ........ ........ ........
q1.c
is compiled with dcc on a CSE machine like this:
........ ........
It compiles successfully. No errors or warnings are produced by dcc. The program is run like this:
........
What does this program print?
Enter as your answer the output the program produces. Do not enter any extra characters. Do not write \n for a new line character. Do not enter any explanation.
Enter just the output the program produces.
This program executes correctly. It does not produce an error message.
__________ __________ __________ __________ __________
The file q2.c
contains this C Code:
........ ........ ........ ........ ........ ........ ........ ........ ........
q2.c
is compiled with dcc on a CSE machine like this:
........ ........
It compiles successfully. No errors or warnings are produced by dcc. The program is run like this:
........
What does this program print?
Enter as your answer the output the program produces. Do not enter any extra characters. Do not write \n for a new line character. Do not enter any explanation.
Enter just the output the program produces.
This program executes correctly. It does not produce an error message.
__________ __________ __________ __________ __________
The file q3.c
contains this C Code:
........ ........ ........ ........ ........ ........ ........ ........ ........
q3.c
is compiled with dcc on a CSE machine like this:
........ ........
It compiles successfully. No errors or warnings are produced by dcc. The program is run like this:
........
What does this program print?
Enter as your answer the output the program produces. Do not enter any extra characters. Do not write \n for a new line character. Do not enter any explanation.
Enter just the output the program produces.
This program executes correctly. It does not produce an error message.
__________ __________ __________ __________ __________
The file q4.c
contains this C Code:
........ ........ ........ ........ ........ ........ ........ ........ ........
q4.c
is compiled with dcc on a CSE machine like this:
........ ........
It compiles successfully. No errors or warnings are produced by dcc. The program is run like this:
........
What does this program print?
Enter as your answer the output the program produces. Do not enter any extra characters. Do not write \n for a new line character. Do not enter any explanation.
Enter just the output the program produces.
This program executes correctly. It does not produce an error message.
__________ __________ __________ __________ __________
The file q5.c
contains this C Code:
........ ........ ........ ........ ........ ........ ........ ........ ........
q5.c
is compiled with dcc on a CSE machine like this:
........ ........
It compiles successfully. No errors or warnings are produced by dcc. The program is run like this:
........
What does this program print?
Enter as your answer the output the program produces. Do not enter any extra characters. Do not write \n for a new line character. Do not enter any explanation.
Enter just the output the program produces.
This program executes correctly. It does not produce an error message.
__________ __________ __________ __________ __________
Consider this C code:
........ ........ ........ ........ ........ ........ ........ ........ ........
........
Do not enter any extra characters. Do not write \n for a new line character. Do not enter any explanation.
........
__________
The file q7.c
contains this C Code:
........ ........ ........ ........ ........ ........ ........ ........ ........
q7.c
is compiled with dcc on a CSE machine like this:
........ ........
It compiles successfully. No errors or warnings are produced by dcc. The program is run like this:
........
What does this program print?
Enter as your answer the output the program produces. Do not enter any extra characters. Do not write \n for a new line character. Do not enter any explanation.
Enter just the output the program produces.
This program executes correctly. It does not produce an error message.
__________ __________ __________ __________ __________
The file q8.c
contains this C Code:
........ ........ ........ ........ ........ ........ ........ ........ ........
q8.c
is compiled with dcc on a CSE machine like this:
........ ........
It compiles successfully. No errors or warnings are produced by dcc. The program is run like this:
........
What does this program print?
Enter as your answer the output the program produces. Do not enter any extra characters. Do not write \n for a new line character. Do not enter any explanation.
Enter just the output the program produces.
This program executes correctly. It does not produce an error message.
__________ __________ __________ __________ __________
........ ........ ........ ........ ........ ........ ........ ........ ........
........ ........ ........ ........ ........ ........ ........ ........ ........
[A] ........
[B] ........
[C] ........
[D] ........
[E] ........
Select exactly 1 of the above boxes.
........ ........ ........ ........ ........ ........ ........ ........ ........Select only 1 of the answers below.
[A] ........
[B] ........
[C] ........
[D] ........
[E] ........
[F] ........
Select exactly 1 of the above boxes.
........ ........ ........ ........ ........ ........ ........ ........ ........
[A] ........
[B] ........
[C] ........
[D] ........
[E] ........
Select exactly 1 of the above boxes.
........ ........ ........ ........ ........ ........ ........ ........ ........
[A] ........
[B] ........
[C] ........
[D] ........
[E] ........
[F] ........
Select exactly 1 of the above boxes.
........ ........ ........ ........ ........ ........ ........ ........ ........Do not enter any extra characters.
Do not enter any explanation.
__________
........ ........ ........ ........ ........ ........ ........ ........ ........Your answer should be a single integer.
Do not enter any extra characters.
Do not enter any explanation.
__________
........ ........ ........ ........ ........ ........ ........ ........ ........Do not enter any extra characters.
Do not enter any explanation.
__________
........ ........ ........ ........ ........ ........ ........ ........ ........
[A] ........
[B] ........
[C] ........
[D] ........
Check between 0 and 4 of the above boxes.
When you are finished use the "Save" Button in the top left corner to submit your answers and then use the "Quit" button to exit.