Computer Science, asked by rahularya6508403, 4 months ago

Question 1.

(a) (i) int res = “ E ”;

What is the value of res? [1]

(ii) Name the package that contains wrapper class. [1]

(b). Write the function prototype of the function “search” which takes a string argument and a

character argument and returns true or false. [2]

(c). State the purpose and return type of the following methods: [2]

(i) isLetterOrDigit( ) (ii) Math.sqrt( )

(d). Name the keyword that: [2]

(i) causes the control to transfer back to the method call.

(ii) distinguishes between instance variable and class variable. .

(e). State the number of bytes and bits occupied by a character array of 10 elements. [2]

Question 2.

(a). Differentiate between isLowerCase( ) and toLowerCase( ) methods. [2]

(b). Give the difference between actual parameter and formal parameter. [2]

(c). What is a constructor? What is the return type of a constructor? [2]

(d). If int n[ ] = { 1, 3, 5, 7, 9, 11, 13, 15 }, what are the values of x and y? [2]

x = Math.pow( n[4], n[1] );

y = Math.sqrt( n[6] + n[7] – n[1] );

(e). Differentiate between call by value and call by reference.​

Answers

Answered by vidyapoojary2000
0

Answer:

What is this so many different ways

Similar questions