更多“【填空题】以下程序的输出结果为()。 main() {pri…”相关的问题
第1题
【填空题】以下程序的输出结果为()。 main() {printf("*%f,%4.3f*n",3.14,3.1415); }
点击查看答案
第2题
【填空题】以下程序的输出结果为()。 main() {char c='x'; printf("c:dec=%d, oct=%o, hex=%x,ASCII=%cn",c,c,c,c); }
点击查看答案
第3题
【填空题】以下程序的输出结果为()。 main() {char c='x'; printf("c:dec=%d, oct=%o, hex=%x,ASCII=%cn",c,c,c,c); }
点击查看答案
第4题
【填空题】以下程序的输出结果为()。 main() {short i; i=-4; printf("ni:dec=%d, oct=%o, hex=%x,unsigned=%un",i,i,i,i); }
点击查看答案
第5题
若程序只有以下两行代码,则程序的执行结果为___________。 x = a + 10 print(x)
点击查看答案
第6题
以下程序运行结果是输出1↙2↙3↙,请完成程序填空题。 int i; for(【1】;i<4;【2】) 【3】.out.println(i);
点击查看答案
第7题
运行以下程序,输出结果为: lst=[1,2,3,4,5] for i in lst: i*=2 print(lst[3])
点击查看答案
第8题
编译运行以下程序后,关于输出结果的说明正确的是()。 public class Conditional{ public static void main(String args[ ]){ int x=4; System.out.println(“value is “+ ((x>4) ? 99.9:9)); } }
A.输出结果为:value is 99.9
B.输出结果为:value is 9
C.输出结果为:value is 9.0
D.编译错误
点击查看答案
第9题
运行以下程序,输出结果为: lst1=[1,2,3,4,5] lst2=[] for i in lst1: lst2.append(i) print(lst2[-1])
点击查看答案
第10题
运行以下程序,输出结果为: lst1=[70,80,93,88,90] lst2=[i for i in lst1 if i>90] print(lst2)
点击查看答案