2014年电大程序设计基础记分作业3答案(2014 TV program design basic scoring homework 3 answer).docVIP

  • 0
  • 0
  • 约5.29千字
  • 约 20页
  • 2017-08-31 发布于河南
  • 举报

2014年电大程序设计基础记分作业3答案(2014 TV program design basic scoring homework 3 answer).doc

2014年电大程序设计基础记分作业3答案(2014 TV program design basic scoring homework 3 answer)

2014年电大程序设计基础记分作业3答案(2014 TV program design basic scoring homework 3 answer) Judgment question. (a total of 6 questions, 2 points per subject) 01 1, the choice structure is also called branch structure. (yes) yes no 2. A relatively independent program that has a specific function that can be called by other functions. It is called function in the C language. (yes) yes no 3 array elements are the basic units of an array. (yes) yes no The 4 and for statements are almost all the loop control structures available in high-level languages. (yes) yes no 5, if the calling function is a user-defined function, you must declare the called function in the main function. (yes) yes no 6, the cyclic structure is also called repetitive structure. (yes) yes no Radio examination. (a total of 20 questions, 3 points per subject) 01 1, the following procedures running results are: (B) #include stdio.h (main) {int, i=1, j=2; If (I, =j) Printf (YES\n); Else Printf (NO\n); } A.NO B.YES C.A D. or more is wrong 2. In C, the expression in the parentheses of a pair of parentheses followed by the if statement to determine the flow of the branch (D). A. can only use relational expressions B. can only use logical expressions C. can only use logical expressions or relational expressions D. can use any expression 3, following the execution of the following procedures, the correct result is (B). Void, main () { Int I; For (I=1; I10; I++) Printf (%d, ++I); } A.1,2,3,4,5,6,7,8,9,10 B.2,4,6,8,10, C.2,3,4,5,6,7,8,9,10,11, D.1,3,5,7,9, 4, the following procedures running results are: (A) #include stdio.h (main) {char c=A; If (0=, c=9) Printf (YES); Else Printf (NO); } A.YES B.NO C.A D. or more is wrong 5, the following procedures running results are: (D). Main () {int a=0; For (a=0; a3; a++); Printf (%d\n, a); } A.0 B.1 C.2 D.3 6, the following procedures such as the normal operation, when the letter from the keyboard input A, the output results for (B). #include stdio.h Main () {char ch; Ch = getchar ()

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档