试题通
试题通
APP下载
首页
>
IT互联网
>
信息技术知识竞赛c语言
试题通
搜索
信息技术知识竞赛c语言
题目内容
(
单选题
)
设有如下枚举类型定义:
enum language { Basic=3,Assembly,Ada=100,COBOL,Fortran};
枚举量Fortran的值为()。

A、4

B、7

C、102

D、103

答案:C

试题通
信息技术知识竞赛c语言
试题通
以下叙述不正确的是()。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e034651d.html
点击查看题目
若要求从键盘读入含有空格字符的字符串,应使用函数()。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e0346524.html
点击查看题目
以下不合法的数值常量是()。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e034651b.html
点击查看题目
下面有关for循环的正确描述是 ()。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e0346523.html
点击查看题目
以数据块为单位对数据进行整体 读写时如果ptr是指向内存中数据块的首地址,fp是文件指针,那么数据块中每个数据项的大小为(  )。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6090-c089-2897e0346505.html
点击查看题目
有以下程序
#include
main()
{int a=7;
while(a--);
printf(“%d\n”,a);
}
程序运行后的输出结果是( )。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6478-c089-2897e034650c.html
点击查看题目
以下叙述中错误的是()。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-50f0-c089-2897e0346504.html
点击查看题目
有以下程序
  #include
  main()
  { int x;
  scanf("%d",&x);
  if(x>15) printf("%d",x-5);
  if(x>10) printf("%d",x);
  if(x>5) printf("%d\n",x+5);
  }
  若程序运行时从键盘输入12<回车>,则输出结果为( )。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6478-c089-2897e0346506.html
点击查看题目
以下程序运行后,输出结果是 ()。
fut (int **s,int p[2][3])
{ **s=p[1][1];)
main()
{ int a[2][3]={1,3,5,7,9,11},*p;
p=(int *)malloc(sizeof(int));
fut (&p,a);
printf("%d\n",*p);
}
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-5ca8-c089-2897e034651e.html
点击查看题目
有以下程序
#include "stdio.h"
void main()
{ int a=1, b=3, c=5;
int *p1=&a, *p2=&b, *p=&c;
*p =*p1*(*p2);
printf("%d\n",c);
}
执行后的输出结果是( )。
https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6c48-c089-2897e034650f.html
点击查看题目
首页
>
IT互联网
>
信息技术知识竞赛c语言
题目内容
(
单选题
)
手机预览
试题通
信息技术知识竞赛c语言

设有如下枚举类型定义:
enum language { Basic=3,Assembly,Ada=100,COBOL,Fortran};
枚举量Fortran的值为()。

A、4

B、7

C、102

D、103

答案:C

试题通
试题通
信息技术知识竞赛c语言
相关题目
以下叙述不正确的是()。

A. 一个C源程序可由一个或多个函数组成

B. 一个C源程序必须包含一个main函数

C. C程序的基本组成单位是函数

D. 在C程序中,注释说明只能位于一条语句的后面

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e034651d.html
点击查看答案
若要求从键盘读入含有空格字符的字符串,应使用函数()。

A. getc()

B. gets()

C. getchar()

D. scanf()

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e0346524.html
点击查看答案
以下不合法的数值常量是()。

A. 011

B. 1e1

C. 8.0E0.5

D. 0xabcd

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e034651b.html
点击查看答案
下面有关for循环的正确描述是 ()。

A. for循环只能用于循环次数已经确定的情况

B. for循环是先执行循环体语句,后判断表达式

C. 在for循环中,不能用break语句跳出循环体

D. for循环的循环体语句中,可以包含多条语句,但必须用花括号括起来

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-4d08-c089-2897e0346523.html
点击查看答案
以数据块为单位对数据进行整体 读写时如果ptr是指向内存中数据块的首地址,fp是文件指针,那么数据块中每个数据项的大小为(  )。

A. sizeof(*ptr)

B. *ptr

C. sizeof(ptr)

D. sizeof(*fp)

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6090-c089-2897e0346505.html
点击查看答案
有以下程序
#include
main()
{int a=7;
while(a--);
printf(“%d\n”,a);
}
程序运行后的输出结果是( )。

A. -1

B. 0

C. 1

D. 7

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6478-c089-2897e034650c.html
点击查看答案
以下叙述中错误的是()。

A. C程序中的#include和#define行均不是C语句

B. 除逗号运算符外,赋值运算符的优先级最低

C. C程序中,j++;是赋值语句

D. C程序中,+、-、*、/、%号是算术运算符,可用于整型和实型数的运算

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-50f0-c089-2897e0346504.html
点击查看答案
有以下程序
  #include
  main()
  { int x;
  scanf("%d",&x);
  if(x>15) printf("%d",x-5);
  if(x>10) printf("%d",x);
  if(x>5) printf("%d\n",x+5);
  }
  若程序运行时从键盘输入12<回车>,则输出结果为( )。

A. 7

B. 1217

C. 12

D. 17

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6478-c089-2897e0346506.html
点击查看答案
以下程序运行后,输出结果是 ()。
fut (int **s,int p[2][3])
{ **s=p[1][1];)
main()
{ int a[2][3]={1,3,5,7,9,11},*p;
p=(int *)malloc(sizeof(int));
fut (&p,a);
printf("%d\n",*p);
}

A. 1

B. 7

C. 9

D. 11

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-5ca8-c089-2897e034651e.html
点击查看答案
有以下程序
#include "stdio.h"
void main()
{ int a=1, b=3, c=5;
int *p1=&a, *p2=&b, *p=&c;
*p =*p1*(*p2);
printf("%d\n",c);
}
执行后的输出结果是( )。

A. 1

B. 2

C. 3

D. 4

https://www.shititong.cn/cha-kan/shiti/0005eb65-536a-6c48-c089-2897e034650f.html
点击查看答案
试题通小程序
试题通app下载