Conditional Operators

Conditional Operators

10th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Pre-Assessment: ICT 10 Orientation Day

Pre-Assessment: ICT 10 Orientation Day

10th Grade

10 Qs

Kuis Software

Kuis Software

10th - 12th Grade

10 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

BÀI TẬP T7 - KHỞI ĐỘNG

BÀI TẬP T7 - KHỞI ĐỘNG

10th - 12th Grade

10 Qs

ว30285-ทดสอบเรื่องคำสั่งแบบเงื่อนไข

ว30285-ทดสอบเรื่องคำสั่งแบบเงื่อนไข

10th Grade

10 Qs

REMIDI PROGDAS

REMIDI PROGDAS

12th Grade

15 Qs

Class XI Basics

Class XI Basics

11th - 12th Grade

15 Qs

INTERNET CONNECTION

INTERNET CONNECTION

12th Grade

13 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?

Discover more resources for Computers