
For循环测试

Quiz
•
Computers
•
9th - 12th Grade
•
Hard

w x
FREE Resource
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
Similar Resources on Wayground
8 questions
A CH03 數據表示

Quiz
•
10th Grade
7 questions
西方美术史

Quiz
•
9th Grade
10 questions
認識電腦平台

Quiz
•
10th - 11th Grade
11 questions
C++程式

Quiz
•
11th Grade - University
10 questions
统考电脑上册(29/9)

Quiz
•
12th Grade
10 questions
交换机课堂测试

Quiz
•
12th Grade
5 questions
mBot Q&A2-選擇結構

Quiz
•
9th - 12th Grade
10 questions
2223_S4_ICT_T2_exam_exercise_11-20

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade