更多"[单选题]语句System.out.println(1+2+'java"的相关试题:
[单选题]语句Print 5/5*5的输出结果是().
A.5
B.25
C.0
D.1
[单选题]执行下列语句后,输出的结果是( )。
#include
Using namespace std;
Int main()
{
int j;
int m[3][2]={10,20,30,40,50,60};
for(j=0;j<2;j++)
cout< return 0;
}
A. 10 30
B. 20 40
C. 50 40
D. 60 40
[单选题]执行下列语句后,程序的输出结果是( )。
#include
Using namespace std;
Int main( )
{
int n=10;
while(n>7){
n--;
cout< }
cout<}
A. 10,9,8
B. 9,8,7
C. 10,9,8,7
D. 9,8,7,6
[填空题]执行下列语句后,输出的结果是___()__。
#include
Using namespace std;
Int main(
{ int a=3,b=5;
float c=b/a;
cout << c << end1;
return 0;
}
[单选题]设正x、y均为整型变量,且x=10 y=3,则以下语句的输出结果是()。
printf("%d,%d\n",x--,--y);
A.10,3
B.9,3
C.9,2
D.10,2
[单选题]第56题 (1.0分)
语句Print 5/5*5的输出结果是().
A.5
B.25
C.0
D.1
[单选题]若int 类型占两个字节,则以下语句输出为( )
Int k=-1;
Printf("%d,%u\n",k,k);
A. -1,-1
B. -1,65536
C. -1,32768
D. -1,65535
[单选题]下列条件语句中,输出结果与其他语句不同的是
A. if ( a!=0 ) printf("%d\n", x); else printf("%d\n", y);
B. if ( a==0 ) printf("%d\n", y); else printf("%d\n", x);
C. if ( a==0 ) printf("%d\n", x); else printf("%d\n", y);
D. if ( a ) printf("%d\n", x); else printf("%d\n", y);
[单选题]若int类型占两个字节,则以下语句输出为()。
int k=-1;
printf("%d,%u\n",k,k);
A.-1,-1
B.-1,65536
C.-1,32768
D.-1,65535
[单选题]阅读下列Java语句
ObjectOutputStream out
new ObjectOutputStream {new_______("employee.dat")};
在下划线处,应填的正确选项是:
A.File
B.FileWriter
C.FileOutputStream
D.OutputStream
[单选题]设有声明语句:int a=1,b=0;则执行以下语句后输出() 。
switch (a)
{
case 1:
switch (b)
{
case 0: printf("**0**");break;
case 1: printf("**1**");break;
}
case 2: printf("**2**");break;
}
A.**0**
B.**0****2**
C.**0****1****2**
D.有语法错误
[单选题]Java 编译输出文件的后缀是:
A..exe
B..java
C..class
D..obj
[单选题]以下能正确输出字符a 的语句是
A. printf("%s", "a");
B. printf("%s", 'a');
C. printf("%c", "a");
D. printf("%d", 'a');
[单选题]执行如下语句,输出结果为( )
Char str[]="Beijing";
Cout << strlen(strcpy(str, "China"));
A. 5
B. 7
C. 8
D. 12
[单选题]下列Java语句从指定网址读取html文件,在下划线处应填上的选项是:
Reader in=new____(new URL(urlString).openStrream());
A.Reader
B.DataOutputStream
C.ByteArrayInputStream
D.InputStreamReader
[单选题]能对顺序文件进行输出的语句是().
A.Put
B.Get
C.Write
D.Read
[单选题]语句"Hello".equals("hello");的正确执行结果是:
A.TRUE
B.FALSE
C.0
D.1
[单选题]下列语句将输出字符‘*’的个数为( )。
Int n=100;
While(1)
{
n--;
if(n==0) break;
cout << ’*’;
}
A. 101
B. 100
C. 99
D. 98