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

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

9、下面代码输出结果是() int op1=51;int op2=-16;System.out.println("op1^op2="+(op1^op2));。 A.op1^op2=11000011 B.op1^op2=67 C.op1^op2=-61 D.op1^op2=35


参考答案和解析
A
更多 “9、下面代码输出结果是() int op1=51;int op2=-16;System.out.println("op1^op2="+(op1^op2));。 A.op1^op2=11000011 B.op1^op2=67 C.op1^op2=-61 D.op1^op2=35” 相关考题
考题 下面程序段的输出结果是( )。 public class Test { public static void main(String args[ ]){ int x,y; x=(int)Math.sqrt(5)/2+(int)Math.random()*5/2; y=(int)Math.sqrt(3)/2+(int)Math.random()*3/2; if (x>y) System.out.println("x>y"); else if (x==y) System.out.println("x=y"); else System.out.println("x<y"); } }A.x>yB.x=yC.x<yD.编译错误

考题 下面程序段的输出结果是( )。 public class Test {public static void main(String args[]){ int[] a=new int[11]; int[] p=new int[4]; int k=5; for(int i= 1 ; i<= 10;i++) a[i]=i; for(int i=1 ; i<=3;i++) p[i]=a[i*i]; for(int i= 1 ;i<=3;i++) k=k+p[i]*2; System.out.println(k); }}A.37B.31C.33D.35

考题 下面程序的输出结果是【9】。#includevoid main(){int a[6]={1,2,3,4,5,6};for(int i=0;i 5;i++)cout cout }

考题 阅读下列代码Public class Person{Static int arr[ ] = new int (10);Public static void main (String args ) {System.out.println(arr[9]);}}该代码运行的结果是A )编译时将产生错误B )编译时正确,运行时将产生错误C )输出 0D )输出空

考题 A WCF service code is implemented as follows. (Line numbers are included for reference only)01 [ServiceContract]02 [ServiceBehavior(InstanceContextMode =03 InstanceContextMode.Single)]04 public class CalculatorService05 {06 [OperationContract]07 public double Calculate(double op1, string op, double op2)08 {09 }10 }You need to increase the rate by which clients get the required response from the service. What are two possble ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)()A.B.C.D.

考题 下面程序段的输出结果是( )。 public class Test{ public static void main(String args[]){ int X,y; x=(int)Math.sqrt(5)/2+(int)Math.random*5/2; y=(int)Math.sqrt(3)/2+(int)Math.random*3/2; if(xv) System.OUt.println("xy"); elseif(x= =y) System.out.println("x=Y"); else System.out.println("xy"): } }A.xyB.x=YC.xyD.编译错误

考题 在考生文件夹下有一个工程文件sjt5.vbp,在该过程中为考生提供了一个通用过程,考生可以直接调用。请在窗体上画一个名称为Text1的文本框;画一个名称为C1,标题为“计算”的命令按钮;再画两个单选按钮,名称分别为Op1、Op2,标题分别为“求500到600之间能被 7整除的数之和”、“求500到600之间能被3整除的数之和”(如图3—1所示)。请编写适当的事件过程,使得在运行时,选中一个单选按钮,再单击“计算”按钮,就可以按照单选按钮后的文字要求计算,并把计算结果放入文本框中,最后把已经修改的工程文件和窗体文件以原来的文件名存盘。

考题 在Form1的窗体上建立一个二级下拉菜单。第一级共有二个菜单项,名称分别为Operation、Help,标题分别为“操作”、“帮助”;在“操作”菜单下有第二级菜单,含有两个菜单项,名称分别为Msg、MyExit,标题分别为“显示消息”、“退出”(如图1—1所示)。程序运行后,单击“显示消息”菜单时,弹出一个消息框,其中的消息为“计算机等级考试”(如图1—2所示);单击“退出”则结束应用程序。注意:存盘时必须存放在考生文件夹下,工程文件名为sjt1.vbp,窗体文件名为sjt1.frm。2.在窗体上画两个单选按钮(名称分别为Op1和Op2,标题分别为“本科生”和“研究生”)和一个文本框(名称为T1),然后编写适当的代码。程序运行后,如果选择“本科生”单选按钮,则在文本框中显示“我是本科生”;如果选择“研究生”单选按钮,则在文本框中显示“我是研究生”。程序的运行情况如图1—3和图1—4所示。存盘时,工程文件名为sjt2.vbp,窗体文件名为sjt2.frm。

考题 下面程序段的输出结果是( )。 public class Test { public static void main (String[] args) { int n=10; do { System.out.println("n is"+n); }while(--n>10); } }A.n is 8B.没有输出C.n is 10D.n is 9

考题 注意:下面出现的“考生文件夹”均为C:\wexam\25160002。在考生文件夹下有一个工程文件sjt5.vbp,在该工程中为考生提供了一个通用过程,考生可以直接调用。请在窗体上画一个名称为Text1的文本框;画一个名称为C1,标题为“计算”的命令按钮;再画两个单选按钮,名称分别为Op1和op2,标题分别为“求200到300之间能被7整除的数之和”和“求200到300之间能被3整除的数之和”,如图27-5所示。请编写适当的事件过程,使得在运行时,选中一个单选按钮,再单击“计算”按钮,就可以按照单选按钮后的文字要求计算,并把计算结果放入文本框中,最后把已经修改的工程文件和窗体文件以原来的文件名存盘。注意:考生不得修改窗体文件中已经存在的程序,退出程序时必须通过单击窗体右上角的关闭按钮。在结束程序运行之前,必须至少要进行一种计算,否则不得分。

考题 阅读下面代码 public class Person { static int arr[]=new int[10]; public static void main(String args) { System.out.println(arr[9]); } } 该代码的运行结果是A.编译时将产生错误B.编译时正确,运行时将产生错误C.输出零D.输出空

考题 下面程序的输出结果是( )。include using namespace std;void main(){int s;for(int k 下面程序的输出结果是( )。#include <iostream>using namespace std;void main(){int s;for(int k=2;k<6;k+=2)s=1;for(int j=k; j<6;j++) s+=j;cout<<s<<end1;A.9B.1C.11D.10

考题 下面代码的输出结果是多少?char var[10];int test(char var[]){return sizeof(var);};A.4SXB 下面代码的输出结果是多少?char var[10];int test(char var[]){return sizeof(var);};A.4B.9C.11D.10

考题 下面程序的输出结果是()includeusing namespace std;int main(){int s:for(int k=2;k 下面程序的输出结果是( ) #include<iostream> using namespace std; int main() { int s: for(int k=2;k<6;k+=2){ s=1; for(int j=k, j<6;j++)s+=j; } cout<<s<<end1: }A.9B.1C.11D.10

考题 阅读下列代码: public class Person{ static int arr[]=new int[10]; public static void main(String args){ System.out.println{arr[9]); } } 该代码的运行结果是( )。A.编译时将产生错误B.编译时正确,运行时将产生错误C.输出零D.输出空

考题 下面程序的输出结果是【】。 include int d=1; int fun(int p){ static int d=5; d+=p; 下面程序的输出结果是【 】。include<iostream.h>int d=1;int fun(int p){static int d=5;d+=p;cout<<d<<" ";return d;}void main(){int a:3;cout<<fun(a+fun(D) )<<end1;}

考题 下面程序的输出结果是()。includeusing namespace std;int main(){int n=10;while(n>7 下面程序的输出结果是( )。 #include<iostream> using namespace std; int main() { int n=10; while(n>7){ n--; cout<<11<<','; } cout<<endl; }A.10,9,8,B.9,8,7,C.10,9,8,7,D.9,8,7,6,

考题 下面程序输出的结果是 include void main( ) { int i; int a[3][3]={1,2, 下面程序输出的结果是 #include<iostream.h> void main( ) { int i; int a[3][3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++) cout<<a[i][i]<<" ";}A.1 5 9B.7 5 3C.3 5 7D.5 9 1

考题 下面程序的输出结果是【】。includeint add(int a, int b);void main(){extern int x, 下面程序的输出结果是【 】。include<iostream.h>int add(int a, int b);void main(){extern int x, y;cout<<add(x, y)<<end1;}int x(20),y(5);int add(int a, int b){int s=a+ b;return s;}

考题 下面程序段的输出结果是( )。 publicclassTest{ publicstaticvoidmain(Stringargs[]){ intx,y; x=(int)Math.sqrt(5)/2+(int)Math.random()*5/2; Y=(int)Math.sqrt(3)/2+(int)Math.random()*3/2; if(x>y) System.out.println9"x>y"); elseif(x==y) System.out.println("x=y"); else System.out.println("x<y"); } }A.x>yB.x=yC.x<yD.编译错误

考题 下面程序段的输出结果是( )。 public class TeSt{ public static voidmain(Stringargs[]){ int[]a=new int[11]; int[]p=new int[4]; intk=5; for(int i=1;i<=10;i++) a[i]=i; for(inti=1;i<=3;i++) p[i]=a[i*i]; for(inti=1;i<=3;i++) k=k+p[i]*2; System.out.println(k); } }A.37B.31C.33D.35

考题 下列程序的输出结果是______。 int x=3; int y=10; System.out.println(y%x);A.0B.1C.2D.1.0

考题 下面程序段的输出结果是______。 public class Test{ public static void main(String args[ ]){ int x,y; x=(int)Math.sqrt(5/2)+(int)Math.random( )*5/2; y=(int)Math.sqrt(3/2)+(int)Math.random( )*3/2; if(x>y) System.out.println("x>y"); else if(x==y) System.out.println("x=y"); else System.out.println("x<y"); } }A.x>yB.x=yC.x<yD.编译错误

考题 下列代码的执行结果是( )。 int length="Hell0".length; System.OUt.println(length); A.5S 下列代码的执行结果是( )。 int length="Hell0".length; System.OUt.println(length);A.5B.2C.10D.6

考题 本题将一个整形变量opl的二进制的低3位全部变成1。public class javal{public static void main(String[]args){pl=21;int op2=7:res;System.out.println(res);}}

考题 if(true){int i=17;}  System.out.println(i);  运行此程序的结果是输出17。

考题 下面哪些指令是非法的?(假设OPl,OP2是已经用DB定义的变量) (1)CMP l5,BX (2)CMP OPl,25 (3)CMP OPl,OP2 (4)CMP AX,OPl

考题 单选题在名称为Frame1的框架中,有两个名称分别为op1、op2的单选按钮,标题分别为“单程”、“往返”,如图所示。以下叙述中,正确的是(  )。A 若仅把Frame1的Enabled属性设为False,则op1、op2仍可用B 对于上图,op1.Value自值为TrueC 对于上图,执行op1.Value=False命令,则“往返”单选按钮被选中D 对于上图,执行op1.Value=0命令,程序出错