以下程序段的运行结果是:()。K=2.5*2/5*3/2WRITE(*,*)9/10,MOD(9,10),KEND
A.901.5
B.901
C.091
D.091.5
A.901.5
B.901
C.091
D.091.5
A.16
B.17
C.14
D.15
A.gae
B.有语法错
C.Language
D.ga
A.2
B.4
C.1
D.10
A.963
B.852
C.875421
D.741
阅读以下程序,给出运行结果。
classPerson{
Person(){
System.out.print("Thisisaperson.");
}
}
publicclassStudentextendsPerson{
Student(){
System.out.print("Thisisastudent");
}
publicstaticvoidmain(String[]args){
Studentstu=newStudent();
}
}
运行结果是:
A.0
B.3
C.2
D.1
有以下程序
#include
main()
{
int y=9 ;
for(; y>0 ; y--)
if(y%3==0 ) printf("%d" , --y) ;}
程序的运行结果是_____
阅读以下程序,填写运行结果()。dic={'a':[1,2,2,3],'b':[1,4,5,6,2],'c':[3,7,8,9]} for k,v in dic.items(): if v.count(2)==1: print(k)
写出以下程序的运行结果。public class Test2 {public static void main(String args[ ]){int i,j;int a[]={17,91,65,35,28};for (i = 0; i < a.length-1; i++ ) {int k = i;for(j = i; j < a.length; j++ )if (a[j]>a[k] )k = j;int temp =a[i];a[i] = a[k];a[k] = temp;}for (i =0; i<a.length; i++ )System.out.print(a[i]+" ");System.out.println();} }