This question bank is compiled based on the relevant requirements of the exam syllabus, combined with the key points of recent exam questions, forming a complete simulation test. Candidates can conduct targeted training to identify gaps and reinforce knowledge points.
This question bank carefully organizes and edits hot exam questions and key points. I believe that after targeted practice, candidates will have more confidence and grasp of the exam content.~ Below are some questions from this exam, with answers at the end.
Source of the question bank: “Computer Level 2 Excellent Question Treasure” Mini Program

1. Given the following class definition: class Point{int x_, y_;public:Point():x_(0), y_(0){}Point(int x, int y = 0):x_(x),y_(y){}}; If the statement Point a(2), b[3], *c[4]; is executed, the number of times the constructor of the Point class is called is ( ).
A 2 times
B 3 times
C 4 times
D 5 times
2. Given the following program: #include<iostream.h> long fib(int n) { if(n>2) return(fib(n-1) +fib(n-2) ) ; else return(2) ;} void main() { cout << fib(3) ;} The output of this program is
A 2
B 4
C 6
D 8
3. The output of the following program is ( ). #include<iostream.h> void main() { int i=1; while(i<=8) if(++i%3!=2)continue; else cout<<i; }
A 25
B 36
C 258
D 369
4. The incorrect basis for selecting overloaded functions during calls is
A The names of the function parameters
B The types of parameters
C The name of the function
D The type of the function
5. Among the following functions, which one performs write operations on files?
A get()
B read()
C seekg()
D put()
6. In the sequential list (3, 6, 8, 10, 12, 15, 16, 18, 21, 25, 30), the number of key comparisons required to find the key value 11 using binary search is ( )
A 2
B 3
C 4
D 5
7. Among the following statements about templates, the incorrect one is ( ).
A The first symbol in the template declaration is always the keyword template
B The part enclosed in “<” and “>” in the template declaration is the template parameter list
C Class templates cannot have data members
D Under certain conditions, the actual parameters of function templates can be omitted
8. The output of the following program is ( ).#include<iostream.h>int x=3;void main(){ void incre(); int i; for (i=1;i<x;i++) incre();}Void incre(){ static int x=1; x*=x+1; cout<<x<<“”;}
A 3 3
B 2 2
C 2 6
D 2 5
9. Given the following program: #include<stdio.h>void main(){FILE*fp;int a[10]={1,2,3},i,n; fp=fopen(“d1.dat”,”w”); for(i=0;i<3;i++)fprintf(fp,”%d”,a[i]); fprintf(fp,”\n”); fclose(fp); fp=fopen(“d1.dat”,”r”); fscanf(fp,”%d”,&n); fclose(fp); printf(“%d\n”,n); } The output of the program is ( ).
A 12300
B 123
C 1
D 321
10. Among the following statements, the correct one is ( ).
A Comments in C programs can only appear at the beginning of the program and after statements
B The writing format of C programs is strict, requiring only one statement per line
C The writing format of C programs is flexible, allowing one statement to be written over multiple lines
D Programs written in C can only be placed in one program file
11. In flat advertisements, the copy conveys information in conjunction with graphics, colors, and other non-verbal symbols. The following statements about the arrangement of various elements are correct ( ).
A All communication symbols are arranged in the same layout space
B The title must be arranged in the most prominent position at the top of the full-page advertisement
C The accompanying text is arranged at the bottom or lower right corner of the advertisement layout
D The advertising slogan can use any font
E The title generally uses a larger font size
12. Magazine advertisements are classified according to the size of specific advertisement works, excluding ( ).
A Full-page advertisement
B Half-page advertisement
C 1/2 page
D Folded page advertisement
13. Among the following statements about the copy arrangement in the “aligned tail but not aligned head” format, the incorrect one is ( ).
A In the length of a column, the starting text of each line is not aligned, forming a natural shape
B In the length of a column, the ending text of each line is aligned to the right axis
C Advertising copy is sometimes arranged on the left side of the picture according to the overall design needs
D Making the right side of the text very neat with respect to the cutting line is beneficial for the overall design of the advertisement
14. ( ) plays an important role in “creating, communicating, and delivering customer value”.
A Advertising
B Sales promotion
C Personal selling
D Public relations
15. The main expression method of advertising reflected in the case is ( ).
A Life segment type
B Added value type
C Product information type
D Life information type
16. The main basis for market forecasting includes ( ).
A Correlation
B Inertia
C Analogy
D Probability inference
E Analogy
17. Sales promotion refers to various marketing activities that can stimulate consumer purchases and enhance dealer benefits, except for ( ).
A Personal selling
B Advertising promotion
C Display
D Demonstration
E Exhibition
18. From the brand’s perspective, advertising slogans contain the company’s philosophy, product selling points, etc., and are often ( ) located.
A Brand marketing strategy
B Brand value
C Brand core characteristics
D Brand symbolic signs
19. Given the following class definition: class Point{private:static int how_many;}; To initialize the static member how_many of the Point class, the content to fill in the blank is ( ).
A int
B static int
C int Point::
D static int Point::
[Reference Answers]
1.C
2.B
3.C
4.A
5.D
6~20 Long press to identify or scan the QR code below to enter the “Computer Level 2 Excellent Question Treasure” Mini Program to search for question answers, which will also regularly update exam question resources. Come and practice!
