选择题
题目1
C语言程序中必须包含样函数该函数函数名( )
选择项:
A main 恭喜答啦
B MAIN
C name
D function
题目2
C语言源程序文件缺省扩展名( )
选择项:
A cpp
B exe
C obj
D c
题目3
C语言目标文件连接成执行文件缺省扩展名( )
选择项:
A cpp
B exe
C obj
D c
题目4
程序运行中需键盘输入数时数间应分隔符( )
选择项:
A 空格逗号
B 逗号回车
C 逗号分号
D 空格回车
题目5
C语言程序文件编译错误分( )
选择项:
A 1类
B 2类
C 3类
D 4类
题目6
符合C语言规定复合语句( )
选择项:
A {}
B {}
C {x0}
D {y10}
题目7
C语言程序中基功模块( )
选择项:
A 表达式
B 标识符
C 语句
D 函数
题目8
函数定义中函数头包括3部分次函数类型函数名( )
选择项:
A 表达式
B 语句
C 参数表
D 函数体
题目9
程序文件中#include命令包含户定义头文件头文件起止定界符( )
选择项:
A 尖括号
B 双引号
C 单引号
D 花括号
题目10
C语言程序中行注释语句开始标记符( )
选择项:
A
B *
C *
D **
题目11
printf()函数调格式字符串中格式符c应输出数类型( )
选择项:
A char
B int
C float
D double
题目12
printf()函数调格式字符串中格式符5d规定应输出数占字符位置数( )
选择项:
A 5
B 4
C 3
D 6
题目13
转义字符'\\'表示字符( )
选择项:
A 单引号
B 双引号
C 反斜线
D 问号
题目14
枚举类型中枚举常量值( )
选择项:
A 整数
B 浮点数
C 字符
D 逻辑值
题目15
运算符优先级高( )
选择项:
A
B *
C &&
D
题目16
设xy均逻辑值x && y真条件( )
选择项:
A 均真
B 中真
C 均假
D 中假
题目17
设语句int a12 a+a*a执行结束a值( )
选择项:
A 12
B 144
C 156
D 288
题目18
x>0 && x<10相反表达式( )
选择项:
A x<0 || x>10
B x<0 && x>10
C x<0 || x<10
D x>0 && x>10
题目19
字符串a+b12\n长度( )
选择项:
A 6
B 7
C 8
D 9
题目20
列符号常量定义中错误定义语句格式( )
选择项:
A const int M110
B const int M220
C const int M3 10
D const char mark'3'
题目21
处理特定问题时循环次数已知时通常采语句( )
选择项:
a for
b while
c dowhile
d switch
题目22
switch语句case块中假定break语句结束switch语句容易改写成语句( )
选择项:
a for
b if
c do
d while
题目23
for语句够改写成语句( )
选择项:
a 复合
b if
c switch
d while
题目24
面循环语句执行结束输出i值( )
for(int i0 i
a n2
b n2+1
c n21
d n1
题目25
面循环语句中层循环体S语句执行总次数( )
for(int i0 i
a n2
b (n+1)2
c n(n1)2
d n(n+1)2
题目26
面do循环语句中循环体执行次数( )
int i0 do i++ while(i*i<10)
选择项:
a 4
b
b 3
c 5
d 2
题目27
面维数组定义中语法错误选项( )
选择项:
a int a[]{123}
b int a[10]{0}
c int a[]
d int a[5]
题目28
面二维数组定义中语法正确选项( )
选择项:
a int a[5][]
b int a[][5]
c int a[][3]{{135}{2}}
d int a[](10)
题目29
假定二维数组定义语句int a[3][4]{{34}{286}}元素a[1][1]值( )
选择项:
a 2
b 4
c 6
d 8
题目30
假定二维数组定义语句int a[3][4]{{34}{286}}元素a[2][1]值( )
选择项:
a 0
b 4
c 8
d 6
题目31
面函数声明语句中存着语法错误( )
选择项:
a AA(int a int b)
b AA(int int)
c AA(int a int b)
d AA(int a int)
题目32
面保留字中作函数返回值类型( )
选择项:
a void
b int
c enum
d long
题目33
假定p指float型数指针p+1指数址p指数址增加字节数( )
选择项:
a 1
b 2
c 4
d 8
题目34
假定a数组名面表达式中存语法错误( )
选择项:
a a[i]
b *a++
c *a
d *(a+1)
题目35
calloc函数创建具10整型元素维数组正确语句( )
选择项:
a int *pcalloc(102)
b int *pcalloc(10)
c int *pcalloc(104)
d int *pmalloc(10)
题目36
假定变量m定义int m7面正确语句( )
选择项:
a int p&m
b int *p&m
c int &p*m
d int *pm
题目37
假定kdouble类型变量定义变量p正确语句( )
选择项:
a double p&k
b int *p&k
c double &p*k
d char *pThank you
题目38
语句int a[10] x *paa数组a中标3元素值赋x正确语句( )
选择项:
a xpa[3]
b x*(a+3)
c xa[3]
d x*pa+3
题目39
假定语句int b[10] int *pb面正确赋值语句( )
选择项:
a pbb
b pb&b[0]
c pbb+2
d pbb[5]
题目40
已知int *pmalloc(100)释放p指动态存正确语句( )
选择项:
a free(p)
b free p
c free(*p)
d free[p]
题目41
程序文件中定义函数文件中调必须文件中出该函数( )
选择项:
a 原型语句
b 参数表
c 函数名
d 返回类型
题目42
假定函数定义static int f1(int xint y){return x+y}该函数名称( )
选择项:
a static
b int
c f1
d return
题目43
假定函数原型语句int ff(int* x)整型数组a[10]面函数调表达式正确( )
选择项:
a ff(a)
b ff(a[0])
c ff(a+3)
d ff(&a[0])
题目44
假定函数数组参数说明char a[]等价指针参数说明( )1B
选择项:
a char a
b char* a
c char& a
d char**a
题目45
假定函数二维数组参数说明char w[][N]等价指针参数说明( )
选择项:
a char (*w)[N]
b char *w[N]
c char (*w)N
d char**a
题目46
假定struct BOOK{char title[40] float price} struct BOOK book正确语句( )
选择项:
a struct BOOK *xmalloc(book)
b struct BOOK x{C++ Programming270}
c struct BOOK *xmalloc(sizeof(struct BOOK))
d struct BOOK *x&book
题目47
假定struct BOOK{char title[40] float price} book正确语句( )
选择项:
a struct BOOK x &book
b struct BOOK *x&book
c struct BOOK xcalloc(BOOK)
d struct BOOK *xBOOK
题目48
结构类型定义中数成员定义项间采分隔符( )
选择项:
a 句点
b 号
c 分号
d 逗号
题目49
假定结构类型定义 struct A{int ab double c}该类型长度( )
选择项:
a 8
b 10
c 12
d 16
题目50
假定结构类型定义 struct D{int a D* next}该类型长度( )
选择项:
a 4
b 8
c 12
d 16
反馈
Your answer is correct
题目51
假定访问结构指针变量x中数成员a表示方法( )
选择项:
a xa
b x>a
c x(a)
d x{a}
题目52
结构成员访问表达式xname等价表达式( )
选择项:
a x>name
b &x>name
c (&x)>name
d (*x)>name
题目53
假定链表中结点结构类型struct AA{int data struct AA *next}next数成员类型( )
选择项:
a struct AA
b struct AA*
c AA
d int
题目54
假定链表表头指针f结点中包含datanext域该链表表头插入址p结点时应执行操作( )
选择项:
a p>nextf
b p>nextffp
c fp>next
d f>nextpfp
题目55
标准输入设备键盘文件流标识符( )
选择项:
a stdin
b stdout
c stderr
d stdio
题目56
表示文件结束符符号常量( )
选择项:
a eof
b Eof
c EOF
d feof
题目57
C语言中开数文件系统函数( )
选择项:
a fgetc()
b fputc()
c fclose()
d fopen()
题目58
数文件中读入换行符结束行字符串系统函数( )
选择项:
a gets()
b fgets()
c getc()
d fgetc()
题目59
二进制文件中写入信息函数fwrite()带参数数( )
选择项:
a 1
b 2
c 3
d 4
题目60
C语言中写操作开文文件方式( )
选择项:
a a
b r+
c r
d w
文档香网(httpswwwxiangdangnet)户传
《香当网》用户分享的内容,不代表《香当网》观点或立场,请自行判断内容的真实性和可靠性!
该内容是文档的文本内容,更好的格式请下载文档