Tutorial_2_read_me_first - CC2203 Data Structures and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CC2203 Data Structures and Algorithms Sem 2, 2009-2010 Tutorial 2 Instruction In this tutorial, you are required to submit your tutorial work answers for the exercises to me. Tutorial work will not be graded unless your coursework fails (coursework below D grade). If one’s coursework fails, that tutorial work will be graded to see if condone pass should be issued or not. Exercise 1. Which of the following are not valid Java identifiers? Why? a) Factorial b) an_extremely_long_identifier_if_you_ask_me c) 2nd_level d) level2 e) highest$ f) hook&ladder 2. What is the result of the following expressions when length equals 8, width equals 3, and height equals 2.25? a) length / width b) length / height c) length % width d) width % length e) length * width + height f) length + width * height 3. Suppose you have typed the following Java program code: class Test { public static void main (string[] args){ System.out.println (“Testing the Emergency Broadcast Program”); } // method main } // class Test
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Tutorial_2_read_me_first - CC2203 Data Structures and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online