阅读以下程序,填写运行结果()。dic={'a':2,'b':1,'c':3} for i in di
阅读以下程序,填写运行结果()。 dic={'a':2,'b':1,'c':3} for i in dic.values(): print(i,end='')#此处''为空字符串
阅读以下程序,填写运行结果()。 dic={'a':2,'b':1,'c':3} for i in dic.values(): print(i,end='')#此处''为空字符串
第1题
第2题
函数fun的功能是:根据以下公式求p的值,结果由函数值返回。m与n为两个正数且要求m>n。
例如:m=12,n=8时,运行结果应该是495.000000。请在题目的空白处填写适当的程序语句,将该程序补充完整。 include<conio.h> include<stdio.h) float fun(int m,int n) { int i; double p=1.0; for(i=1;i<=m;i++)【 】; for(i=1;i<=n;i++)【 】; for(i=1;i<=m-n;i++)p=p/i; return P;} main() { clrscr(); printf("p=%f\n",fun(12,8));}
第3题
阅读以下程序,输出结果为_________。 class D{ public static void main (String args[]){ int d=21; Dec dec=new Dec(); dec. decrement (d): System.out.println(d); } } class Dec{ public void decrement(int decMe){ decMe=decMe-1: } }
第4题
A.x+y+z=48
B.x+y+z=35
C.x+z=35
D.不确定
第5题
第6题
第7题
(1)为这个项目设计的一个阅读理解测验
(2)为这个项目设计的一个阅读速度测验
(3)他们下一次心理学导论的成绩
用这个程序训练的学生在阅读理解速度测验和阅读速度的成绩明显的好于用假程序训练的学生。在两组学生的心理学测验的成绩上没有显著差异。从这些结果中,你能得出什么结论?你是否认为在心理学考试结果上获得的零结果是有问题的?请说明你的理由。
第8题
请在以下程序第一行的下划线处填写适当内容,使程序能正确运行。 【 】 (double, double); main() { double x, y; scanf("% lf % lf", &x, &y); printf("% 1f\n", max(x, y)); } double max(double a, double b) { return(a>b? a:b); }
第9题
第10题
以下程序的运行结果一共有()行。 for i in range(1,10): for j in range(1,10): print("{}*{}={}".format(i,j,i*j))