Northeastern University Spring Semester 20 "high-level language programming foundation X" usually online job 1

[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 1
paper total: 100 score: 100
a, multiple choice (a total of 25 questions, a total of 100 points)
1. there are two arrays of characters a, b, then the following input statement is correct ().
A.gets (A, B);
B.scanf ( "% S% S", A, B);
C.scanf ( "% S% S", & A, & B);
D.gets ( "A"); gets ( "b"); "
answer: B

2. The following operations pointer variables, is not correct ().
* P A.int, * Q; Q = P = NULL;
B.int P, Q *; P & Q =;
C.int. 5 = A, P *; * P = A;
D.int. 5 = A, * p = & a, * q = & a; * p = * q; "
answer: D

3. If the following program segment: for (m = 1; m <= 100; m ++) {scanf ( "% d", & y); if (y <0) continue; printf ( "% 3d", m); } description is correct ().
A. When y <0 the entire cycle is ended
By> = 0, outputs nothing
C.printf never perform the function
D. Maximum output 100 non-negative integers
Answer: D

4.C language program begins execution function main (), so this function will write ().
A. The last program file
to start the program file B.
any C. location of program files
before the function it calls the D.
Answer: C

5. If a variable is defined in a compound statement in the function, the following statement is correct ().
A. The only variable is the effective compound statement
B. The variable in this function effectively
C. The variable within the range of the effective procedure
D. The variable illegal variable
Answer: A

6. The following is a correct description of the function ().
Fun A.int (int A, B)
B.float Fun (int A; B int)
C.double Fun ()
D.int Fun (A char [] [])
Answer: C

Published 22 original articles · won praise 1 · views 2668

Guess you like

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