网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下语句段在编译时不会出错。 char c=' '; c=System.in.read(); 。()
此题为判断题(对,错)。
参考答案
更多 “ 以下语句段在编译时不会出错。 char c=' '; c=System.in.read(); 。() 此题为判断题(对,错)。 ” 相关考题
考题
下列程序从标准输入设备——键盘读入一个字符,然后再输出到屏幕。要想完成此功能,画线处应该填入的语句为( )。 import java.io.*; public class Test { public static void main(String args[]) { char ch; try { ______; System.out.println(ch); } catch(IOException e) { e.printStackTrace(); } } }A.ch=System.in.read();B.ch=(char)System.in.read();C.ch=(char)System.in.readln();D.ch=(int)System.in.read();
考题
有如下程序:#includeiostreamusing namespace std;class Music{public:void setTitle(char*str){strcpy(title,str);}protected:char type[10];private:char title[20];};class Jazz:public Music{public:void set(char*str){strcpy(type,”Jazz”); //①strcpy(title,str); //②}};下列叙述中正确的是A.程序编译正确B.程序编译时语句①出错C.程序编译时语句②出错D.程序编译时语句①和②都出错
考题
下列程序从标准输入设备--键盘读入-个字符,然后输出到屏幕。要想完成此功能,画线处应该填入的语句为( )。A.ch=System.in.read( );B.ch=(char)System.in.read( );C.ch=(char)System.in.readln( );D.ch=(int)System.in.read( );
考题
下列程序从标准输入设备—键盘诗篇一个字符,然后再输出到屏幕。要想完成此功能,画线处应该填入的语句为( )。 impoajava.io.*; publicclassTest { publicstaticvoidmain(Stringargs[]) { charch; try { ______, System.out.println(Ch); } catch(IOExceptione) { e.printStackTrace(); } } }A.ch=System.in.read();B.ch=(char)System.in.read();C.ch=(char)System.in.readln();D.ch=(int)System.in.read();
考题
下列程序从标准输入设备——键盘读入一个字符,然后输出到屏幕。要想完成此功能,画线处应该填人的语句为( )。 importjava.iO.*; public class Test { public static void main(String argsE]) { charch: try { ___; System.out.println(eh); } catch(IOException e) { e.printStackTrace: } } }A. ch=System.in.read:B.ch=(char)System.in.read:C.ch=(char)System.in.readln:D.ch=(int)System.in.read;
考题
以下语句段能顺利通过编译。 int scores[]={82,76,53,91,67,95}; System.out.println(scores.length()); 。()
此题为判断题(对,错)。
考题
以下语句能顺利通过编译: class test { static void sayHello() { this.toString(); } public String toString() { retur。()
此题为判断题(对,错)。
考题
判断题编译语句int aInt=66666不会出现编译错误。A
对B
错
热门标签
最新试卷