Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language programming problem
C language programming problem
15. The output of the following program is (d). main( ) { int a,b; for(a= 1,b = 1; a & lt= 100; a++){ if(b & gt; = 10) broken; if(b % 3 = = 1){ b+= 3; Continue; } } printf("%dn ",a); }

A. 10 1

B.6

C.5

D. iv

16. If the values of integer variables A, B, C and D are: 1, 4, 3, 2, then the conditional expression aq. type = " 1 "; q . ObjectID[q . ObjectID . length]= " RDO _ 899 f 1843-0f 05-47d 1-a3fd-45c 325 b7d 297 _ Response " q . Response[q . Response . length]= " Response "; q . Answer[q . Answer . length]= " ";

A. 1

B.2// I don't understand, hehe

C.3

D. iv

17. known int x = 23;; The output of printf(x++* 1/3) is (d).

A.8

B.7.66

C.7.33

D. VII

//Posted++is * 1 first, then ++ 3, and the division of two shaping operations is still shaping, and it is equivalent to quotient.

18. Variable statements int a, b, c; , execute the following statements in turn: a = b = c =1; ++ a | | ++ b & amp; & amp++ c; Then the value of the variable b should be (b).

A.2

B.1++a has been short-circuited below the condition.

C.0

D.3

19. After executing the following statement, the value of variable k is (b). int k = 1; while(k++〈 10÷;

///////////+is followed by comparison, and 1 is added first.

A. 10

B. 1 1

C.9

D it is an infinite loop with uncertain values.

20. The following statement is wrong (a).

A. user-defined identifiers allow the use of keywords.

B. User-defined identifiers should be as "famous" as possible.

C. User-defined identifiers must start with letters or underscores.

D In user-defined identifiers, uppercase and lowercase letters represent different identifiers.

2 1. When the following four expressions are used as control expressions of if statements, one option has a different meaning from the other three options, and this option is (d).

A.k%2

B.k%2= = 1

C.(k%2)! =0

D.! K% 2 = = 1/The remainder of the other three judgments divided by two is1.

22. The legal keyword provided by C language is (c).

A. System default values

B. tea

C. During ...

D. conversion

23. description: char a;; int b; Floating c; The data type of the value of the expression a+b-c is (c).

A. tea

B. Internationalorganizations (with international organizations)

C.float// has been transformed into a floating-point type through shaping and floating-point operation.

D. double

24. The 24.putchar function can output a (c) to the terminal.

A. integers

B. real numbers

C. characteristics

D. line

25. If the initial value of x is 10, the expression (x >;; 10? The value of x+ 100: x- 10) is (b).

A. 10

B.0//x & gt; If it is 10, execute x+ 100, otherwise execute x-10;

C. 100

D. 1

Note: All procedures have been verified.

//Best answer, hehe