
计算机程序设计第三四章
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
zaky zhang
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
设a、b和c都是int型变量,且a=3,b=0,c=5,则以下值为0的表达式是___
'a'&&'b'
a&&b||c
a&&b&&c
a||b&&c
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在嵌套使用if语句时,C语言规定else总是___
和之前与其具有相同缩进位置的if配对
和之前与其最近的if配对
和之前与其最近不带else的if配对
和之前的第一个if配对
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下程序运行后的输出结果是___
main()
{
int a=0,b=0;
a=10;
b=20;
printf("a+b=%d\n",a+b);
}
a+b=10
a+b=30
30
出错
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下程序运行后的输出结果是___。
main()
{
double d=3.2;
int x,y;
x=1.2;
y=(x+3.8)/5.0;
printf("%d\n",d*y);
}
3
3.2
0
3.07
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下程序运行后的输出结果是___。
main()
{ unsigned short a=65536; int b;
printf("%d\n",b=a);
}
65536
0
1
-1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
若要求在if后一对圆括号中表示a不等于0的关系,则能正确表示这一关系的表达式为___。
a<>0
!a
a=0
a
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列叙述中正确的是___。
break语句只能用于switch语句
在switch语句中必须使用default
break语句必须与switch语句中的case配对使用
在switch语句中不一定使用break语句
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
ARRAYS AND FUNCTIONS
Quiz
•
University
10 questions
Chương trình máy tính và dữ liệu
Quiz
•
University
15 questions
Round 2 Debug-The-Code
Quiz
•
University
10 questions
Python Quiz Techno India
Quiz
•
University
10 questions
Structure in C
Quiz
•
University
10 questions
DS Quiz1
Quiz
•
University
15 questions
Python Programming Intermediate-1
Quiz
•
University
10 questions
AP2 PROCESSING
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
