更多"若定义#define PI 3.14159,则执行完下列程序后输出结果"的相关试题:
[填空题]若定义#define PI 3.14159,则执行完下列程序后输出结果是______。
#define PI 3.14159;printf("PI=%f",PI);
[填空题]若定义#define PI 3.14159,则执行完下列程序后输出结果是______。
#define PI 3.14159;printf("PI=%P",PI);
[填空题]若定义#define PI 3.14159,则执行完下列程序后输出结果是______。
#define PI 3.14159; printf("PI=%f",PI);
[填空题]以下程序的输出结果是 【11】 。
# define MCNA(m)2*m
# define MCNB(n, m)2*MCRA(n)+m
# define f(x)(x*x)
main( )
int i=2, j=3;
printf("% d/n", MCRB(j, MCRA(i)));
[单项选择]运行下面程序后,正确的输出结果是( )。
public class Sun
{
public static void main(String args[ ])
{
int x=6;
if(x>6)
System.out.println("x>6");
else
if(x<8)
System.out.println("x<8");
else
if(x==6)
System.out.println("x=6");
}
}
A) x<8x=6 B) x<8
A) x=6 D) x<8或x=6
[单项选择]运行下面程序后,正确的输出结果是 ______。Private Sub Command1_ Click( ) x = 6 if x >6 then Print "x>6": Else if x <8 then Print "x<8"; Else if x = 6 then Print "x=6": End if End if End ifEnd Sub
A. x<8 x=6
B. x<8
C. x=6
D. x<8或x=6
[单项选择]有如下事件程序,运行该程序后输出结果是______。
Private Sub Command33_Click( )
Dim x As Integer,y As Integer
x=1:y=0
Do Until y<=25
y=y+x*x
x=x+1
Loop
MsgBox"x="&x&", y="&y
End Sub
A. x=1,y=0
B. x=4,y=25
C. x=5,y=30
D. 输出其他结果
[单项选择]执行下面程序后输出的正确结果是
public class Test
public stoic void main (String args[])
byte x=3, y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);
A. 20.0, 1
B. 20.0, 1.0
C. 20,0
D. 20, 1.0
[单项选择]执行下面程序后输出的正确结果是
public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);
A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0
[单项选择]执行下面程序后输出的正确结果是
Public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(”,”);
System.out.print(x/y);
A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0
[单项选择]有下列程序段,单击命令按钮执行程序后,输出结果是( )。
Option Base 1
Private Sub Command1 Click( )
Dim x
x=Array(23,-5,17,38,-31,46,11,8,5,-4)
31=0
s2=0
For k=1 To 10
If(x(k)>0)Then
S1=S1+x(k)
Else
s2=s2+x(k)
End If
Next k
Y=s1/Abs(s2)
Print Y
End Sub
A. 148
B. 40
C. 40
D. 3.7
[单项选择]执行下面程序后输出的正确结果是( )。
public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);
A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0