01-1The following statement is correct (). A. Programs must contain input statements B, main functions must be at the beginning of the file C. Variables store data D according to the type defined. Only one statement can be written per line. 01-2C language function body is enclosed by (). A,<>B,{ C, () D, [] 01-3C source program is executed from the main () function, so the following statement is correct (). A, main functions can be written at the beginning of the program file, B, main functions can be written at the end of the program file. C, main functions can be written in front of the functions it calls D, and the other three options are correct. 01-4The three basic structures of C source program do not include () structure. A, Sequence B, Branch C, Nested D, Cycle 01-5The following statements are incorrect. A. Algorithms and Programming Concepts Same B, C Language is a Language Supporting Structured Programming C. Three common ways of describing an algorithm are natural language, stream D, structured program design, sequential, selective and cyclic control chart and pseudocode structure. 02-1The basic data types of C language include (). A, Integer, Floating Point, Date B, Integer, Floating Point, String C, Integer, Character, Date D, Integer, Floating Point, Character 02-2And () are legal constants. A, 1.2E-6.8B, E-3 C, 52686L D,&apos;E12&apos; 02-3,() is the correct user identifier. A, 1_row B, min-5 C, union D, m_A_1 02-4The following non-legal character constants are (). A,&apos;a&apos;B,&apos; n&apos; C,&apos; D,&apos;e&apos; 02-5The number of bytes per char variable (). A. Users define B as one byte C. Word length equal to the word length of the computer used in connection with the compiler used 03-1If int m = 6 is defined, the correct assignment expression is (). A, m*7B, m+5=8 C, m-=m*6D, m+= 1.3 03-2If there are definitions of int a, x; then statement a= (x = 8, x + 8); after running, the values of variables A and X are (). A, 16, 8 B, 8, 8 C, 16, 16 D, 8, 16 03-3The () statement conforms to C language grammar. A, int a = 2, B + = a; B, int a = b = 2, C = 5; C, float x = 2.3, b, c; D, float x = 3.2, int i, J = 6; 03-4In the following description of C language variables, the error is (). A. Variable B can be defined by define keyword. Variable names can be defined by upper and lower case letters. The main reasons why C and C allow mixed D and C languages to define variables compulsively are that operations are easy to determine types and allocate space. 03-5The () statement correctly defines the integer variables x, y, Z and assigns them the same initial value 3. A, int x, y, z = 3; B, int 3 = z = y = x; C, int x = 3, y = 3, z = 3; D, int x = y = z = 3; 04-1If int i = 1, J = 9 is defined, then the value of expression (+ + j)* (i--) is ().A, 0 B, 8 C, 9D, 10 04-2What correctly indicates that the variable x is not in the closed interval [-3,5] is (). A, 5<=x<=-3B, x>=-3 & & x<=5 C, x >=-3 | | x <= 5D, x <-3 | | x > 5 04-3If defined: int x; the following expression equivalent to the absolute value of X is (). A, x > 0? -x: x B, x > 0? X:-x C, x<0?X:-x D, x<0?-x:-x 04-4If there are definitions: int a, b; float x, the following expressions that do not conform to C language grammar are (). A, x%7B, x/= a-b C, a = b = 2D, x = float) A / b 04-5If int a = 100, B = 3 is defined, then the expression! The value of a | | B is (). A, 0 B, 1 C, 2D, 3 05-1If the following definitions and input statements exist, Char c1, c2; int x; scanf ("% c% d% c", & c1, & x, & c2); if the values of x, C1 and C2 are required to be 2,&apos;B&apos;and&apos;C&apos;, the correct data input is (). A, B2C B, B 2C C, B2, C D, 2BC 05-2If int a = 12 has been defined, the output after executing the following statement is (). Printf ("a=% d, a=% o, a=% x\ n", a, a, a); A, a = 12, a = 12, a = C B, a = 12, a = 14, a = C C, a = 12, a = 14, a = D D, a = 12, a = 13, a = 14 05-3If double y has been defined and a value is to be assigned to variable y from the keyboard, the correct function call is (). A, scanf ("% d", & y); B, scanf ("% 7.2f", & y); C, scanf ("% lf", & y); D, scanf ("% ld", & y); 05-4, only one character can be output to the terminal is (). A, printf () function B, scanf () function C, getchar () function D, putchar () function 05-5The function of the getchar () function is to get the terminal input (). A, One Character B, Multiple Characters C, a real variable value D, an integer variable expression 06-1If int x = 5, y

docxDoc C Language Selection Question Bank

Professional Docs > Common > Other > Preview
15 Pages 0 Downloads 232 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:03:38
You can enter 255 characters
What is my domain?( answer:www.45doc.com )
  • No comments yet