Section One Directions: In this section, you will hear ten short statements. Each statement will be spoken only once. After each statement, there will be a pause. During the pause, you must read the four suggested answers marked A, B, C and D, and decide which is the best answer. Then mark the corresponding letter on the ANSWER SHEET with a single line through the center.
A. If the time period of the loan is one year, the simple interest and compound interest are the same.
B. If the time period of the loan is the same, the simple interest and compound interest are the same.
C. When the full principal plus interest is paid together, compound interest and simple interest are of the same dollar amount.
D. When the full principal plus interest is paid together, compound interest and simple interest are not of the same dollar amount.
查看答案
有如下程序: #include<iostream> using namespace std; class TestClass int k; public: TestClass(int x=1):k(x) ~TestClass Ocout<<k; ; int main() TestClass a[]=TestClass(3),TestClass(3),TestClass(3); TestClass *p=new TestClass[2]; delete []p; return (): 这个程序的输出结果是______。
有如下程序: #include<iostream> using namespace std; class Base public: Base ()cout<<"Base"; ; class Derived:public Base public: Derived()cout<<"Derived"; ; intmain() Derived derived; Base *p; P=& derived; return 0; 执行上面程序的输出是______。
已知递归函数fun的定义如下: int fun(int n) if(n<=1) return 1;//递归结束情况 else return n *fun(n-2);//递归 则函数调用语句fun(5) 的返回值是______。
若需要把一个函数"void fun():"定义为一个类TestClass的友元函数,则应在类Testclass的定义中加入一条语句:______。