下列C++程式輸出為何?
int a=5,b=8;
b--;
a=a+b;
cout << a;
C++ 算術運算子
Quiz
•
Mathematics
•
11th Grade
•
Hard
Ray Chou
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列C++程式輸出為何?
int a=5,b=8;
b--;
a=a+b;
cout << a;
13
8
7
12
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列C++程式輸出為何?
int x=10,y=15;
y+=2;
x=x-y;
cout << x;
-5
5
10
15
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列C++程式輸出為何?
int p=3,q=4;
p*=q;
cout << p;
12
7
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列C++程式輸出為何?
int m=6,n=2;
m=m/n;
cout << m;
3
2
4
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列C++程式輸出為何?
int a=7,b=3;
a=a%b;
cout << a;
1
0
3
7
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列C++程式輸出為何?
int x=5,y=10;
y-=x;
cout << y;
5
10
15
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列C++程式輸出為何?
int p=8,q=2;
p/=q;
cout << p;
4
2
8
16
10 questions
方程式③
Quiz
•
7th - 12th Grade
15 questions
复习:四年级数学坐标
Quiz
•
1st - 12th Grade
10 questions
B, C y C++
Quiz
•
University - Professi...
10 questions
P6 圓周
Quiz
•
11th Grade
13 questions
Unit 6 Assignment 6-4
Quiz
•
9th - 11th Grade
10 questions
初中二数学线上考试
Quiz
•
1st - 12th Grade
8 questions
2次不等式を極める③
Quiz
•
10th - 12th Grade
10 questions
Latihan Soal UN Matematika
Quiz
•
12th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade