2014
C
40
____________
0.5
5
main
1
2 return
3
4
5
6. C
7.%
8.
a
9. C
10.C
main
return
C
a=10,
0.5
10
C) void
D) registe
C)
D)
,
,
a+=a-=a*=a
C) 12
D) -264
,
C
B)
1. C
A) static B) extern
2. C
A)
3.
A)
B)
C)
D)
4.
A) 0
5.
a=12,
,
,
B) 144
a1,a2,c1,c2
int a1,a2; char c1,c2;
scanf( ° %d %c %¡± , &a1 , &a2 , &c1 , &c2
A 10A 20B B 10 A 20 B
:
:
C 10A20B
6
A) for
B) for
C)
D) for
7
C 10A20 B
break
for
for
,
,
,
,
i
10 20 A
B
,
1
for (i=2;i==0;) printf("%d",i-- );
:
C) 1
B) 0
D) 2
A)
8
#include
main()
{int i;
for(i=1;i<=5;i++)
switch(i%5)
{case 0:printf(" ");break;
case 1 :printf("#");break;
default :printf("\ n");
case 2 :printf("&");
}
A)#&&& B) #& C) # D)#&
& &
& &
9.
A)
B)
C)
D)
10
A) int a(10); B) int n= 10,a[n];
C) int n; D) #define SIZE 10;
:
:
C
a
scanf("%",&n); int a[SIZE];
int a[n];
¯ C
a 7)
5.0 C)f
\ 037 ¯ D
\ b B \ 0xf
a+7 B a 7 b
B f
(x*y)/(u*v)
f=(3.0,4.0,5.0),(2.0,1.0,0.0);
a 7
D a 7 b c a 7
11.
A a 7 b c
C a=( 7 b b
12.
C
A
13.
A
14.
A x*y/u*v B x*y/u/v C x*y/(u*v) D x/(u*v)*y
15.
A)
C)
D)
16.
if (a
if (bb>c, b&&c+1, c+=1,
B
A
C
D
10
20
1
sum = m + (m+1) + (m+2) + (m+3) +
sum
¡ + -1) + n
m n
1
100
5050
2
"This Is a c Program"
"margorP c a sI sihT"
5
The computer is a product of advanced civilization and its invention, according to some
people, signals the advent of a Second Industrial Revolution. Formerly a bulky machine that
demanded much space, the computer is now becoming smaller and smaller and scientists have
made it more sophisticated and accordingly more useful. As is generally known, the computer can
do a wide range of work, including complex computation and analyses. People now also use it as a
teaching aid in designing. An infinite variety of software can be put into the computer, which
explains why it is so powerful. There is, however, one thing which we should bear in mind: that
the computer cannot think but man can. So there need not be any fear that someday the computer
will control us and all we should expect is try our best to bring it to perfection. A computer age is
not a pipe dream and there will come a day when most of our needs can be met by this wonderful
machine.
3
4