【vb精品源码栏目提醒】:网学会员--在 vb精品源码编辑为广大网友搜集整理了:C++语言程序设计自测练习(一)2 - 计算机等级绩等信息,祝愿广大网友取得需要的信息,参考学习。
C language programming checklist aA multiple-choice1. C source file default extension A.A. cpp B. exe C. obj D. likObject file compiled by the C source file default extension CA. cpp B. exe C. obj D. likConnected by the C object file executable file default extension B.A. cpp B. exe C. obj D. lik4. C program on the machine to get the result of several steps followed by B.A. compiled edited connected runB. edit compile link and runC. compile run edit connectedD. Edit Run Editor connectedInsufficiency in 5. Identifier is a reserved word .A. case for intB. default then whileC. bool class longD. goto return char6 as the basic unit of the C program .A. characters B. statement C. the function D. source file7 the main function of the name of the program for the A.A. main B. MAIN C. Main D. arbitrary identifierBasic modules of the C program is c.A. identifier expression B. C. D. function of statement9 can be used as a C language user identifier of a group identifier is B.A. void define WORDB. a3_b3 _123 YNC. for-abc CaseD. 2a DO sizeof10 stores the following data byte of storage occupied most D.A. 0 B. 0 C. quot0quot D. 0.011. Program runs from the keyboard input of more than one data A symbol should be used as adelimiter between each data.A. spaces or commas or comma C. B. D. comma or semicolon space or carriage return12 Let int a 12 quotexecuted statementquot a a a the value is C.A. 12 B. 144 C. 156 D. 28813. Assuming a b c in the program are defined as an integer the assigned value is greater than 1 thenthe following can correctly represent the algebraic expression is B.A. 1.0 / a b c B. 1 / a b c C. 1/a/b / float c D. 1.0/a/b/cThe 14 Let int a 15 b 26 quot thenquot cout ltlt a b quotoutput D.A. 15 B. 2615 C. 1526 D. 2615 Let x is a bool type logic y has a value of 10 the expression x ampamp y value C.A. 1 B. 0 C. x value of the same D. the x value opposite16. Xgt 0 ampamp x lt 10 opposite expression .A. x lt 0 xgt 10 B. x lt 0 ampamp xgt 10C. x lt 0 x lt 10 D. xgt 0 ampamp xgt 1017 xgt 0 y 5 opposite expression .A. x lt 0 y 5 B. x lt 0 ampamp y 5C. xgt 0 y 5 D. xgt 0 ampamp y 518. Let x and y are BOOL amount x ampamp y true condition .A. They are true B. one is trueC. They are false D. One false19. Let x and y are BOOL amount x y is false condition .A. They are true B. one is trueC. They are false D. One false20. String quota b 12 nquot the length .A. 6 B. 7 C. 8 D. 921. Assume that the following x and y are variables of type int not correct assignment .A. x y B. x y C. x y D. x y22 following symbolic constants defined in the wrong definition of .A. const M 10 B. const int M 20C. const char ch D. const bool mark true23. The looping statements quotfor int i 0 i ltn i cout ltlt i i ltlt quot in the body of the loop executiontimes .A. 1 B. n-1 C. n D. n 124. Loop body is executed the number of times in the following cycle statement .for int i 0 i ltn i if igt n / 2 breakA. n / 2 B. n / 2 1 C. n/2-1 D. n-125 the total number of execution of the inner loop body S statement in the following loop stat