Test Yourself in Chapter 2
Rating
0
0
There are no comments for now.
1.
Suppose you have the String S="SELECT". What is the return value of s.substring(0, 5)?
2.
Which of the following is not a method of Scanner class?
3.
Which of the following statements correctly creates a Scanner object for keyboard input?
4.
What is the Java expression for 4a^2 + 2b × c ?
5.
int x, y, z; x = 10; y = 7; z = (--x) + y++; System.out.println("x = " + x + ", y = " + y + ", z = " + z);
7.
Which of the following statement prints smith\exam1\test.txt ?