执行以下代码后的输出结果是哪一个选项? my_list = [s.lower() for s in 'Life is short, you need Python.'.split(' ')] print('short' in my_list) print(my_list[5])
A.True python.
B.False python.
C.True Python
D.False Python
第1题:
(7)执行下列语句后,输出结果是。 s$="ABCDEFG" Print InStr(s$,"efg") Print LCase$(s$)
第2题:
以下语句的输出结果【 】。
S$= "China"
S$= "Shanghai"。
Print S$
第3题:
下列语句执行后的输出结果是______。 Wage=26 Print"工资"; Print Wage
A.工资□26
B.工资□□26
C.工资□26
D.工资□□26
第4题:
执行下面程序后输出的正确结果是( )。 public class Test{ public static void main(String args[]){ System.out.print(100%3); System.out.print(","); System.out.print(100%0); } }
A.1,1
B.1,1.0
C.1.0, l
D.1.0,1.0
第5题:
假设X的值是5,则执行以下语句时,可得到的输出结果是ABCDEF的Select Case语句是 ( )
A.Select Case X Case 10 To 1 Print“ABCDEF” End Select
B.Select Case X Case Is>15,Is<5 Print"ABCDEF" End Select
C.Selecl Case K Case Is>5,1,3,To 10 Print"ABCDEF" End Select
D.Select Case X Case 1,3,Is>5 Print"ABCDEF" End Select
第6题:
以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf("%d",(int)(a)) #define PRINT() PR(s) ;putchar('\n') main() { intx=2; PRINT1 (FUDGE(5)*x); }
A.11
B.12
C.13
D.15
第7题:
执行下列语句后,输出结果是______。
s$="ABCDEFG"
Print lnStr(s$,"efg")
Print LCase$(s$)
第8题:
若有以下程序段: int r=8; print("%d\n",r>>1): 输出结果是( )。
A.16
B.8
C.4
D.2
第9题:
执行以下语句后,输出的结果是 a$="Good" b$="Afternoon" Print a$+b$ Print a$&b $
A.Goodaftenoon GoodAfternoon
B.Good+ GoodAfternoon
C.Good+ Good&Afternoon
D.Good Good&
第10题:
给定以下JAVA代码,这段代码编译运行后输出的结果是( )
publicclassTest{
publicstaticintaMethod(inti)throwsException{
try{
returni/10;
}catch(Exceptionex){
thrownewException("exceptioninaaMothod");
}finally{
System.out.print("finally");
}
}
publicstaticvoidmain(String[]args){
try{
aMethod(0);
}catch(Exceptionex){
System.out.print("exceptioninmain");
}
System.out.print("finished");
}
}
A、finallyexceptioninmainfinished
B、exceptioninmainfinally
C、finallyfinished
D、finallyexceptioninmainfinished
第11题:
A.byte, short, int, long, float, double
B.boolean, byte, short, char, int, long, float, double
C.byte, short, char, int, long, float, double
D.byte, short, char
E.int, long, float, double
第12题:
On a domain controller, create a shared printer object in Active Directory for //TestKingSrv /laserprinter.
From a command prompt on Lisa's computer, run the Net Print //TestKingSrv /lasterprinter command.
On Lisa's computer, open the Services console and restart the Print Spooler service.
On Lisa's computer, open the Services console and connect to TestKingSrv. Restart the Print Spooler service.
第13题:
A、PYTHON
B、PYT
C、PYTH
D、PYTHON
第14题:
若有以下变量定义和函数调用语句: int a=25; print_value(&a); 则执行下面函数后正确的输出结果是( )。 void print_value(int*x) { cout<<++*x<<endl; }
A.23
B.24
C.25
D.26
第15题:
以下程序的执行结果是______
include<iostream.h>
include<iomanip.h>
void print(int n)
{
if(n!=0)
{
print(n-1);
for(int i=1;i<=n;i++=
cout<<setw(3)<<i;
cout<<endl;
}
}
void main()
{
print (4);
}
第16题:
编译和执行以下代码,输出结果是( )。 int i=1; switch (i) { case 0: System.out.print("zero,"); break; case 1: System.out.print("one,"); case 2: System.out.print("two,"); default: System.out.println("default"); }
A.one,
B.one,two,
C.one,two,default
D.default
第17题:
执行语句Print”25+32=”,25+32的输出结果是 【 】。
第18题:
执行以下语句后,输出的结果是 s$=“ABCDEFGHI” Print Mid$(s$,3,4) Print Len(s$)
A.ABCD 11
B.CDEF 11
C.EFGH 11
D.HIJK 11
第19题:
以下程序运行后,输出结果是______。#include<stdio.h>ss (char *s){ char *p=s; while(*.p)p++; return(p-s);}main(){ char *a="abded"; int i; i=ss((A); print ("%d\n",i);}
A.8
B.7
C.6
D.5
第20题:
●某处理器按照大端方式工作,以下C语言代码执行后的输出是(63) 。
char iArr[10]={0,1,2,3,4,5,6,7,8,9};
short tVal; short *pVal= NULL;
pVal= (short *)(iArr+2);
tVal= *pVal;
printf(“tVal= %#x\n”,tVal);
(63)
A.tVal=0x203
B.tVal=0x302
C.tVal=515
D.tVal= 770
第21题:
以下语句的输出结果是 a=Sqr(3) Print Format(a, "$$ # # # # . # # #")
A.$1.732
B.$S1.732
C.1732
D.$$0001.732
第22题:
执行下列语句后,输出结果为______。
s$="ABCDEFG"
Print InStr(s$,"efg")
Print LCase$(s$)
第23题:
12
13
15
11
第24题:
ilove
love
python
lovep