我对循环语句有几个问题 [英] I have few questions about looping statements

查看:170
本文介绍了我对循环语句有几个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只有几个选择题,我需要他们的回答:))
如果知道迭代次数,哪个循环语句是最好的?
1-对于
2- While
3-做/当
4-所有循环过程都要求迭代是已知的

哪个循环语句应该知道迭代次数?
1-对于
2- While
3-做/当
4-所有循环过程都要求迭代是已知的

哪个尺寸更大?
1-外循环
2-内环
3-它们都具有相同的大小
4-我们不能不知道尺寸

如果继续使用,它将跳到哪里?
1至循环开头
2至下一次迭代
3至循环结束
4--到电流回路的尽头

谢谢

我尝试过的事情:

我查看了我的教科书,但没有解释

I have few multiple choice questions I need their answers :))
Which looping statement is best if the number of iterations is known?
1- For
2- While
3- Do / While
4-All looping processes require that the iterations be known

Which looping statement should have the number of iterations known?
1- For
2- While
3- Do / While
4-All looping processes require that the iterations be known

Which have the bigger size?
1-Outer loop
2-Inner loop
3-They both have the Same size
4-We can’t know without see the size

If you use continue, To where it will jump?
1-to the beginning of the loop
2-to the next iteration
3-to the end of the loop
4- -to the end of current loop

Thank you

What I have tried:

I have looked into my textbook but it didn''t explain

推荐答案

我们不做您的作业:它的设置是有原因的.在这里,您可以考虑自己被告知的内容,并尝试理解它.也可以在那里帮助您的导师识别您的弱点,并将更多的注意力放在补救措施上.

自己尝试,您可能会发现它并不像您想的那么难!

如果您遇到特定问题,请询问此问题,我们将尽最大努力为您提供帮助.但是我们不会为您做所有这一切!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren''t going to do it all for you!


请参见 Java™教程 [^ ]


报价:

我真的试图解决自己的问题

I really tried to solved my self


这不是要解决的问题,这里的问题是测试您的知识的方法.
因此,您的想法是研究这些结构,尝试使用非常短的代码段可以帮助您了解正在执行的操作.
您有很多可用的材料:您的课程,书籍,教程...

你不能通过有人为你学习来学习.
您永远不会得到其他人的训练而赢得比赛.


This is not something to solve, the questions are here to test your knowledge.
So the idea is that you study those structures, experimenting with very short pieces of code may help to understand what is doing what.
You have a lot of material available: your lessons, books, tutorials...

You can''t learn by having someone studying for you.
You will never win a race by having someone else training for you.

报价:

我已经在互联网上搜索,但没有帮助

I have searched in the internet, it didn''t help


您可能不会找到这些问题的直接答案,因为答案暗示您已了解循环结构.

我们不做您的家庭作业.
家庭作业并非旨在测试您乞求他人完成工作的技能,而是可以让您思考并帮助您的老师检查您对所修课程的理解以及在应用这些课程时遇到的问题.
您的任何失败都会帮助您的老师发现您的弱点并采取补救措施.


You will probably not find direct answers to those questions, because the answers imply that you understand the looping structures.

We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.


这篇关于我对循环语句有几个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆