Search Header Logo

C++ 算術運算子

Authored by Ray Chou

Mathematics

11th Grade

Used 2+ times

C++ 算術運算子
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?