Conditional Operators

Conditional Operators

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

Parcial 2 - Robótica

Parcial 2 - Robótica

11th Grade

10 Qs

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

Chapter 6 Part 2 - 4

Chapter 6 Part 2 - 4

11th - 12th Grade

11 Qs

ICT S120 (Prelim Review)

ICT S120 (Prelim Review)

11th Grade

15 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

11th Grade

10 Qs

Conditional Operators

Conditional Operators

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Ms. Janik

Used 17+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?