C++ 算術運算子

C++ 算術運算子

11th Grade

10 Qs

quiz-placeholder

Similar activities

Robotics Quiz

Robotics Quiz

1st - 12th Grade

8 Qs

ÔN BẢNG NGUYÊN HÀM

ÔN BẢNG NGUYÊN HÀM

12th Grade

15 Qs

指数関数①

指数関数①

11th Grade

6 Qs

C++ Recursion

C++ Recursion

8th - 12th Grade

12 Qs

While Loops

While Loops

10th - 12th Grade

7 Qs

If-Else Statements in C++

If-Else Statements in C++

10th - 12th Grade

7 Qs

fundamento de C++ test1

fundamento de C++ test1

University

12 Qs

方程式①

方程式①

7th - 12th Grade

8 Qs

C++ 算術運算子

C++ 算術運算子

Assessment

Quiz

Mathematics

11th Grade

Hard

Created by

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?