网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
已知pi=3.1415926,执行?ROUND(pi,3)的结果为()。
- A、3.141
- B、3.142
- C、3.140
- D、3.000
参考答案
更多 “已知pi=3.1415926,执行?ROUND(pi,3)的结果为()。A、3.141B、3.142C、3.140D、3.000” 相关考题
考题
若有语句int*p=newint[5];int*pi;则以下语句中,执行时会造成delete[]p语句的执行出错的是()。
A、(*p)++;B、p++;C、pi=p;D、pi=p+3;
考题
以下程序的执行结果是【】。 include define PI____3.14159 const int R=10; void main()
以下程序的执行结果是【 】。include<iostream>define PI____3.14159const int R=10;void main(){double a,b;ac2*R*PI;b=R*R*PI;cout<<"a="<<a<<","<<"b="<<b<<endl;"}
考题
C++代码的错误在哪
#includeiostreamviod mian(){ const double pi=3.1415926; double radius; double areas; cout"input radius:"endl; cinradius; areas=pi*radius*radius; cout"the areas"radius"is"areas"\n"endl;}哪里有错啊,高手指教???
考题
以下程序的运行结果是 ( ) definePI 3.141593 include main( ) { printf("P
以下程序的运行结果是 ( ) #definePI 3.141593 #include<stdio.h> main( ) { printf("PI=%fn",PI); }A.3.141593=3.141593B.PI=3.141593C.3.141593=PID.程序有误,无结果
考题
程序运行结果为______。#define R 3.0#define PI 3.1415926#define L 2*PI*R#define S PI*R*Rmain(){ printf("L=%f S=%f\n",L,S);}A.L=18.849556 S=28.274333B.18.849556=18.849556 28.274333=28.274333C.L=18.849556 28.274333=28.274333D.18.849556=18.849556 S=28.274333
考题
请把下面程序补充完整,正确答案是( )。 main( ) { float radius,length,area,volume; printf("Input a radius:"); Scanf("%f",radius); length=2.0*PI*radius; /*引用无参宏求周长*/area=PI*radius*redius; /*引用无参宏求而积*/ volume=PI*radius*radius*radius*3/4; /*引用无参宏求体积*/ printf("length=%.2f,area=%.2f,volume=%.2f\n",length,area,volume); }A.PI=3.1415926B.Const PI=3.14159C.#define PI3.1415926D.Float PI=3.14159
考题
当执行下列宏定义命令后,S的值为 ( ) # defineR3.0 # define PI 3.1415926 # define L2 * PI * R # define S PI * R * RA.3.1415926B.18.849556C.3D.28.2743334
考题
Float pi = new Float(3.14f); if(pi3) { System.out.print(”pi is bigger than 3. “); } else { System.out.print(”pi is not bigger than 3. “); } finally { System.out.println(”Have a nice day.”); } What is the result?() A、 Compilation fails.B、 pi is bigger than 3.C、 An exception occurs at runtime.D、 pi is bigger than 3. Have a nice day.E、 pi is not bigger than 3. Have a nice day.
考题
指出用电泳技术分离下列物质,pH是多少时最合适? (1)血清清蛋白(pI=4.9)和血红蛋白(pI=6.8) (2)肌红蛋白(pI=7.0)和胰凝乳蛋白质(pI=9.5) (3)卵清蛋白(pI=4.6)、脲酶(pI=5.0)
考题
System.out.format(”Pi is approximately %d.”, Math.PI); What is the result?() A、 Compilation fails.B、 Pi is approximately 3.C、 Pi is approximately 3.141593.D、 An exception is thrown at runtime.
考题
单选题Float pi = new Float(3.14f); if(pi3) { System.out.print(”pi is bigger than 3. “); } else { System.out.print(”pi is not bigger than 3. “); } finally { System.out.println(”Have a nice day.”); } What is the result?()A
Compilation fails.B
pi is bigger than 3.C
An exception occurs at runtime.D
pi is bigger than 3. Have a nice day.E
pi is not bigger than 3. Have a nice day.
考题
单选题已知pi=3.1415926,执行?ROUND(pi,3)的结果为()。A
3.141B
3.142C
3.140D
3.000
热门标签
最新试卷