Formatting page ...
COMPUTER APPLICATIONS (Theory) (Two hours) SECTION A (40 Marks) Attempt all questions Question 1 a. b. c. d. e. f. g. h. i. j. [10] State one similarity and one difference between while and do while loop. State any two differences between character and string data types. Differentiate between one dimensional and two dimensional array. Describe the term Java byte code and what is JVM? Differentiate between = and ==. What is a wrapper class? Give examples. What is inheritance? Write the keyword used to implement inheritance in Java? What is the use of this keyword. What is the difference between a keyword and a reserved word? Explain the use of readLine() method? Write the system class where it lies. What is the garbage collection feature in JAVA? Question 2 a. Explain the function of the following with its syntax and an example: 1. If else 2. do-while 3. switch statement 4. for statement b. Name any four tokens in Java with examples. c. Find the error in this piece of code : Public int check error(void) { int x, y = 10; x = y++; System.Out.Println( result =********** } d. What is meant by order of precedence? Write the following in the order of precedence :
|