答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
设有函数模板template Q Sum(Q x,Q y) {return (x)+(y);} 则下列语句中对该函数模板错误的使用是()
①
Sum(10,2);
②
Sum(0,7);
③
Sum(2f,0f);
④
Sum(“AB”,”CD”);
参考答案:
复制
纠错
相关题目
【单选题】
设有函数模板templateQ Sum(Q x,Q y) {return (x)+(y);} 则下列语句中对该函数模板错误的使用是()
①
Sum(10,2);
②
Sum(0,7);
③
Sum(2f,0f);
④
Sum(“AB”,”CD”);
查看完整题目与答案
【单选题】
设有函数T Sum(T x,T y){return x+y;},其中T为模板类型,则下列语句中对该函数错误的使用是( )
①
Sum(1,2);
②
Sum(0,2);
③
Sum(‘A’,‘C’);
④
Sum(A,C);
查看完整题目与答案
【单选题】
设有函数T Sum(T x,T y){return x+y;},其中T为模板类型,则下列语句中对该函数错误的使用是( )
①
Sum(1,2);
②
Sum(0,2);
③
Sum(‘A’,‘C’);
④
Sum(A,C);
查看完整题目与答案
【单选题】
下列语句中,将函数int sum(int x, int y)正确重载的是( )。
①
float sum(int x, int y);
②
int sum(int a, int b);
③
float sum(float x, float y);
④
double sum(int y, int x);
查看完整题目与答案
【单选题】
下列语句中,将函数int sum(int x, int y)正确重载的是( )。
①
float sum(int x, int y);
②
int sum(int a, int b);
③
float sum(float x, float y);
④
double sum(int y, int x);
查看完整题目与答案
【单选题】
在JavaScript中,运行下面的代码,sum的值是( )。 var sum = 0; for(i = 1; i < 10; i++) { if(i%5==0) break; sum = sum + i; }
①
40
②
50
③
5
④
10
查看完整题目与答案
【单选题】
在JavaScript中,运行下面的代码,sum的值是( )。var sum = 0;for(i = 1; i ( 10; i++) { if(i%5==0) break; sum = sum + i;}(选择一项)
①
40
②
50
③
5
④
10
查看完整题目与答案
【单选题】
以下程序段运行后sum的值为()。intk=0,sum=0;inta[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};for(;kk++)sum+=a[k][k+1];
①
9
②
18
③
19
④
21
查看完整题目与答案
【单选题】
若以下变量均是整型,且num=sum=7,则执行表达式sum=num++,sum++,++num后sum的值为( )。
①
7
②
8
③
9
④
10
查看完整题目与答案
【单选题】
有以下程序,程序执行后的输出结果是( ) #include int fun(int x [ ],int n) { static int sum=0,i; for(i=0; i{ sum+=x[i]; } return sum; } void main( ) { int a[ ]={1,2,3,4,5}; int b[ ]={6,7,8,9},s=0; s=fun(a,5)+fun(b,4); printf(%d\n,s); }
①
45
②
50
③
60
④
66
查看完整题目与答案
随机题目
【单选题】
As a realist, Mark Twain concerned particularly about the local character of a region, which came about as “_________”.
①
Naturalism
②
Transcendentalism
③
Local Colorism
④
Both A and C
查看完整题目与答案
【单选题】
______ is not the representative writer in the Age of Realism in the literary history of the United States.
①
Henry James
②
Ezra Pound
③
William Dean Howells
④
Mark Twain
查看完整题目与答案
【单选题】
Which of the following is not right about Mark Twain’s writing style?
①
ungrammatical and complicated
②
colloquial and concrete
③
remarkable humor
④
deep influence on contemporary writers
查看完整题目与答案
【单选题】
After the Civil War America was transformed from ______ to ______.
①
an agrarian community … an industrialized and commercialized society
②
an agrarian community … a society of freedom and equality
③
a poor and backward society … an industrialized and commercialized society
④
an industrialized and commercialized society … a highly developed society
查看完整题目与答案
【单选题】
Which of the following is NOT right about Mark Twains style of language?
①
His sentence structures are long, ungrammatical and difficult to read.
②
His words are colloquial, concrete and direct in effect.
③
His humor is remarkable and characterized by puns, straight-faced exaggeration, repetition and anti-climax.
④
His style of language had exerted rather deep influence on the contemporary writers.
查看完整题目与答案
【判断题】
The Transcendentalist group includes two of the most significant writers America has produced so far, Emerson and Henry David Thoreau.
①
正确
②
错误
查看完整题目与答案
【判断题】
At the Reason and Revolution Period, Americans were influenced by the European movement called Romanticism Movement.
①
正确
②
错误
查看完整题目与答案
【判断题】
In the novel Moby Dick, the rebellious struggle of Captain Ahab was thought to be against the white whale.
①
正确
②
错误
查看完整题目与答案
【判断题】
In William Cullen Bryant’s poem “Thanatopsis”, the title means view of death.
①
正确
②
错误
查看完整题目与答案
【单选题】
About the novel The Scarlet Letter, which of the following statements is NOT right?
①
Its very hard to say that it is a love story or a story of sin.
②
Its a highly symbolic story and the author is a master of symbolism.
③
Its mainly about the moral, emotional and psychological effects of the sin upon the main characters and the people in general.
④
In it the letter A takes the same symbolic meaning throughout the novel.
查看完整题目与答案