题目内容

下面有关for循环的正确描述是( )

A. for循环只能用于循环次数已经确定的情况
B. for循环是先执行循环体语句,后判定表达式
C. 在for循环中,不能用break语句跳出循环体
D. for循环体语句中,可以包含多条语句,但要用大括号{ }括起来

查看答案
更多问题

以下程序运行结果是( )Void main(){ int x=2 , y= -1 , z=2 ;if(x

A. 3
B. 2
C. 1
D. 0

C语言中while和do-while循环的主要区别是( ).

A. do-while的循环体至少无条件执行一次
B. while的循环控制条件比的循环控制条件严格
C. do-while允许从外部转到循环体内
D. do-while的循环体不能是复合语句

以下能正确计算1*2*3*……*10的程序是( )

A. do{i=1;s=1;s=s*i;i++;}while(i<=10);
B. do{i=1;s=0;s=s*i;i++;}while(i<=10);
C. i=1;s=1;do{s=s*i;i++;}while(i<=10);
D. i=1;s=0;do{s=s*i; i++; }while(i<=10);

Fill in the blanks with the following words.packsuitcaseflightsecurityterminalkeepsakex-ray screeningairport mall1. Will you keep your eye on my _________ while I go to get the tickets for us?2. We are leaving early tomorrow morning for the three-day hiking, so you’d better _________ tonight.3. I’ve bought several __________ for my family and friends while traveling in Guilin.4. All __________ to New York today are delayed due to the bad weather.5. There are two _______________ in this airport, one is for domestic flights and the other is for international ones.6. Your luggage will be put on the conveyer belt and checked through _________________.7. Many travelers prefer to buy keepsakes in the ______________, especially makes-ups.8. He showed his passport to the customs officer and then went through _______________, where officials checked that he was not carrying any weapons.

答案查题题库