不凡考网

设x,y,t均为int型变量,执行语句:

  • 下载次数:
  • 支持语言:
  • 1803
  • 中文简体
  • 文件类型:
  • 支持平台:
  • pdf文档
  • PC/手机
  • 【名词&注释】

    对话框(dialog box)、选择法(alternative method)、默认值(default value)、顺序排列(seriation)、可调整(can be adjusted)

  • [单选题]设x,y,t均为int型变量,执行语句:

  • A. x=y=3;
    B. t=++x||++y;
    C. 完成后,y的值为
    D. 不确定
    E. 4
    F. 3
    G. 1

  • 查看答案&解析 点击获取本科目所有试题
  • 举一反三:
  • [单选题]为了使窗体的大小可以改变,必须将它的BorderStyle属性设置为
  • A. 1
    B. 2
    C. 3
    D. 4

  • [单选题]有以下程序 struct STU { char name[10]; int num; int Score; { main() { struct Stu s[5]={{"YangSan",20041,703},{"LiSiGuo",20042,580}, {"WangYin",20043,680},{"SunDan",20044,550}, {"Penghua",20045;537}},*p[5],*t; int i,j; for(i=0;i5;i++)p[i]=&s[i]; for(i=0;i4;i++) for(j=i+1;j5;j++) if(p[i]->Score>p[j]->Score) {t=p[i];p[i]=p[j];p[i]=t;} printf("%d%d\n",s[1].Score,p[1]->Score); } 执行后输出结果是
  • A. 550550
    B. 680680
    C. 580550
    D. 580680

  • [单选题]有以下程序 main() { int a[4][4]={{1,4,3,2},{8,6,5,7},{3,7,2,5},{4,8,6,1}},i,k,t; for(i=0;i3;i++) for(k=i+1;k4;k++)if(a[i][i]a[k][k]){t=a[i][i];a[i][i]=a[k][k];a[k][k]=t;} for(i=0;i4;i++)printf("%d,",a[0][i]); } 程序运行后的输出结果是
  • A. 6,2,1,1,
    B. 6,4,3,2,
    C. 1,1,2,6,
    D. 2,3,4,6,

  • [单选题]在下列程序的划线处应填入的语句是class Person { private int a;}public class Man extends Person{ public int b; public static void main (String arg []){ Person p=new Person(); Man t=new Man(); int i: }}
  • A. i=w;
    B. i=b
    C. i=p.a;
    D. i=t.b;

  • 本文链接:https://www.zhukaozhuanjia.com/download/xqnxjl.html
  • 推荐阅读
    @2019-2026 不凡考网 www.zhukaozhuanjia.com 蜀ICP备20012290号-2