.


:




:

































 

 

 

 


10




 

 

?

int x = 10, y;

if(x>9) y = 100;

else y = 200;

a. int x = 10, y; y = x<9? 100: 200;*

b. int x = 10, y; y = x<9? 200: 100;

c. int x = 10, y; y = x>9? 100: 200;

 

19. switch break?

i.

j. , *

k. ,

l. , default

 

 

20.

a. , case,

b. break

c. , , default,

d. switch

 

21.

char i;

switch(i)

{

case 1: case 3:case 5: case 7: case 9: printf( );

case 0: case 2:case 4: case 6: case 8: printf( );

default: printf( );

}

i== 1,

a. *

b.

c.

d.

 

22.

int i;

switch(i)

{

case 1: case 3:case 5: case 7: case 9: printf( );

case 0: case 2:case 4: case 6: case 8: printf( );

default: printf( );

}

i== 6,

a. *

b.

c.

d.

 

11

 

 

y ?

int x = 5, y;

for(y=1; y<=x; ++y)

printf("%d ", y);

y = x*2;

  1. 1
  2. 10
  3. 11*

24.

K ( >1)

a. for (int i=1,s=0; i<=K; i++) s+=i*i;

b. int i=1,s=0; while (i<=K) s+=i*i;

c. int i=0; s=0; do {++i; s+=i*i;} while (i<=K)

 

 

12

 

25. break

a. *

b.

c. ,

 

13

26. ( )?

a. fgets()

b. gets() *

c. fputs()

d. puts()

27. :

a. *

b.

c.

d. ,

 

 

28. ( )

a. ,

b. ,

c. , ,

d. , , *

 

 

15

29.

a.

b.

c. void*

d.

30.

a.

b. ,

c. *

d.





:


: 2017-03-12; !; : 491 |


:

:

, .
==> ...

1555 - | 1329 -


© 2015-2024 lektsii.org - -

: 0.012 .