[单选题]

下列程序执行后,其输出结果为( )。

A. 1 1 1 4 1

B. 1 2 3 4 1

C. 1 2 1 4 1

D. 1 1 1 4 1

参考答案与解析:

相关试题

执行下列程序语句后,输出结果为()。#ineludeusing namespac

[单选题]执行下列程序语句后,输出结果为()。ineludeusing namespace std;int m=5;int main(){i执行下列程序语句后,输出结果为( )。 #inelude<iostream> using namespace std; int m=5; int main() { int m=3; m++; ::m++; cout<<m<<end1; return 0; }A.3B.4C.5D.6

  • 查看答案
  • 执行下列程序后,输出结果为()。public class Test {publi

    [单选题]执行下列程序后,输出结果为( )。 public class Test { public static void main (String[] args) { StringBuffer sb = new StringBuffer("北京 2008" ); System. out. println ("length =" + sb. length ( ) ); } }A.length = 8B.length = 10C.length = 6D.length = 20

  • 查看答案
  • 执行下列程序后,鼠标单击窗体,输出结果为

    [单选题]执行下列程序后,鼠标单击窗体,输出结果为A.DownUpCliekB.CliekDownUpC.DownCliekUpD.UpDownClick

  • 查看答案
  • 当下列程序执行时,其输出结果是()。

    [单选题]当下列程序执行时,其输出结果是()。A . 2kB . 7kC . -7kD . -3k

  • 查看答案
  • 阅读下面程序,则执行后的输出结果为( )

    [单选题]阅读下面程序,则执行后的输出结果为( )

  • 查看答案
  • 下面程序执行后的输出结果为()。publicclassfun{publicsta

    [单选题]下面程序执行后的输出结果为( )。 public class fun { public static void main(String args[]) { String greets="How are you!"; String s=greets.substring(0,3); System.out.println(S); } }A.HowB.are.C.youD.how ate you!

  • 查看答案
  • 执行以下程序后的输出结果为( )。#includeclass Sample{in

    [单选题]执行以下程序后的输出结果为( )。includeclass Sample{int x, y;public:Sample() {执行以下程序后的输出结果为( )。#include<iostream. b>class Sample{ int x, y; public: Sample() { x=y=0;} Sample(int a, int b) {x=a; y=b; } void disp () { cout<<"x="<<x<<"y="<<y<<end1; }};void main(){

  • 查看答案
  • 执行以下程序后的输出结果为 ( )。#includeUsing namespac

    [单选题]执行以下程序后的输出结果为 ( )。includeUsing namespace std;void fun(int x, int y执行以下程序后的输出结果为 ( )。#include<iostream>Using namespace std;void fun(int x, int y, int *cp, int *dp) {*cp=x+ y; 2*dp=x- y;}void maia() {int a, b, c, d; a=30; b=50; fun(a, b, &c, &d

  • 查看答案
  • 下列程序段执行后输出的结果是()

    [单选题]下列程序段执行后输出的结果是()A . -2B . -1C . 0D . 1

  • 查看答案
  • 下列程序段执行后输出的结果是( )。

    [单选题]下列程序段执行后输出的结果是( )。A. 90B. 60C. 40D. 10

  • 查看答案
  • 下列程序执行后,其输出结果为( )。