首页/ 题库 / [单选题]

1)#include < ios的答案

1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers: ";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}

执行第15行时,若输入“2空格3回车”,则变量a的值是:()

单选题
2021-12-23 12:42
A、A.2
B、2.0000000000000000
C、3
D、3.0000000000000000
查看答案

正确答案
B

试题解析
变量a的类型是双精度浮点型,所以若输入“2空格3回车”后,变量a在内存中的值实际是2.0000000000000000。

感兴趣题目
The desirable properties or a marine fuel oil should include_______.

有如下程序:
START: MOV BL,67H
MOV AL,BL
MOV CL,4
SHR AL,CL
MOV BH,AL
OR BH,30H
MOV AL,BL
AND AL,OFH
MOV BL,AL
OR BL,30H
INT 3
运行上面程序后,BH=(),BL=()

阅读程序,说明程序执行后BH,BL,AL,CL的值;
MOV BL, 72H
MOV AL, BL
MOV CL, 4
SHR BL, CL
OR BL, 30H
MOV BH, BL
AND AL, OFH
OR AL, 30H
MOV BL, AL
INT 3
BH=(),BL=(),AL=(),CL=()

下列()说法是正确的。
(1)多媒体技术促进了通信、娱乐和计算机的融合
(2)多媒体技术可用来制作VCD及影视音响
(3)多媒体技术极大地改善了人——机界面
(4)多媒体技术是虚拟现实技术的基础

已知AX=0BBCCH,CF=1,以下三条指令执行后,AX中内容是:()
OR AX,3
CLC
RCL AX,1

Project selection methods involve measuring value or attractiveness to the project owner or sponsor and may include other organizational decision criteria ()is not a project selection method.

Project selection methods involve measuring value or attractiveness to the project owner or sponsor and may include other organizational decision criteria. ( )is not a project selection method.

设初值AX=6264H,CX=0004H,在执行下列程序段后AX=()
AND AX, AX
JZ DONE
SHL CX, 1
ROR AX, CL
DONE: OR AX, 1234H

执行完下列程序段后,AX=()
MOV DX,8F70H
MOV AX,54EAH
OR AX,DX
AND AX,DX
NOT AX
XOR AX,DX
ROR AX, 1

Fire prevention during welding or burning aboard any vessel should include ().
Project selection methods involve measuring value or attractiveness to the project owner or sponsor and may include other organizational decision criteria ()is not a project selection method.
下面程序错误的语句是 ①#include < iostream.h> ②void main( 0 ③{ ④ int * p = new int[1] ; ⑤ p =9; ⑥ cout <<*p <<end1; ⑦ delete [ ] p; ⑧ }
相关题目

You can _____ some bottles of wine, or some chocolates, or a bunch of flowers.

A campus emergency ______ occur at any time of the day or night, weekend, or holiday, with little or no warning.

1)#include
2)usingnamespacestd;
3)intmain()
4){
5)inta,b,result;
6)cout<<"pleaseinputtwonumbers: ";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis"<<><>
10)} 

程序执行到第8行时,假设此时输入“3,5”再单击回车键,则a的值是:()

1)#include
2)usingnamespacestd;
3)intmain()
4){
5)inta,b,result;
6)cout<<"pleaseinputtwonumbers: ";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis"<<><>
10)} 

程序第8行中有几种操作符:()

1)#include
2)usingnamespacestd;
3)intmain()
4){
5)inta,b,result;
6)cout<<"pleaseinputtwonumbers: ";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis"<<><>
10)} 

若在第7行时输入“4空格3单击回车”,则程序第8行执行完后,result的值是:()

1)#include
2)usingnamespacestd;
3)intmain()
4){
5)inta,b,result;
6)cout<<"pleaseinputtwonumbers: ";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis"<<><>
10)} 

若在第7行时输入“4空格3单击回车”,则第9行的输出结果是:()

1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers: ";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}

执行第15行时,若输入“2空格3回车”,则变量a的值是:()

1)#include
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers: ";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis<><><><>
" << result << endl;
10)} <><><>

程序的入口是第几行:()

执行以下指令后:
MOV AL,2BH
OR AL,0FH
AL的内容为:()

1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers: ";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}

执行完第14行后,命令提示符窗口中光标的位置在:()

一项病例对照研究数据如下,其OR值为()

1)#include
2)usingnamespacestd;
3)intmain()
4){
5)inta,b,result;
6)cout<<"pleaseinputtwonumbers: ";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis"<<><>
10)} 

程序执行第10行时,系统回收几个变量的内存空间:()

1)#include
2)usingnamespacestd;
3)intmain()
4){
5)inta,b,result;
6)cout<<"pleaseinputtwonumbers: ";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis"<<><>
10)} 

第3行的main()函数返回值的类型是:()

执行以下指令后:
MOV AL,56H
OR AL,0FH
AL的内容为:()

PDM includes four types of dependencies or precedence relationships:().The completion ofthe successor activity depends upon the initiation of the predecessor activity.

请指出以下各指令的源、目的操作数所使用的寻址方式。
(1)MOV SI,2100H
(2)SBB DISP[BX],7
(3)AND [DI],AX
(4)OR AX,[609EH]
(5)MOV [BX+DI+30H],CX
(6)PUSH ES:[BP]
(7)CALL DISP[DI]

1)#include
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers: ";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis<><><><>
" << result << endl;
10)} <><><>

程序执行完第5行后,光标在什么位置:()

1)#include
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers: ";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis<><><><>
" << result << endl;
10)} <><><>

程序第5行中,” ”的含义是:()

1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers: ";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}

执行第10行时,系统会回收几个变量:()

1)#include < iostream >
2)#include < cmath >
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout <<" input two numbers: ";
15)cin >> a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}

执行第15行时,若输入“8空格9回车”,则执行完第9行后返回的值是:()
广告位招租WX:84302438

免费的网站请分享给朋友吧