Key Reminder: If you cannot find the corresponding review answers, please contact customer service and comply with their requests.

Analysis: For more reference answers, please follow the 【FeiYue Search Questions】 WeChat public account to send the question and get the answer.
Free test questions original text: www.bnjyedu.com
Free test answers: www.bnjyedu.com
For original questions with images or small essays, please refer to: yuyue-edu.cn.
The latest Autumn 2024 National Open University C Language Programming assignment question bank, final exam question bank, and answers exam instructions: I have carefully compiled a complete question bank and answers based on past years, and it is updated every year. This question bank plays a very important role in the review, assignments, and exams for candidates, saving you a lot of time. When doing exam questions, use the search tool in this document to quickly find the answers by entering keywords from the exam questions into the search content box. This document includes review questions and answers from various platforms such as Super Star Learning Pass, Zhidao Wisdom Tree, National Open University, Guangdong Open University, Jiangsu Open University, Shanghai Open University, Yunnan Open University, Xinwei Education, Yunmu Academy, Vocational Education Cloud, Sichuan Agricultural Online, Yangtze River Rain Classroom, Anhui Continuing Education Platform, Qingbook Academy, Ruixue Online, Adult Education Cloud, Jingren Platform, Yitong Continuing Education Cloud, Xueqi Plus, Yunsang HeKai, Henan Continuing Education, Sichuan Open University, Liangshi Online, Continuing Education Cloud, Rizhao Professional Technical Personnel Continuing Education, Maineng Network, 21tb, 168 Online School, Yun Class, Open University Secondary Vocational School, learnin, Xi Financial Online, etc. Please check the review questions and answers. The course exam questions are random, please search by keywords (or press Ctrl+F to enter keywords from the questions, try not to enter the entire question, and avoid copying spaces, just a few continuous characters will suffice). This document is provided by the 【National Open Search Questions】 WeChat public account, and copying or stealing is prohibited, violators will be prosecuted.
C Language Programming
School: Guangzhou Open University
Question 1: 1. Every C language program must include a function with the function name ( ).
Options:
A. main
B. MAIN
C. name
D. function
Answer: main
Question 2: 2. The default extension for C language source program files is ( ).
Options:
A. cpp
B. exe
C. obj
D. c
Answer: c
Question 3: 3. The default extension for executable files formed by linking C language object files is ( ).
Options:
A. cpp
B. exe
C. obj
D. c
Answer: exe
Question 4: 4. When multiple data need to be input from the keyboard during program execution, the delimiter used between each data should be ( ).
Options:
A. space or comma
B. comma or enter
C. comma or semicolon
D. space or enter
Answer: space or enter
Question 5: 5. Compilation errors for each C language program file are divided into ( ).
Options:
A. 1 type
B. 2 types
C. 3 types
D. 4 types
Answer: 2 types
Question 6: 6. A compound statement that does not conform to C language regulations is ( ).
Options:
A. {}
B. {;}
C. {x=0;}
D. {y=10}
Answer: {y=10}
Question 7: 7. The basic functional module in a C language program is ( ).
Options:
A. expression
B. identifier
C. statement
D. function
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 8: 8. In a function definition, the three parts included in the function header are function type, function name, and ( ).
Options:
A. expression
B. statement
C. parameter list
D. function body
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 9: 9. In a program file, if you want to use the #include command to include a user-defined header file, the delimiters used for this header file are a pair of ( ).
Options:
A. angle brackets
B. double quotes
C. single quotes
D. curly braces
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 10: 10. In a C language program, the starting marker for multi-line comment statements is ( ).
Options:
A. //
B. /*
C. */
D. **
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 11: 11. In the format string of the printf() function call, if the format specifier is “%c”, the corresponding output data type is ( ).
Options:
A. char
B. int
C. float
D. double
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 12: 12. In the format string of the printf() function call, if the format specifier is “%5d”, the number of character positions occupied by the corresponding output data is ( ).
Options:
A. 5
B. 4
C. 3
D. 6
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 13: 13. The escape character ‘\’ represents the character ( ).
Options:
A. single quote
B. double quote
C. backslash
D. question mark
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 14: 14. The value of each enumeration constant in an enumeration type is ( ).
Options:
A. integer
B. floating point
C. character
D. logical value
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 15: 15. Let x and y be logical values, then the condition for x && y to be true is ( ).
Options:
A. both are true
B. one is true
C. both are false
D. one is false
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 16: 16. Given the statement “int a=12; a+=a*a;”, the value of a after execution is ( ).
Options:
A. 12
B. 144
C. 156
D. 288
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 17: 17. The opposite expression of x>0 && x<=10 is ( ).
Options:
A. x<=0 || x>10
B. x<=0 && x>10
C. x<=0 || x<=10
D. x>0 && x>10
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 18: 18. The length of the string “a+b=12\n” is ( ).
Options:
A. 6
B. 7
C. 8
D. 9
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 19: 19. In the following definitions of symbolic constants, the incorrect definition statement format is ( ).
Options:
A. const int M1=10;
B. const int M2=20;
C. const int M3 10;
D. const char mark=’3′;
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 20: 20. Each simple statement in C language ends with a semicolon.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 21: 21. Each compound statement in C language ends with curly braces.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 22: 22. In a C language program, the start marker for comments at the end of the line is a pair of single slash characters.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 23: 23. The start marker for comment content is /*, then the end marker for comment content is */.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 24: 24. In a C language program file, if you want to include a header file, use a preprocessing command that starts with a percentage sign.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 25: 25. The standard output function used to output the value of an expression is printf().
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 26: 26. When a function does not need to return any value, the reserved word void should be used as the return type of the function.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 27: 27. Each C program file may have warning errors during compilation, and its corresponding identifier is error.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 28: 28. The decimal number 25 represented as an octal number that conforms to C language rules is 31.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 29: 29. The decimal number 25 represented as a hexadecimal number that conforms to C language rules is 0x19.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 30: 30. In C language, the escape character ‘\n’ represents a newline character.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 31: 31. The output result of executing the statement “printf(“%c”,’F’-2);” is H.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 32: 32. Given that the ASCII code for character ‘C’ is 67, after executing the statement “int x=’C’+5;”, the value of x is 72.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 33: 33. Assuming that an enumeration type is defined as “enum RB{ab,ac=3,ad,ae}x=ad;”, the value of x is 2.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 34: 34. The type length of float is 8.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 35: 35. In C language, the constants 28 and 3.26 have the same data type.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 36: 36. If you need to define a symbolic constant and let C language perform type checking, you should use the reserved word const at the beginning of the definition statement.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 37: 37. When defining a symbolic constant using the const statement, it is not necessary to initialize it.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 38: 38. The value of the expression 45%13 is 3.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 39: 39. Assuming x=5, the value of the expression 2*x++ is 12.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 40: 40. The value of the expression (float)25/4 is 6.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 41: 41. The expression x=x+1 represented as an increment expression is ++x.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 42: 42. The equivalent expression of the relational expression (x!=0) is (x).
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 43: 43. The opposite expression of the relational expression x+y>5 is x+y<=5.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 44: 44. The opposite expression of the logical expression (a>b || b==5) is (a>b && b==5).
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 45: 45. If x=5, y=10, then the logical value of x>y is true.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 46: 46. Assuming x=5, after executing the statement “a=(x?10:20);”, the value of a is 10.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 47: 47. The range of values for the expression with the random function rand()%20 is 0~19.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 48: 48. Assuming x=5, after executing the statement “y=x++;”, the value of x is 5.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 49: 49. Assuming x=5, after executing the statement “y=++x;”, the value of y is 6.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 50: 50. The operator with the highest precedence is ( ).
Options:
A. =
B. *=
C. &&
D. !=
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 51: 1. When the number of iterations for a specific problem is known, the statement typically used is ( ).
Options:
A. for
B. while
C. do-while
D. switch
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 52: 2. In each case block of the switch statement, assuming all end with a break statement, the switch statement is easily rewritten as ( ).
Options:
A. for
B. if
C. do
D. while
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 53: 3. The for statement can be rewritten as ( ).
Options:
A. composite
B. if
C. switch
D. while
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 54: 4. The output value of i after executing the following loop statement is ( ).for(int i=0; i<n 2;="" i++)="" p="" {cout<
Options:
A. n/2
B. n/2+1
C. n/2-1
D. n-1
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 55: 5. In the following loop statement, the total number of executions of the inner loop body S statement is ( ).for(int i=0; i<n; i++)
Options:
A. n
B. (n+1)/2
C. n(n-1)/2
D. n(n+1)/2
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 56: 6. In the following do loop statement, the number of times its body is executed is ( ).int i=0; do i++; while(i*i<10);
Options:
A. 4
B. 3
C. 5
D. 2
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 57: 7. In the following definition of a one-dimensional array, the option with a syntax error is ( ).
Options:
A. int a[]={1,2,3};
B. int a[10]={0};
C. int a[];
D. int a[5];
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 58: 8. In the following definition of a two-dimensional array, the option with correct syntax is ( ).
Options:
A. int a[5][];
B. int a[][5];
C. int a[][3]={{1,3,5},{2}};
D. int a[](10);
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 59: 9. Assuming that the definition statement of a two-dimensional array is “int a[3][4]={{3,4},{2,8,6}};”, the value of element a[1][1] is ( ).
Options:
A. 2
B. 4
C. 6
D. 8
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 60: 10. Assuming that the definition statement of a two-dimensional array is “int a[3][4]={{3,4},{2,8,6}};”, the value of element a[2][1] is ( ).
Options:
A. 0
B. 4
C. 8
D. 6
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 61: 11. In the execution of the statement “typedef int DataType;”, the identifier DataType has the same meaning and function as the reserved word int.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 62: 12. In the switch statement, the expression between each case and the colon can only be a constant.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 63: 13. To end the execution process of the current loop statement or switch statement, the break statement needs to be used in the body of the statement.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 64: 14. When executing to the break statement in the program, the execution process of the current function will end, returning to the position that called the function.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 65: 15. After completing the execution of any function call in the program, the execution process of the entire program will end, returning to the operating system or the C language integrated development environment interface window.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 66: 16. Assuming that the one-dimensional array is defined as “char* a[8];”, then the number of elements contained in this array is greater than 8.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 67: 17. Assuming that the two-dimensional array is defined as “int a[3][5];”, then the number of bytes occupied by this array is 60.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 68: 18. Assuming that the two-dimensional array is defined as “char a[M][N];”, then the number of elements contained in this array is M+N.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 69: 19. Assuming that the two-dimensional array is defined as “double a[M][N];”, then the row index range of each array element is between 0~M-1.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 70: 20. Assuming that the two-dimensional array is defined as “double a[M][N];”, then the column index range of each array element is between 0~N.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 71: 21. Storing an empty string requires 0 bytes of storage space.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 72: 22. Using the “typedef char BB[10][50];” statement defines the identifier BB as a two-dimensional character array type with 10 rows and 50 columns.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 73: 23. Storing the character ‘a’ requires 1 byte of storage space.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 74: 24. The length of an empty string is 1.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 75: 25. The length of the string “a:\xxk\data” is 13.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 76: 26. To store a string of length n, the length of the character array used must be at least n+1.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 77: 27. The strcmp function is used to compare two strings.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 78: 28. The strcpy function is used to copy one string to another character array space.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 79: 29. A two-dimensional character array a[10][20] can store a maximum of 9 strings.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 80: 30. A two-dimensional character array a[10][20] can store each string with a length of no more than 20.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 81: 31. #include__ void main() {__ __int i,s=0;__ __for(i=1;i<=5;i++) s+=i*i;__ __printf(“s=%d\n”,s);__ } Answer:
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 82: 32. #include__ void main() {__ int i, s1=0, s2=0;__ for(i=0;i<10;i++)__ if(i%2) s1+=i; else s2+=i;__ printf(“%d %d\n”,s1,s2);__ } Answer:
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 83: 33. #include__ void main() {__ __int n=6,y=1;__ while(n) y*=n–;__ printf(“y=%d\n”,y);__ } Answer:
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 84: 34. #include__ const int M=20;__ void main()__ {__ int i,c2,c3,c5;__ c2=c3=c5=0;__ for(i=1; i<=M; i++) {__ __if(i%2==0) c2++;__ if(i%3==0) c3++;__ if(i%5==0) c5++;__ }__ printf(“%d %d %d\n”,c2,c3,c5);__ } Answer:
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 85: 35. #include__ void main()__ {__ int i,s;__ for(i=1,s=0;i<10;i++) {__ if(i%3==0) continue;__ s+=i;__ }__ printf(“%d\n”,s);__ } Answer:
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 86: 36. #include__ void main() {__ int a[8]={12,39,26,41,55,63,72,40};__ int i, i1=0, i2=0;__ for(i=0;i<8;i++)__ if(a[i]%2==1) i1++; else i2++;__ printf(“%d %d\n”,i1,i2);__ } Answer:
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 87: 37. #include__ int a[10]={4,5,6,15,20,13,12,7,8,9};__ void main()__ {__ int i,s[4]=0;__ for(i=0; i<10; i++) {__ switch(a[i]%4) {__ case 0: s[0]+=a[i];break;__ case 1: s[1]+=a[i];break;__ case 2: s[2]+=a[i];break;__ default: s[3]+=a[i];break;__ }__ }__ for(i=0; i<4; i++) printf(“%d “,s[i]);__ } Answer:
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 88: 38. #include__ void main() {__ char a[]=”abcdbfbgacd”;__ int i1=0, i2=0, i=0;__ while(a[i]) {__ if(a[i]==’a’) i1++;__ if(a[i]==’b’) i2++;__ __i++;__ }__ printf(“%d %d %d\n”,i1,i2,i);__ } Answer:
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 89: 39. #include__ void main() {__ int a[3][4]={{1,2,7,8},{5,6,10,6},{9,12,3,4}};__ int m=a[0][0];__ int i,j;__ for(i=0; i<3; i++)__ for(j=0; j<4; j++)__ if(a[i][j]>m) m=a[i][j];__ printf(“%d\n”,m);__ } Answer:
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 90: 1. In the following reserved words, which cannot be used as a return type for a function is ( ).
Options:
A. void
B. int
C. enum
D. long
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 91: 2. Assuming p is a pointer to float type data, the number of bytes by which the address of the data pointed to by p+1 increases is ( ).
Options:
A. 1
B. 2
C. 4
D. 8
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 92: 3. Assuming a is an array name, in the following expression, the one with a syntax error is ( ).
Options:
A. a[i]
B. *a++
C. *a
D. *(a+1)
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 93: 4. The correct statement to create a one-dimensional array with 10 integer elements using the calloc function is ( ).
Options:
A. int *p=calloc(10,2);
B. int *p=calloc(10);
C. int *p=calloc(10,4);
D. int *p=malloc(10)
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 94: 5. Assuming k is a double type variable, the correct statement to define variable p is ( ).
Options:
A. double p=&k
B. int *p=&k
C. double &p=*k;
D. char *p=”Thank you!”;
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 95: 6. If there is a statement “int a[10], x, *pa=a;” to assign the value of the element at index 3 of array a to x, the incorrect statement is ( ).
Options:
A. x=pa[3];
B. x=*(a+3);
C. x=a[3];
D. x=*pa+3;
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 96: 7. Assuming there are statements “int b[10]; int *pb;”, the incorrect assignment statement is ( ).
Options:
A. pb=b;
B. pb=&b[0];
C. pb=b+2;
D. pb=b[5];
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 97: 8. Given “int *p=malloc(100);”, to release the dynamic memory pointed to by p, the correct statement is ( ).
Options:
A. free(p);
B. free p;
C. free(*p);
D. free[p];
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 98: 9. In a file where a function is defined, if you want to call it in another file, you must provide the ( ) of that function in the other file.
Options:
A. prototype statement
B. parameter list
C. function name
D. return type
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 99: 10. Assuming a function is defined as “static int f1(int x,int y){return x+y;}” the name of that function is ( ).
Options:
A. static
B. int
C. f1
D. return
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 100: 11. Assuming the prototype statement of a function is “int ff(int* x);”, and an integer array is a[10], then the following function call expression that is incorrect is ( ).
Options:
A. ff(a)
B. ff(a[0])
C. ff(a+3)
D. ff(&a[0])
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 101: 12. Assuming a function’s two-dimensional array parameter description is char w[][N], the equivalent pointer parameter description is ( ).
Options:
A. char (*w)[N]
B. char *w[N]
C. char (*w)N
D. char**a
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 102: 13. In C language, a function consists of a function header and a function body.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 103: 14. Variables defined outside of function modules are called global variables, and if not initialized, the system implicitly assigns an initial value of 0 to them.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 104: 15. If a function only allows calls from functions within the same program file, the reserved word static should not be added at the beginning of the function definition.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 105: 16. If a function calls itself within its body, this type of function call is called a recursive call.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 106: 17. When calling system functions, you must first use the #include command to include the system header file where the prototype statement of that system function is located.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 107: 18. Function parameter variables do not belong to local variables.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 108: 19. Assuming the value of the object pointed to by p is 25, the value of the object pointed to by p+1 is 46, then the value of *p++ is 46.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 109: 20. Assuming the value of the object pointed to by p is 25, the value of the object pointed to by p+1 is 46, then the value of *++p is 25.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 110: 21. Assuming the value of the object pointed to by p is 25, the value of the object pointed to by p+1 is 46, then after executing *(p++) operation, the value of the object pointed to by p is 46.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 111: 22. Assuming a is a pointer array, then the address pointed to by a+i is greater than the address of a by 4*i bytes.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 112: 23. If you want to convert an integer pointer p to a character pointer, the forced conversion expression is (char*)p.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 113: 24. Assuming a data object is of type int*, the pointer type pointing to that object is still of type int*.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 114: 25. Assuming x is a simple variable, then &x represents the address of x.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 115: 26. If p points to x, then *p and x have different values.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
Question 116: 27. NULL is a symbolic constant, usually used as a null pointer value, and its value is 0.
Options:
Answer: Please follow the WeChat public account 【National Open Search Questions】 to view the answer
FeiYue Search Questions
The preview has ended
Analysis: For more reference answers, please follow the 【FeiYue Search Questions】 WeChat public account
