avatar
t*k
2
文革的故事(昙花开时)(下)
从农村回来后,郭琳有大把的时间都用来看书,看着看着就有了一点想法,慢慢地写了
下来,有一天就拿去给陈老看,陈老让她在一些地方作了改动,最后又亲自动手改了不
少,拿出去在一个重要的刊物上发表了,第二年就要她去读自己的研究生。
开始她想陈老可能是想帮帮自己,他们两家是世交,父亲跟陈老又是多年的好友,过去
没少帮他。他几乎在每一个地方和父亲相反,廋高个,性子急,脾气极大,因此爱得罪
人,文革时比父亲整得还要惨,差点从牛棚里出不来了,不过她倒想,这样可能比父亲
好,郁在心里更坏。
陈老没有女儿,从小就喜欢她。他有一个儿子跟她一起造了老头子反,他至今不肯原谅
,不让儿子登自己的门,撞见就像不认识的路人,陈伯母虽然极为厉害,无论怎么吵怎
么骂,陈老不为所动,就是一句话:你要那个东西进门,我就离开家。到了过年,陈伯
母没有办法,也只能去儿子家呆一天,陈老就来找父亲喝酒。
他们很少谈文革,她过去认为主要是父亲不想谈,后来才发现,陈老自己也从不谈。记
得有一次她在自己房里听到父亲劝陈老,陈老长叹一声说:对他们好有什么用
avatar
t*r
3
1. What is Visual C++?
a.It's a program used for starting other programs.
b.It's a program that you use to create other programs.
c.It's a program for browsing the Web.
d.It's a multimedia program that teaches you how to program.
2.What is the name of the process by which Visual C++ converts your C++
code to a program the computer can understand?
a.Compile.
b.Run.
c.Debug.
d.Build.
3.What do you call the container that stores all the files you write and
all the files Visual C++ writes to create a program?
a.Solution Explorer.
b.Software.
c.Class.
d.Project.
4. Which one of the following is a good example of an attribute for a class
Car?
a.Drive.
b.Color.
c.Stop.
d.Car.
5.Suppose you have a class called Porsche. This class has two attributes,
each being an instance of class BucketSeat. Which statement below
correctly describes this situation?
a.The class Porsche is a BucketSeat.
b.The class Porsche has a BucketSeat.
c.The class BucketSeat is a Porsche.
d.The class BucketSeat has a Porsche.
6. When you use Visual C++, which window do you use to change the
attributes of a form?
a.Form designer.
b.Properties window.
c.Solution Explorer.
d.Object.
7. You've just been hired to write a program for the bank down the street.
What should you do first?
a.Identify the problem and decide why you're writing the program and
who will use it.
b.Design the program using the form designer in C++Builder.
c.Write a set of classes.
d.Divide up your source code into multiple files.
8. What is a technical word for a step-by-step process?
a.Class.
b.Inheritance.
c.If statement.
d.Algorithm.
9. What is a radio button?
a.A control you can type words into.
b.A control with text and a small circular button to its left that you
can click.
c.A control with a slider on it so you can scroll through your forms.
d.A control with a drop-down menu.
10.What type of variable would hold the number 253? (Notice that there
are no double quotation marks around the number 253.)
a.A string variable.
b.A pointer variable.
c.A character variable.
d.An integer variable.
11. Which line of code below declares a variable called Count as an integer
and sets its initial value to 189?
a.int Count = 189;
b.int Count = "189";
c.string Count = "189";
d.string Count = 189;
12. What is a comment in your code?
a.A note in the code that instructs the computer to perform a task.
b.A note that you type into the form designer.
c.A note in the code for the humans reading the program.
d.A note that you type into the Properties window.
13. In an if statement, how do you compare if two numbers are equal?
a.Use != to check for equality.
b.Use == to check for equality.
c.Use <= to check for equality.
d.Use >= to check for equality.
14.If you're doing a case-sensitive comparison (that is, you want your
comparison to be sensitive to case), then which one of the following two
comparisons will be equal?
a.'HOUSE' and 'house'
b.'hose' and 'HOSE'
c.'HORSE' and 'HORSE'
d.'HOWS' and 'HOUSE'
15.Which of the following keywords serves the purpose of "otherwise" or
"none of the above" in an if statement?
a.if
b.{
c.}
d.else
16. How many elements are in the following array?
int morenumbers[80];
a.79.
b.80.
c.0.
d.81.
17. What is the first and last element in the following array?
int morenumbers[80];
a.The first is 0 and the last is 80.
b.The first is 0 and the last is 79.
c.The first is 1 and the last is 80.
d.The first is 1 and the last is 79.
18.Which one of the following sets of code will run a for loop, starting
with 0, and going up to and including 79? (Be sure to pay close attention
to the less-than signs and the equal signs.)
a.int x;
for (x=0; x<79; x++) { x++)="">
b.int x;
for (x=0; x<78; x++) { x++)="">
c.int x;
for (x=0; x<=80; x++) { x++)="">
d.int x;
for (x=0; x<=79; x++) { x++)="">
19. In computer programming, what do you call a block of code that may take
information, process code, and may return a value?
a.An array.
b.A class.
c.A for-loop.
d.A function.
20.Look very closely at the following function. What does it do?
int AddTwo(int Original)
{
int NewNumber;
NewNumber = Original + 2;
return NewNumber;
}
a.The function adds two to a number and returns the answer.
b.The function takes a two and adds two to get four.
c.The function takes an original number and adds the original number
to itself.
d.The function adds two to a string.
21· What is cin? (Please read the choices very carefully.)
a.An object used for reading from the console.
b.An object used for writing to the console.
c.An object used for displaying information on a form.
d.An object used for reading information from a form.
22. Take a look at the following class. What are the names of its member
variables?
class Pen
{
public:
float Length;
string Color;
int InkAmount;
};
a.The member variables are class, Pen, and public.
b.The member variables are class, Pen, public, Length, Color, and
InkAmount.
c.The member variables are public, float, AnsiString, and int.
d.The member variables are Length, Color, and InkAmount.
23.Which of the following is an instance of the Button class?
a.A button you drop on the form from the Toolbox.
b.You typed Button in code.
c.You divided your source code up into function.
d.You add #include in your code.
24. What does MyPen.Length = 6.0; mean? (Please read the choices
carefully.)
a.It means you're retrieving the Length attribute of MyPen and comparing
it to 6.0.
b.It means you're setting all instances of MyPen to 6.0.
c. It means you're storing 6.0 in the Length attribute of MyPen.
d.It means you're storing 6.0 in the MyPen attribute of Length.
25. If you're writing a class and you use the word private, what does that
mean?
a.It means the members that follow the word private can't be accessed
outside the class.
b.It means the class itself can only be accessed by similar classes.
c.It means a comment will follow that's intended only to the users of
the class and not the users of the program.
d.It means you can't create instances of the class.
26. Suppose you have an object named HondaAccord and you want to call the
object's AddGas function. The AddGas function takes a GasStation instance as
a parameter, for which you'll pass AmocoAt34th. How do you write this as
code?
a.AddGas.HondaAccord.(AmocoAt34th);
b.AmocoAt34th.AddGas(HondaAccord);
c.HondaAccord.AmocoAt34th(AddGas);
d.HondaAccord.AddGas(AmocoAt34th);
27.Which of the following must a class declaration have?
a.member functions.
b.private keyword.
c.class keyword.
d.public keyword.
28. What does this line of code do? cout << &x << endl;
a.It prints out the address of the variable called x.
b.It prints out the value of the variable called x.
c.It prints out an ampersand symbol followed by the letter x.
d.It prints out an ampersand symbol followed by the value stored in x.
29. If you have a pointer called ptr, and it points to an object, what
symbols do you type in to access the member variable called height of the
object?
a.height->ptr
b.ptr->height
c.height.ptr
d.ptr.height
30. What does the following line of code mean? class HondaAccord : public
Car {
a.It means the class HondaAccord is a member of the class Car.
b.It means the class HondaAccord is derived from the class Car.
c.It means Car is a public member of HondaAccord.
d.It means the class Car is derived from HondaAccord.
31. What happens if you have a class called Car, and it has a public member
function called Drive, and then from Car, you derive a new class called
FordTaurus?
a.You'll be required to write a new function called Drive for FordTaurus.
b.FordTaurus won't be allowed to have a function called Drive.
c.FordTaurus will inherit the function Drive.
d.FordTaurus will inherit every function except the one called Drive.
32. Suppose Car has a private variable called MilesPerGallon, and from Car
you derive a new class called HondaAccord. Which one of the following
describes the situation?
a.HondaAccord is free to directly access the private member
MilesPerGallon.
b.HondaAccord is free to directly modify the private member
MilesPerGallon.
c.MilesPerGallon is neither a member of HondaAccord nor of Car.
d.HondaAccord can't access the private member MilesPerGallon in the
inherited class called Car.
33. What is a header file?
a.It's a file containing code that you share between different code
files.
b.It's not really a file—it's a function header.
c.It's a file that states the name of your program.
d.It's the file where you're required to put your variable declarations.
34. What does this line mean? #include
a.It means you're going to type a program called iostream.
b.It means you want to include the header file called iostream. The
angled brackets mean iostream isn't in your project directory.
c.It means you want to include the header file called iostream. The
angled brackets mean iostream is in your project directory.
d.It signifies the beginning of your program.
35. Microsoft Visual C++, C++Builder, and gcc are examples of what?
a.C++ code.
b.Builders.
c.Free tools.
d.Compilers.
36.Where should you go for more information about C++?
a.You don't. This class told it all.
b.Many places: the Internet, books, C++ experts, more courses.
c.The compiler will give you all the information you need.
d.Microsoft will send somebody to your home.
avatar
b*n
4
写得太好了!!!!

【在 t**********k 的大作中提到】
: 文革的故事(昙花开时)(下)
: 从农村回来后,郭琳有大把的时间都用来看书,看着看着就有了一点想法,慢慢地写了
: 下来,有一天就拿去给陈老看,陈老让她在一些地方作了改动,最后又亲自动手改了不
: 少,拿出去在一个重要的刊物上发表了,第二年就要她去读自己的研究生。
: 开始她想陈老可能是想帮帮自己,他们两家是世交,父亲跟陈老又是多年的好友,过去
: 没少帮他。他几乎在每一个地方和父亲相反,廋高个,性子急,脾气极大,因此爱得罪
: 人,文革时比父亲整得还要惨,差点从牛棚里出不来了,不过她倒想,这样可能比父亲
: 好,郁在心里更坏。
: 陈老没有女儿,从小就喜欢她。他有一个儿子跟她一起造了老头子反,他至今不肯原谅
: ,不让儿子登自己的门,撞见就像不认识的路人,陈伯母虽然极为厉害,无论怎么吵怎

avatar
t*r
5
这里牛人多,提前谢谢了!~~~~~~~~~~~~~~
avatar
b*n
6
又看了一遍上,里面的老陈和下文的陈老不是一个人对吗?
衔接处有点别扭
不过还是瑕不掩瑜
avatar
k*g
7
Thanks.
(转Joke)
avatar
y*e
8
上是林霁
下是齐霁
写的不错
不过感觉后来忽然小齐冒出来有点突兀……

【在 t**********k 的大作中提到】
: 文革的故事(昙花开时)(下)
: 从农村回来后,郭琳有大把的时间都用来看书,看着看着就有了一点想法,慢慢地写了
: 下来,有一天就拿去给陈老看,陈老让她在一些地方作了改动,最后又亲自动手改了不
: 少,拿出去在一个重要的刊物上发表了,第二年就要她去读自己的研究生。
: 开始她想陈老可能是想帮帮自己,他们两家是世交,父亲跟陈老又是多年的好友,过去
: 没少帮他。他几乎在每一个地方和父亲相反,廋高个,性子急,脾气极大,因此爱得罪
: 人,文革时比父亲整得还要惨,差点从牛棚里出不来了,不过她倒想,这样可能比父亲
: 好,郁在心里更坏。
: 陈老没有女儿,从小就喜欢她。他有一个儿子跟她一起造了老头子反,他至今不肯原谅
: ,不让儿子登自己的门,撞见就像不认识的路人,陈伯母虽然极为厉害,无论怎么吵怎

avatar
p*l
9
做人厚道点儿.

【在 k**********g 的大作中提到】
: Thanks.
: (转Joke)

avatar
t*k
10

抱歉,名字搞错了,是一个人。
已改了,谢谢你。

【在 y********e 的大作中提到】
: 上是林霁
: 下是齐霁
: 写的不错
: 不过感觉后来忽然小齐冒出来有点突兀……

avatar
X*2
11
晕死
avatar
y*r
12
敢问'国民党对知识分子敌视'是语出何处阿?
avatar
B*r
13
awesome. 看了心情好。自信心暴棚。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。