题目内容

Will System.out.println((char)4) display 4?

A. No
B. Yes

查看答案
更多问题

Which of the following statement prints smith\exam1\test.txt?

A. System.out.println("smith\\exam1\\test.txt");
B. System.out.println("smith\"exam1\"test.txt");
C. System.out.println("smith"\exam1"\test.txt");
D. System.out.println("smith\exam1\test.txt");

You can cast a character value to an int, or an int to char.

A. false
B. true

Is 'a' larger than 'A'?

A. Yes
B. No

To check whether a char variable ch is an uppercase letter, you write ___________.

A. (ch >= 'A' || ch <= 'Z')
B. (ch >= 'A' && ch >= 'Z')
C. ('A' <= ch <= 'Z')
D. (ch >= 'A' && ch <= 'Z')

答案查题题库