【单选题】【消耗次数:1】
若有定义语句:int k1=10,k2=20;,执行表达式(k1=k1k2)(k2=k2k1)后,k1和k2的值分别为()。
0和1
0和20
10和1
10和20
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 K=K1/K2中的K1表示什么
①  平衡常数
②  解离常数
③  结合常数
④  结合力
⑤  亲和力
【单选题】 若有定义:inta=3,b=2,c=1,k;则表达式k=ac的值是()。
①  0
②  1
③  2
④  3
【单选题】 若有定义:inta=1,b=2,c=3,d=4,t=2,k=2;语句(t=ab)||(k=c运行后,k的值为()。
①  2
②  1
③  0
④  -1
【单选题】 设j和k都是int类型,则for循环语句 for(j=0,k=-1;k=1;j++,k++)printf(****\n);().
①  循环结束的条件不合法
②  是无限循环
③  循环体一次也不执行
④  循环体只执行一次
【单选题】 程序段如下 int k=-20; while(k=0) k=k+1; 则以下说法中正确的是( )
①  while循环执行20次
②  循环是无限循环
③  循环体语句一次也不执行
④  循环体语句执行一次
【单选题】 下面的循环语句执行完毕后,循环变量k的值是()。int k=1;while (k++< 10);
①  10
②  11
③  9
④  无限循环,值不确定
【单选题】 设执行以下程序段时依次输入1、3、5,执行结果为______。 ??? Dim a(4) As Integer, b(4) As Integer ??? For K = 0 To 2 ??????? a(K + 1) = Val(InputBox(请输入数据)) ??????? b(3 - K) = a(K + 1) ??? Next K ??? Print b(K)
①  0
②  3
③  5
④  1
【单选题】 程序段如下 int k=1; while(!k==0) {k=k+1;printf(%d\n,k);} 说法正确的是( )
①  while循环执行2次
②  循环是无限循环
③  循环体语句一次也不执行
④  循环体语句执行一次
【单选题】 若变量已正确定义,和语句“if(a&gt;b)k=0;else k=1;”等价的是()
①  k=(a;b)?1:0;
②  k=a;b;
③  k=a;=b;
④  a;=b?0:1;
【单选题】 对于一个有向图,若一个顶点的度为k1,出度为k2,则对应邻接表中该顶点单链表中的边结点数为( )。
①  k1
②  k2
③  k1-k2
④  k1+k2
随机题目
【单选题】 Thebabyishungry,buttheres________________milkinthebottle.
①  little
②  alittle
③  few
④  afew
【单选题】 Shehastwobestfriends._____ofthemisinthecountry.
①  All
②  Both
③  Noone
④  Neither
【单选题】 Hehasbeen______fornearlythreeweeksafterthedeathofhisdearpet.
①  sad
②  satisfied
③  evil
④  joyful
【单选题】 We______thriftyandsimplelife.
①  callfor
②  callin
③  callon
④  callto
【单选题】 Weareinterestedintheweatherbecauseit______ussodirectly–whatwewear,whatwedo,andevenhowwefeel.
①  benefits
②  affects
③  guides
④  effects
【单选题】 —Thisistheworstfilmeverproduced.Doyouthinkso?—.
①  You’rewrong
②  Idon’tthinkso,I’mafraid
③  Notatall
④  No,that’snotreal
【单选题】 Winningorlosingistemporary,butfriendship______.
①  expects
②  lives
③  remains
④  lasts
【单选题】 HismannerwassobrightandpleasantthatArthurfelt___-withhimatonce
①  easy
②  confident
③  comfortable
④  atrest
【单选题】 What’shismotherlike?______.
①  She’sveryhappy
②  She’sathome
③  ShelikeswatchingTV
④  She’stallandthin
【单选题】 Agreatnumberofcollegesandfactories____since1949.
①  hasbeenestablish
②  havebeenestablished
③  haveestablished
④  hadbeenestablished