Written_Test1_2017_May.doc - Name ID Practical Group Course Duration 1 hour UECS1643 UECS1653 Fundamentals of Programming Test 1 There are 17 questions
Written_Test1_2017_May.doc - Name ID Practical Group Course...
Name: ____________________________Course: _____ID: _________________Practical Group: _________________Duration: 1 hourUECS1643/ UECS1653 Fundamentals of ProgrammingTest 1There are 17questions on 6printed pages. Answer all questions. Write your answer in the answer sheets provided behind (page 4 - 6). Submit the question papers together with the answer sheets.PART A(total: 67%)Question 1 - 10 (2 marks each)1.Which of the following is invalid?A.x = y = z - 3;B.x + y = z + 3;C.x = -(y - z);D.x *= y * z + 5;2.Which of the following function prototype contains NOerror?3.In which order do the following operators get evaluated?1. Relational operators2. Arithmetic operators3. Logical operators4. Equality operators4.What is the final value of x if initially x = 0 and y = 5?if(x >= 0)x += 2;else if(x == 2)x *= y + 2;elsex++;