【单选题】【消耗次数:1】
若有定义语句:int k1=10,k2=20;,执行表达式(k1=k1k2)(k2=k2k1)后,k1和k2的值分别为()。
0和1
0和20
10和1
10和20
参考答案:
复制
纠错
相关题目
【单选题】 若有定义:inta=3,b=2,c=1,k;则表达式k=ac的值是()。
①  0
②  1
③  2
④  3
【单选题】 设j和k都是int类型,则for循环语句 for(j=0,k=-1;k=1;j++,k++)printf(****\n);().
①  循环结束的条件不合法
②  是无限循环
③  循环体一次也不执行
④  循环体只执行一次
【单选题】 下面的循环语句执行完毕后,循环变量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
【单选题】 对于一个有向图,若一个顶点的度为k1,出度为k2,则对应邻接表中该顶点单链表中的边结点数为( )。
①  k1
②  k2
③  k1-k2
④  k1+k2
【单选题】 若变量已正确定义,和语句“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
【单选题】 设 G 是 n (n 3 2)阶无向简单图,?G 是它的补图. 已知 G的最大度?(G) = k1, 最小度d (G) = k2, 则其补图?G以下哪个性质不对:
①  对每个顶点 v, 有 dG(v) + d?G (v) = n - 1;
②  ?(?G) = (n - 1) - k2;
③  对每个顶点 v, 有 dG(v) + d?G (v) = n;
④  d (?G) = (n - 1) - k1。
【判断题】 已知X只取-1,1,5,相应的概率为1/(2k),1/(4k),1/(8k)则常数k=1.
①  正确
②  错误
【判断题】 已知X只取-1,1,5,相应的概率为1/(2k),1/(4k),1/(8k)则常数k=7/8.
①  正确
②  错误
随机题目
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Computers can store huge amounts of informations.
①  正确
②  错误
【判断题】 Xiao Liu has worked in the plant for only a few days. He is a green hand at doing this job.划线部分应该翻译成“新手”
①  正确
②  错误
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”After Whitneys idea applied to automobile production, each part no longer had to made by hand.
①  正确
②  错误
【多选题】 I _____________ that he will pass the examination.
①  have no doubt
②  am sure
③  have no idea
④  am sorry
【多选题】 ______________ , we went home.
①  The problem solved
②  The problem is solved
③  When the problem solved
④  When the problem was solved
【多选题】 _____________ , her paper (论文) is of greater value than yours.
①  If all things considered
②  If all things are considered
③  AIl things considered
④  AIl things are considered
【单选题】 The clock____________ was lost last week has been found.
①  who
②  whom
③  what
④  that
【单选题】 I____________ early this morning.
①  sped up
②  woke up
③  picked up
④  gave up
【单选题】 Pierre is Canadian, but he didnt go to school in Canada. He was _____________ in France.
①  educated
②  meant
③  avoided
④  considered
【判断题】 有限责任公司修改公司章程、增减注册资本、合并分立解散公司、变更公司形式,必须经过全体股东表决权四分之三以上通过。
①  正确
②  错误