
计算机程序设计第五章

Quiz
•
Computers
•
University
•
Hard

zaky zhang
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下叙述正确的是___。
do-while语句构成的循环不能用其它语句构成的循环来代替
do-while语句构成的循环只能用break语句退出
用do-while语句构成的循环,在while后的表达式为非零时结束循环
用do-while语句构成的循环,在while后的表达式为零时结束循环
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下程序的执行结果是___。
main()
{ int x=23;
do{ printf("%d",x--); }while(!x);
}
321
23
不输出任何内容
陷入死循环
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
有以下程序段,输出结果是___。
int x=3;
do { printf("%d ",x-=2); }while(!(- -x));
1
3 0
1 -2
死循环
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下程序段,while循环执行的次数是___。
int k=0;
while(k=1) k++;
无限次
有语法错误
一次也不执行
执行1次
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列语句中,能正确输出26个英文字母的是___。
for(a='a';a<='z';printf("%c",++a));
for(a='a';a<='z';) printf("%c",a);
for(a='a';a<='z';printf("%c",a++));
for(a='a';a<='z';printf("%c",a));
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
对于下面的for循环语句,可以断定它执行___次循环。
for(x=0,y=0;(y!=67)&&(x<5);x++) printf("----");
无限
不定
5次
4次
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
当执行以下程序时,___。
int a=1;
do{ a=a*a; }while(!a);
循环体将执行1次
循环体将执行2次
循环体将执行无限次
系统将提示有语法错误
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
练习题目

Quiz
•
University
10 questions
计算机程序设计第一二章

Quiz
•
University
10 questions
排序测试

Quiz
•
University
10 questions
research method1

Quiz
•
University
10 questions
数据结构小测验

Quiz
•
University
8 questions
操作系统

Quiz
•
University
10 questions
数据库练习题

Quiz
•
University
10 questions
erp-採購-10

Quiz
•
University - Professi...
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University