650) this.width=650; "Src=" https://mmbiz.qlogo.cn/mmbiz/ Iahl5mqlicpyn0gmfwwdrpia3itxobfebdu9lypq8e5aexqjqxzdiayrzdjsrwzqou9dun5icd1rzhc5lzjnmjtdliaq/0?wx_fmt=jpeg "alt = "0?wx_fmt=jpeg"/>
Content Introduction
1, the first part 13 lesson: The first part quiz
2, the second part of the first lesson preview: Object-oriented approach, string of the shaking insider
First Part quiz
In the last lesson, we learned the weight of the pointer.
Well, the first part of our course also ended successfully. However, how can small make you so easy to let go? (In fact, I am good Socialist Good youth well).
Therefore, it is necessary to have a simple test question, to test the effect of learning. Not hard, don't worry.
Test questions
Who is the father of 1.c++?
Birj Tromman
Bjarne Stroustrup
Barj Grossoup
2. What is the software that combines a text editor, compiler, and debugger?
IDLE
Ide
DEI
Ied
3. What is the function of the following code?
cout << "Hello world!" << Endl;
Display this text in standard output
Ask the user to enter this text with the keyboard
Open a new window, the title of which is this paragraph of text
4. I want to store a user's name in a variable, what is the most appropriate variable type?
Int
bool
String
Char
5. If the value of my int variable variable is 5, what is the value of variable after executing the following instruction?
variable++;
4
5
6
7
6. The following code is available:
int a (a), B (Ten), result (0);
result = a + B;
Finally, what is the value of the variable result?
0
10
20
30
7. If I define a variable like this:
int const height (15);
So, if I write a command in the program,
height++;
After running the program, how much will the height value change to?
16
15
The program doesn't even compile.
8. Can the following arrays store variables of type bool?
int bestscores[10];
Yes
No
9. If I have a valid variable and the name is price, then how do I get its memory address?
&price
Price
@price
Price.address
10. What does the following code do primarily?
#include <iostream>
#include <fstream>
using namespace Std;
int main ()
{
Ofstream MyStream ("C:/test.txt");
return 0;
}
Open a file as written, and then close the file automatically
Write to File 0
Copying files
Answer
B
B
A
C
C
D
C
B
A
A
Part Two first lesson preview
Today's class will come here, together refueling it!
Next lesson we study: Object Oriented approach, string of the insider
This article is from the "Programmer Alliance Frogoscar" blog, so be sure to keep this source http://4526621.blog.51cto.com/4516621/1751856
"C + + Discovery Tour" Part 13th lesson: Part One Quiz