if test 202212

if test 202212

11th Grade

10 Qs

quiz-placeholder

Similar activities

CodeHS 2.11 If Statements

CodeHS 2.11 If Statements

9th - 12th Grade

10 Qs

ПР_X_CPP

ПР_X_CPP

9th - 12th Grade

11 Qs

C++ References

C++ References

6th - 12th Grade

12 Qs

BAHASA C++

BAHASA C++

11th Grade

10 Qs

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

Post Test C++

Post Test C++

9th - 12th Grade

10 Qs

ASK T2 3.1.3

ASK T2 3.1.3

10th - 12th Grade

14 Qs

ifelseif

ifelseif

11th Grade

10 Qs

if test 202212

if test 202212

Assessment

Quiz

Computers

11th Grade

Medium

Created by

邱建誌 邱建誌

Used 17+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int a,b,c;

a=5;

b=6;

c=7;

if(a==5)

{ cout << "A"; }

if(b==6)

{ cout << "B"; }

if(c>5)

{ cout << "C"; }

ABC

BC

A

AB

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a=5;

b=6;

c=7;

if(a==5)

{ cout << "A"; }

if(b==6)

{ cout << "B"; }

if(c>5)

{ cout << "C"; }

else

{ cout << "D"; }

ABCD

CD

AB

ABC

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a=5;

b=6;

c=7;

if(a==5)

{ cout << "A"; }

if(b==6)

{ cout << "B"; }

if(c<5)

{ cout << "C"; }

else

{ cout << "D"; }

ABCD

CD

ABC

ABD

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a=5;

b=6;

c=7;

if(a==5)

{ cout << "A"; }

else if(b==6)

{ cout << "B"; }

if(c<5)

{ cout << "C"; }

else

{ cout << "D"; }

ABCD

AD

BC

AC

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列哪一種永遠不會執行到?

if(a%2==0)

{a=a+2;}

else if(a%4==0)

{a=a+4;}

else

{a=a+1;}

a=a+2;

a=a+4;

a=a+1;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

哪一個if組合是正確的

if

else

else if

if

else if

else if

else if

else if

else if

else if

else

else

if

if

else

else

else

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a=5;

b=6;

c=7;

if(a>5)

{ cout << "A"; }

else if(b==6)

{ cout << "B"; }

else if(c<5)

{ cout << "C"; }

else

{ cout << "D"; }

ABCD

A

B

C

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers