For循环测试

For循环测试

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

CodeMonkey程式觀念測驗(琢思 201812078)

CodeMonkey程式觀念測驗(琢思 201812078)

3rd - 9th Grade

10 Qs

1819 S4 T1 Rev 3

1819 S4 T1 Rev 3

10th Grade

10 Qs

翻翻看APP

翻翻看APP

8th - 9th Grade

10 Qs

Python 輸入/變數/輸出

Python 輸入/變數/輸出

11th Grade

10 Qs

Sample Homework Quiz: Mandarin & English

Sample Homework Quiz: Mandarin & English

6th - 12th Grade

11 Qs

S13.4 电脑程式设计的概念

S13.4 电脑程式设计的概念

9th Grade

11 Qs

六碼筆劃輸入法

六碼筆劃輸入法

7th - 10th Grade

10 Qs

雲端從業人員Module 1 知識點檢查

雲端從業人員Module 1 知識點檢查

9th - 12th Grade

10 Qs

For循环测试

For循环测试

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

w x

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for语句的一般形式如下,若表达式2的值为“假”,则结束循环。

for (表达式1; 表达式2; 表达式3) 
    循环体语句 

T

F

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for语句的一般形式如下,若表达式2的值为“真”,则先执行循环体语句,再计算表达式3,然后继续循环。

for (表达式1; 表达式2; 表达式3) 
   循环体语句  

T

F

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

执行语句for(i=1;i<4;i++ );后变量i的值是( )。

3

5

4

不定

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

语句for(i=1,j=10;i<j;++i, j--);执行之后i,j的值均为5。

T

F

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

下列程序段的输出结果是()。

#include<stdio.h>
int main()
{
      for(int i = 1; i < 7; i ++) {
            if( i % 3 != 0) {
                  printf("#");
                  continue;
            }
            printf("*");
      }
      return 0;
}


#*#*#*

######


******

##*##*

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

下列程序段的输出结果是()。

int main(void) 
{
      for(int i = 1; i < 6; i ++) {
            if( i % 2 != 0) { 
                  printf("#");
                  continue;  
            }
      printf("*");     
      }
      printf("\n");    
     
      return 0;
}


#*#*#

#####

*****


*#*#*

7.

OPEN ENDED QUESTION

5 mins • 1 pt

求10以内的偶数的和

Evaluate responses using AI:

OFF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?