![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
在计算现浇混凝土梁的梁长时()。
A.梁与柱连接时,梁长算至柱侧面
B.梁与柱连接时,梁长算至柱中心
C.主梁与次梁连接时,主梁算至次梁侧面
D.主梁与次梁连接时,次梁算至主梁侧面
E.梁与柱连接时,梁长应通长计算
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)
A.梁与柱连接时,梁长算至柱侧面
B.梁与柱连接时,梁长算至柱中心
C.主梁与次梁连接时,主梁算至次梁侧面
D.主梁与次梁连接时,次梁算至主梁侧面
E.梁与柱连接时,梁长应通长计算
第1题
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
源程序文件代码清单如下:
public class DoWhileLoop
{
public static void main(________)
{
int n=10;
long result=1;
do
{
_______________
}
______________
System.out.println("10的阶乘为: "+result);
}
}
第2题
下面是关于字符界面基本输入输出的程序,请在程序的每条横线处填写一个语句,使程序的功能完整。
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
______________________
public class SimpleCharInOut{
public static void main(String args[]){
char c=" ";
System.out.println("Enter a character please: ");
try{
____________________//接受用户键盘输入的字符并保存在变量c中
}
catch(________________________e){}
System.out.println("You've entered character "+c);
}
}
第3题
下面程序执行后,输出结果为:true请在程序的每条横线处填写一个语句,使程序的功能完整。
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
public class TestStringCompare{
{public static void main(String ____________________ args)
{char charl[]={'t','e','s','t'};
char char2[]={'t','e','s','t','1'};
String str1=new String(___________________);
String str2=new String(char2,0,4);
System.out.println(__________________________);
}
}
第4题
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
____________________
public class TestKeyBoardInPut
{public static void main(String[] args)
{String yourname=JOptionPane. ____________________ ("What is your name?");
System.out.println("Hello"+yourname);
____________________.exit(0);
}
}
第5题
下列程序的功能是计算l0的阶乘,程序空白处应该填写的语句是
A.k<10
B.k>10
C.k<=10
D.k>=10
第6题
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
public class SumAndAve{
public static void main(String args[]){
int count = 0, sum = 0, ave= 0;
for (int i = 1; i<= 100; ______)
if(______)
continue;
else
{
______
sum=sum+i;
}
ave= sum/count;
System.out.println("sum="+sum);
System.out.println("ave="+ave);
}
}
第7题
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
______________MyInterface
{
public static int NUM=100;
public abstract void print();
}
public class ClassName___________MyInterface
{
public void print()
{
System.out.println(NUM);
}
public static void main(String args[])
{
__________________________
obj .print();
}
}
第8题
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填人适当的语句。
public class printNo3and5{
void print()
{
int n ;
for(n=100 ;n<=300 ;n++){
if(n%3==0)
__________
System.out.println(n);
}
}
public static__________main(String args[])
{
printNo3and5 bj=new printN03and5();
__________
}
}
第9题
最大真约数是指一个数的(除它本身之外)最大约数。下面的程序是求一个数的最大真约数,请在程序的每条横线处填写一个语句,使程序的功能完整(例如:100的最大真约数是50)。
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
public class MaxDiv{
public static void main(String args[ ]){
int a=100;
______________
while(i>0)
{
if(____________________)
_____________________
i--;
}
System. out. print in (a+"的最大真约数为: "+i );
}
}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!