网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列程序中,若从键盘中输入的是大写字母C,则程序输出的结果是( )。 Importjava.io.*; public class Exam{ public static void main(String args[]){ int ch=0; System.out.println("输入一个字符:"); try{ ch=System.in.read; charch_A='A',ch_Z='Z'; int delta c=(int)ch A+(int)ch Z-ch; syStem. out.println("编码后的字符为:"+(char)delta_c); } catch(IOException e){ printStackTrace; } } }

A.C

B.Y

C.X

D.字母C的ASCIl码的整型值


参考答案

更多 “ 下列程序中,若从键盘中输入的是大写字母C,则程序输出的结果是( )。 Importjava.io.*; public class Exam{ public static void main(String args[]){ int ch=0; System.out.println("输入一个字符:"); try{ ch=System.in.read; charch_A='A',ch_Z='Z'; int delta c=(int)ch A+(int)ch Z-ch; syStem. out.println("编码后的字符为:"+(char)delta_c); } catch(IOException e){ printStackTrace; } } }A.CB.YC.XD.字母C的ASCIl码的整型值 ” 相关考题
考题 若从键盘输入24,则以下程序输出的结果是__________。

考题 若执行下列程序时从键盘上输入2,则输出结果是()。 inclUde main() {int a; scanf("%d", 若执行下列程序时从键盘上输入2,则输出结果是( )。#inclUde<stdio.h>main(){int a;scanf("%d",A);if(a++<3)printf("%d\n",A);else printf("%d\n",a--);}A.1B.3C.2D.4

考题 下列程序中,若从键盘中输入的是大写字母C,则程序输出的结果是( )。A.CB.YC.XD.字母c的ASCIl码的整型值

考题 运行下列程序,若从键盘输入字母“a”,则输出结果是( )。A.FB.tC.eD.d

考题 若从键盘输入70,则以下程序输出的结果是【】。includevoid main(){int a; cin>>a;if(a> 若从键盘输入70,则以下程序输出的结果是【 】。include<iostream.h>void main(){int a; cin>>a;if(a>50) cout<<a;if(a>40) cout<<a;if(a>30) cout<<a;}

考题 有以下程序:若从键盘输入:ijk xyz回车,则输出结果是( )。A.ijk kB.ijk xyzC.xyz xyzD.j j

考题 若执行下列的程序时,从键盘上输入1和2,则输出结果是()。 include main() { int a,b,s; 若执行下列的程序时,从键盘上输入1和2,则输出结果是( )。#include<stdio.h>main(){ int a,b,s;scanf("%d%d",a,B) ;S=a;if(a<B) s=b;s=s*s;printtf("%d\n",s);}A.1B.4C.2D.9

考题 下列程序中,若从键盘中输入的是大写字母C,则程序输出的结果是( )。 Importjava.io.*; publicclassExam{ publicstaticvoidmain(Stringargs[]){ intch=0; System.out.println("输入一个字符:"); try{ ch=System.in.read(); charch_A='A',ch_Z='Z'; intdelta_c=(inoch_A+(int)ch_Z-ch; System.out.println("编码后的字符为:"+(char)delta_c); } catch(IOExceptione){ e.printStackTrace(); } } }A.CB.YC.XD.字母C的ASCII码的整型值

考题 下列程序中,若从键盘中输入的是大写字母C,则程序输出的结果是 import java.io.*; public class Exam{ public static void main(String args[]) int ch=0; System.out.println(”输入一个字符:”); try{ ch=System.in.read(); char ch_A='A',ch_Z='Z',; int delta_c=(int)ch_A+(int)ch_Z-ch; System.out.println(”编码后的字符为:”+(char)delta_c); } catch(IOException e){ e.printStackTrace(); } } }A.CB.YC.XD.字母C的ASCII码的整型值