1. Selective Questions (3 points for each question, 60 points) 1The correct description of the for loop below is (D). A. For loops can only be used when the number of loops has been determined B. For loop is to execute the loop body statement first and then judge the expression. C. In a for loop, you cannot break out of the loop body D. For loop statements can contain multiple statements, but they must be enclosed in curly brackets. 2The following statements that correctly define and assign initial values 5 to integer variables a, B and C are (C) A. int a = b = C = 5; B. int a, b, C = 5; C. int a = 5, B = 5, C = 5; D. a = b = C = 5; 3Data Types of Operating Objects on Both Sides of Logical Operators (D) A. Can only be 0 and 1 B. Can only be positive numbers of 0 or non0. C. Can only be integer or character data D. Can be any type of data. 4The highest priority of the following operators is (B) A. < B. + C. & D..= 5To avoid nested if...The ambiguity of the else statement. C language stipulates that the else always has a pairing relationship with (C). A. If B. with the same indentation position. If not paired before C. The nearest if D. on the same line if not paired before 6The procedure paragraph is as follows: then the following statement is correct: (D). Int k=5; Do { K--; } while (k<=0); A. Loops execute five times B. Loops are infinite loops C. Loop statement does not execute D. Loop statement does not execute once 7(D) A.&apos;a&apos;<=c1<=&apos;z&apos;B. (c1>=a) & (c1<=z) C. (&apos;a&apos;>= c1) | (&apos;z&apos;<= c1) D. (c1 >=&apos;a&apos;) & (c1 <=&apos;z&apos;) 8In C language, char type data occupies (A) A. 1 byte B. 2 bytes C. 4 bytes D. 8 bytes 9The following description of arrays is correct (C). A. The size of the array is fixed, but there can be different types of array elements. B. The size of an array is variable, but all array elements must be of the same type. C. The size of the array is fixed, but all elements of the array must be of the same type. D. Array size is variable, but there can be different types of array elements. 10After defining int a [10], the correct reference to a is (D). A. a [10] B. a [6.3] C. a (6) D. a [10-10] 11The following statements that correctly define arrays and assign initial values are (D). A. int n = 5, B [n] [n]; B. int a [1] [2]= {1}, {3}; C. int c [2][]={1,2}, {3,4} D. int a [3] [2]={1,2}, {3,4}; 12After executing int a [][3]= {1,2,3,4,5,6}; after the statement, the value of a [1] [0] is (A). A. 4B. 1 C. 2 D. 5 13In the following variable description statement, the correct one is (D) A. char. a B c; B. chara; b; c; C. int x; Z D. int x, y; 14In the following data, the string constant is (B) A. B. "house" C. How do you do. D. $abc 15C source program can not only be stored on disk, but also data can be stored on disk in the form of (C) according to data type. A. Memory B. Buffer C. File D. Register 16If x = 43, ch =&apos;A&apos;, y = 0 is known, then the value of the expression (x > = y & & ch <&apos;B&apos;& & y) is (C). A. 0B. Grammatical Error C. 1D. "False" 17The annotation delimiter of C language is (D). A. /**/ 18If int a, B scanf ("% d% d", & a, & b); can not use (A) as the input separator. A., B. Spacebar C. Enter D. Tab 19In C language, when referring to array elements, the data type of array subscripts is allowed to be (B). A. Integer Constant B. Integer Expressions C. Integer Variables D. Any Type Expressions 20The identifier in C language can only be composed of letters, numbers and underscores, and the first character (C) A. Must be the letter B. Must be underlined. C. Must be an alphabet or underscore D. May be any character in the alphabet, number and underscore. 21Among the following four keywords belonging to C language are (C) Char B. define C. unsigned D. return 22The data type belonging to C language in the following options is (C) A. Complex Type B. Logic Type C. Double Precision Type D. Set Type 23The following constants that cannot be used as constants in C language are (C) A. 0xA5B. 2.5e-2 C. 3e2D. 0582 24The expression that can correctly express "if the value of X is true in the range of [1,10] and [200,210], otherwise it is false pursuit" is (C) A. (x > = 1) & (x < = 10) & (x > = 200) & (x < = 210) B. (x > = 1) | | (x < = 10) | (x > = 200) | | (x < = 210) C. (x > = 1) & & (x < = 10) | (x > = 200) & (x < = 210) D. (x > = 1) | | (x < = 10) & (x > = 200) | (x < = 210) 25Let a = 12, and a be defined as an integer variable.The execution statem

docxDoc C review questions

Professional Docs > Common > Other > Preview
15 Pages 0 Downloads 222 Views 3.0 Score
Tips: Current document can only be previewed at most page8,If the total number of pages in the document exceeds page 8,please download the document。
Uploaded by admin on 2019-10-15 12:05:53
You can enter 255 characters
What is my domain?( answer:www.45doc.com )
  • No comments yet