Title | Final 15 October 2012, answers |
---|---|
Course | Computer Organisation And Programming |
Institution | Monash University |
Pages | 10 |
File Size | 493.9 KB |
File Type | |
Total Downloads | 306 |
Total Views | 742 |
Office Use OnlyMonash UniversitySemester One Examination Period2012Faculty Of EngineeringEXAM CODES: ECETITLE OF PAPER: COMPUTER ORGANISATION AND PROGRAMMINGEXAM DURATION: 3 hours writing timeREADING TIME: 10 minutesTHIS PAPER IS FOR STUDENTS STUDYING AT:( tick where applicable) Berwick Clayton ...
Office Use Only
Monash University Semester One Examination Period 2012 Faculty Of Engineering EXAM CODES:
ECE2071
TITLE OF PAPER:
COMPUTER ORGANISATION AND PROGRAMMING
EXAM DURATION:
3 hours writing time
READING TIME:
10 minutes
THIS PAPER IS FOR STUDENTS STUDYING AT:( tick where applicable) Berwick Clayton Malaysia Off Campus Learning Open Learning Caulfield Gippsland Peninsula Enhancement Studies Sth Africa Pharmacy Other (specify) During an exam, you must not have in your possession, a book, notes, paper, calculator, pencil case, mobile phone or other material/item which has not been authorised for the exam or specifically permitted as noted below. Any material or item on your desk, chair or person will be deemed to be in your possession. You are reminded that possession of unauthorised materials in an exam is a discipline offence under Monash Statute 4.1. 1. Attempt ALL questions. Candidates are asked to answer all questions in the spaces provided in the examination paper. This paper consists of 5 questions. 2. Exam paper is printed on single sided paper. Therefore, use the reverse side of any of these pages as scrap paper for any working or calculations that are required in deriving your answers. THESE WORKINGS HOWEVER WILL NOT CARRY ANY MARKS TOWARDS YOUR FINAL ANSWERS. 3. The last two pages contain tables related to MIPS microprocessor which you may find useful in answering these questions AUTHORISED MATERIALS CALCULATORS OPEN BOOK SPECIFICALLY PERMITTED ITEMS Q1
Q2
Q3
YES YES YES Q4
NO NO NO Q5
Total Marks
Candidates must complete this section if required to write answers within this paper STUDENT ID __ __
__ __ __ __ __ __ __ __
DESK NUMBER
__ __
QUESTION 1
(20 marks)
Q1.1 (5 marks) Consider the following program: #include #include #define SIZE 3 void func1(int **z); int main(){ int x, *y, index; x=2; y = (int *) malloc(sizeof(int)*SIZE); for (index=0;index...