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...

This preview shows page 1 - 2 out of 6 pages.

Name: ____________________________ Course: _____ ID: _________________ Practical Group: _________________ Duration: 1 hour UECS1643/ UECS1653 Fundamentals of Programming Test 1 There are 17 questions on 6 printed 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 operators 4.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++;
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 6 pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture