更多“执行下列C++语句:if (1 < 0 || false) cout << “Hello world!”; 显示器上将显示()。”相关的问题
第1题
执行Java语句“if (0 < 1 ) System.out.print(“Hello world!”);”显示器上将显示( )。
A、Hello world!
B、Hello,world!
C、"Hello world!"
D、什么都没显示
点击查看答案
第2题
执行下列C++语句:double x = 0; if ( x ) cout << 1 / x; else cout << x; 显示器上将显示( )。
点击查看答案
第3题
执行下列C++语句:char a[ ] = “HelloWorld”; cout << a+5; 显示器将显示( )。
A、“HelloWorld”
B、HelloWorld
C、Hello
D、World
点击查看答案
第4题
执行下列C++语句:char a[ ] = “Hello\0World”; cout << a; 显示器将显示( )。
A、“Hello\0World”
B、Hello\0World
C、Hello
D、World
点击查看答案
第5题
执行下列C++语句: int x = 15; if (x%2 == 0) cout << x/2; else cout << x/2 + 1; 显示器上将显示( )。
点击查看答案
第6题
执行下列C++语句:int x = 0; while (x < 3) { cout << “*”; x++; } 显示器将显示( )。
A、*
B、**
C、***
D、******......,持续显示星号
点击查看答案
第7题
执行下列C++语句:typedef char Name[5]; Name x; cout << sizeof( x ); 执行结束后,显示器将显示( )。
点击查看答案
第8题
执行下列语句:int x = 5, y = 10; cout << x << y; 则显示器将显示( )。
A、5 10
B、5, 10
C、10, 5
D、510
点击查看答案
第9题
计算机执行下列C++语句:int x = 1; { cout << x; int x = 2; { int x = 3; cout << x; } cout << x; } 执行结束后,显示器将显示( )。
点击查看答案
第10题
执行下列C++语句: int x = 2; switch ( x ) { case 1: cout << “One”; break; case 2: cout << “Two”; break; case 3: cout << “Three”; break; default: cout << “Error”; break; } 显示器上将显示( )。
点击查看答案