None
I only
II only
III only
I, II, and III
第1题:
下列程序的功能是:将大于整数m且紧靠m的k个素数存入数组xx中。请编写函数num(int m, int k, int xx[])实现程序的要求,最后调用函数readwriteDAT() 把结果输出到文件out.dat中。例如:若输入“17, 5”,则应输出“19, 23, 29, 31, 37”。注意:部分源程序已给出。请勿改动主函数main()和函数readwriteDAT()的内容。#include <conio.h>#include <stdio.h>void readwriteDat();void num(int m, int k, int xx[]){ }main(){ int m, n, xx[1000]; printf("\nPlease enter two integers:"); scanf("%d%d", &m, &n); num(m, n, xx); for (m=0; m<n; m++) printf("%d ", xx[m]); printf("\n"); readwriteDat();}void readwriteDat(){ int m, n, xx[1000], i; FILE *rf, *wf; rf = fopen("in.dat", "r"); wf = fopen("out.dat", "w"); for (i=0; i<10; i++) { fscanf(rf, "%d %d", &m, &n); num(m, n, xx); for (m=0; m<n; m++) fprintf(wf, "%d ", xx[m]); fprintf(wf, "\n"); } fclose(rf); fclose(wf);}
第2题:
第3题:
I
I and II
I and III
II and III
第4题:
n+5
n+6
n+7
n+8
n+9
第5题:
54
64
65
68
72
第6题:
xy
(x+1)y
x(y+1)
第7题:
Unique
Check
Referential
Informational
第8题:
w2+16
w+16
4w+16
4w+4
w+4
第9题:
Centrifugal
Reciprocating
Gear
Rotary
第10题:
12
10
9
8
5
第11题:
4
6
9
10
11
第12题:
第13题:
A.Unique
B.Check
C.Referential
D.Informational
第14题:
Ⅰ only
Ⅱonly
Ⅲ only
Ⅰ and Ⅱ
Ⅰand Ⅲ
第15题:
All nicknames have a positive meaning.
All negatives have a negative meaning.
Nicknames are endearing.
All nicknames can be either positive or negative.
第16题:
15
75
125
225
500
第17题:
prime numbers
integers
empty set
composite numbers
whole numbers
第18题:
-5
4
-3
第19题:
None
I only
II only
III only
I, II, and III
第20题:
-1/2
-1/3
1/3
1/2
2
第21题:
1
3
5
6
8
第22题:
9
11
12
20
22
第23题:
12
24
48
64
72
第24题:
5
6
8
10
11