Conditional Operators

Conditional Operators

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

Процедуры и функции

Процедуры и функции

10th Grade

11 Qs

11° Evaluación bimestral de informática

11° Evaluación bimestral de informática

11th Grade

15 Qs

Pemrograman Dasar

Pemrograman Dasar

10th Grade

10 Qs

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

RPMS - IPCRF by Jenelou John Israel

RPMS - IPCRF by Jenelou John Israel

12th Grade

10 Qs

Typography

Typography

11th Grade

10 Qs

Conditional Operators

Conditional Operators

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Ms. Janik

Used 17+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The first part of a conditional operator is __________.
True statement
False statement
Boolean Condition 
int main (void)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the difference between a conditional operator and a regular operator?
Conditionals have 3 arguments, others have 2.
Regular operators have 3 arguments, conditionals have 2. 

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The second part of a conditional operator is __________.
True statement
False statement
Boolean Condition 
int main (void)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the format for conditional operators? 
;
?  ;  :
?  :
:  ?  ;

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

True or False: The operator is written correctly?
int a, b;
a=10;
printf("Value of b is %d\n", (a == 1) ? 20: 30 );
True
False

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The third part of a conditional operator is __________.
True statement
False statement
Boolean Condition 
int main (void)

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of the following code:
a = 10; 
printf( "Value of b is %d\n", (a == 1) ? 20: 30 );
1
10
20
30

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?