
C Programing --- chapter 4---1
Quiz
•
Computers
•
University
•
Hard
劉雲輝 劉雲輝
Used 5+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
以下是一程式,輸入兩個整數a 及b,輸出a 除以b 的商及餘數。
請問程式中的空白處A要填入何程式碼?
int main(void)
{
int a=14, b=3;
printf("顯示兩數相除之商數:%d\n", a/b );
printf("顯示兩數相除之餘數:%d\n", A );
return 0;
}
a-b
a*b
a%b
b/a
2.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
1. 以下是輸入一整數,判斷是否為偶數的C程式碼片斷,
請問程式中的空白處A要填入何程式碼?
int main(void)
{
int a;
printf("整數:");
scanf("%d",&a);
if ( A )
printf("%d為偶數\n",a);
else
printf("%d為奇數\n",a);
return 0;
}
a/2=0
a%2=0
a/2==0
a%2==0
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
以下是C程式碼片斷,請問當輸入為32767時,螢幕顯示為何?
int num;
scanf("%d \n",&num);
num=(num/100)%10;
printf("%d\n", num);
3
2
7
6
4.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
以下是C程式碼片斷,請問螢幕顯示為何?
int main()
{
short int a = -5 ;
printf("%d\n",~a);
return 0;
}
5
-4
4
6
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
以下是C程式碼片斷,請問螢幕顯示為何?
short int a=3, b=2, c=5;
printf("%d\n",a<b||c!=a);
0
-1
1
10
6.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
x=7,則「x|10」的結果值為何?
(以十進位表示法表示)
7
10
14
15
7.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
y=7,則「y&14」的結果值為何?
(以十進位表示法表示)
6
7
14
15
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
13 questions
#include <\c>
Quiz
•
University
10 questions
2024 - Struktur Data Quiz 1
Quiz
•
University
10 questions
LOOPS IN C++
Quiz
•
10th Grade - University
10 questions
104-P-01: Delegates and lambdas
Quiz
•
University
10 questions
PYTHON BASICS PART 1
Quiz
•
University
11 questions
Recap Chapter 6, 7, 8
Quiz
•
University
6 questions
Luyện tập về NNLT
Quiz
•
University
10 questions
113逢甲資電系茶會Quizizz
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
