switch (i) { default: System.out.printIn(“Hello”); ) What are the two acceptable types for the variable i?()
第1题:
下列程序的运行结果为【 】。
include<iostream.h>
void main(void)
{int i=10;
switch(i)
{ case 9:i=i+1;
case 10:i=i+1;
case 11:i=i+1;
default:i=i+1;
}
cout<<i<<endl;
}
第2题:
有以下程序 main() { int i; for(i=0;i<3;i++) switch(i) { case 0: printf("%d",i); case 2: printf("%d",i); default: printf("%d",i); } } 程序运行后的输出结果是______。
A.22111
B.21021
C.122
D.12
第3题:
下列程序的输出结果是【 】。
include<iostream.h>
void main()
{
inta(5),b(6),i(0)1j(0);
switch(a)
{
case 5:switch(b)
{
case 5:i++;break;
case 6:j++;break;
defaun:i++;j++;
}
case 6:i++;
j++;
break;
default:i++;j++;
}
cout<<i<<","<<j<<endl;
}
第4题:
有以下程序 main() { int i; for(i=0;<3;i++) switch(i) { csse 1: printf("%d",i); case 2: printf("%d",i); default: printf("%d",i); } } 执行后输出结果是
A.11122
B.12
C.12020
D.120
第5题:
The network administrator cannot to switch 1 over a telnet session,although the hosts attached to switch 1 can ping the interface Fa0/0 of the router.Given the information in the graphic and assuming that the router and switch2 are configured properly,which of the following commands should be issued on switch 1 to correct this problem?()

A. Switch1(config)# i nterface fa0 /1 Switch1(config-if)# ip address 192.168.24.3.255.255.255.0
B. Switch1 (config)#interface fa0/1 Switch1 (config-if)# switchport mode trunk
C. Switch 1 (config)# i nterface fa0 /1 Switch1 (config-if)# duplex full Switch1 (config-if)# speed 100
D. Switch1 (config-if)# default-gateway 192.168.24.1
E. Switch1 (config)# line con 0 Switch1(config-line)# password cisco Switch1 (config-line)#login
第6题:
第7题:
下面的标记组中,作用不同的有()。
第8题:
an、en、ün、in各韵母中,a、e、ü、i都是韵腹,n是韵尾。
第9题:
How should TCP/IP be configured on the ent0 network adapter?()
第10题:
Byte
Long
Float
Double
Object
A and B
C and D
第11题:
Char
Byte
Float
Double
Object
第12题:
对
错
第13题:
A.Char
B.Byte
C.Float
D.Double
E.Object
第14题:
以下程序的输出结果是( )。 main { int i; for(i=0;i<3;i++) switch(i){case 0:printf("%d",i); case 2:printf("%d",i); default:printf("%d",i); } }
A.000102
B.000020
C.000122
D.000111
第15题:
有以下程序 #include<stdi0.h> main( ) {int a[]={2,3,5,4),i; for(i=0;i<4;i++) switch(i%2) {case 0:switch(a[i]%2) {case 0:a[i]++;break; case l:a[i]--; }break; case1:a[i]=0; } for(i=0;i<4;i++)printf("%d",a[i]);printf("\n"); } 程序运行后的输出结果是( )。
A.3344
B.2050
C.3040
D.0304
第16题:
以下程序的输出结果是( )。
main()
{ int i;
for(i=0;i<3;i++)
switch(i)
{ case 0:printf("%d",i);
case 2:printf("%d",i);
default:printf("%d",i); }
}
A.000102
B.000020
C.000122
D.000111
第17题:
#include
main()
{ char str[ ]=“The C program”,c;
int i;
for(i=2;(c=str[i])!=‘\0’;i++)
{ switch(c)
{ case ‘g’: ++i; break;
case ‘o’: continue;
default: printf(“%c”,c); continue;
}
printf(“*”);
}
printf(“\n”);
}
第18题:
SWITCH变流器中查看系统软件版本的面板参数是()
第19题:
switch (i) { default: System.out.printIn(“Hello”); } What is the acceptable type for the variable i?()
第20题:
Mid(“I am a student.”,9,2)的返回值是什么?()
第21题:
下面的标记组中,作用相同的有()。
第22题:
〈en〉〈/en〉和〈I〉〈/I〉
全部都是
〈I〉〈/I〉和〈Cite〉〈/Cite〉
〈strong〉〈/strong〉和〈B〉〈/B〉
〈p〉和〈Br〉
第23题:
mktcpip -h hostname -a 9.47.53.x -m 255.255.255.64 -i en0 -g 9.3.230.1
ifconfig en0 netmask 255.255.255.64
chdev -l en0 -a netmask=255.255.255.192
ifconfig en0 netmask 0xffffffc0