Northeastern University Spring Semester 20 "high-level language programming foundation X" line usually work 3

[Statement] this blog content is limited exchange of learning, no, please add micro-channel wxxygzs QQ3064302332 can then specify from CSDN
very much hope to share with you through CSDN this platform
Northeastern University 20 Spring Semester "high-level language programming foundation X" line usually job 3
paper total: 100 score: 100
a, multiple choice (a total of 25 questions, a total of 100 points)
1. the following definitions correctly integer variables x, y and z, and its initial value is a statement 5 ( ).
X = Y = Z A.int =. 5;
B.int X, Y, Z =. 5;
C.int. 5 X =, Y =. 5, Z =. 5;
Dx =. 5, Y =. 5, Z =. 5; "
answer: C

2. If the definition: int X [10], P ;, then X = (p + 5) represented by ().
A. SUMMARY option. 11
B. SUMMARY option. 11
C. array element x [6] of address
D. array element x [6] the value of
the address array element E. x [5] of
the value of F. array element x [5] of
answer: D

3. The following is a one-dimensional array of integer instructions are correct ().
A A.int (10);
B.int = n-10, A [n-];
C.int n-; Scanf ( "% D", & n-); int A [n-];
D. DEFINE SIZE # 10; int A [SIZE];
answer: D

4. After execution of the block below, the value of x is (). X int; the printf ( "% D \ n-", (X =. 5. 3 *, X +. 5));
A.10
B.15
C.20
D.5
Answer: B

5. If the following program segment: ...... int a [] = { 4,0,2,3,1}, i, j, t; for (i = 1; i = 0 && t> a [j]) {a [j + 1] = a [j]; j-;} a [j + 1] = t;} ...... then a function of this block is ().
A. insertion array a (ascending)
B. a insertion array (descending)
C. a selected array (ascending)
D. a selected array (descending)
Answer: B

6. The output program is the following (). main () {int x, i; for (i = 1; i <= 100; i ++) {x = i; if (++ x% 20)if(++x%30)if(++x%7==0)printf("%d ",x);}}
A.39 81
B.42 84
C.26 68
D.28 70
答案:D

Published 22 original articles · won praise 1 · views 2666

Guess you like

Origin blog.csdn.net/youxue100f/article/details/105398012