不凡考网

设有以下说明语句

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

    表达式、关键字、自定义类型、第四条(article 4)、用户自定义(user-defined)、循环体(loop body)、sizeof运算符

  • [单选题]设有以下说明语句

  • A. typedef struct
    B. { int n;
    C. char ch[8];
    D. } PER;
    E. 则下面叙述中正确的是
    F. PER 是结构体变量名
    G. PER是结构体类型名
    H. typedef struct 是结构体类型
    I. struct 是结构体类型名

  • 查看答案&解析 点击获取本科目所有试题
  • 举一反三:
  • [单选题]设有以下语句
  • typedef struct TT {char c,int a[4];} CIN; 则下面叙述中正确的是

  • A. 可以用 TT 定义结构体变量
    B. TT 是 struct 类型的变量
    C. 可以用 CIN 定义结构体变量
    D. CIN 是 struct TT 类型的变量

  • [单选题]设在工程中有一个标准模块,其中定义了如下记录类型: TyPe Record ID A3 Integer Name As String*20 End TyPe 在窗体中添加一个名为Command1的命令按钮,假设d:\F1.dat文件中含有5个用户自定义类型的记录。要求当执行事件过程Command1_Click时,随机访问该文件,并把文件中的第4条记录读出。下列能够完成该操作的程序段是
  • A. Private Sub Command1_Click( ) Dim MyRecord As Record,Position Open"d:\F1.dat"For Random As1 Len=Len(My RecorD)Position=4 Get1,Position,Myrecord Close 1 End Sub
    B. Private Sub Command1_Click( ) Dim MyRecord As Record,Position Open"d:\F1.dat"For Random As 1 Len=Len(MyRecorD)Position=4 Put 1,Position,MyRecord Close1 End Sub
    C. Private Sub Command1_Click( ) Dim MyRecord As Record,Position Open"d:\F1.dar"For OutPut As 1 Len=Len(My RecorD0Position=4 Get 1,Position,MyRecord Close1 End Sub
    D. Private Sub Command1_Click( ) Dim MyRecord As record,Position Open"d:\F1.dat"For lnput As 1 Len=Len(MyRecorD)Position=4 Get 1,Position,MyRecord Close1 End Sub

  • [单选题]有以下程序: # define f(x) (x*x) main() { int i1, i2; i1=f(8)/f(4); i2=f(4+4)/f(2+2); printf("% d, % d\n", i1, i2); } 程序运行后的输出结果是______。
  • A. 64, 28
    B. 4, 4
    C. 4, 3
    D. 64, 64

  • [单选题]有下列程序: include voidmain( ) {inti=5; do {if(i%3=1) if(i%5==2) {printf("*%d",i);break;} i++: }while(i!=O); printf("\n"); } 程序的运行结果是( )。
  • A. *7
    B. *3*5
    C. *5
    D. *2*6

  • [单选题]下列说法错误的是( )。
  • A. Java语言中无sizeof运算符
    B. Java语言中所有类型的长度和表示是固定的,不依赖执行
    C. goto和const不是Java编程语言中使用的关键字
    D. Java语言中通过define命令定义常量

  • [单选题]已有定义:double x;int i;,能正确给x赋70000.0的表达式是( )
  • A. x=7000*10
    B. x=70000
    C. x=35000+35000
    D. i=700,x=i*100

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