Conditional Execution & If Statements

EndorsedNovaculite9778 avatar
EndorsedNovaculite9778
·
·
Download

Start Quiz

Study Flashcards

10 Questions

Which statement is true about conditional execution?

Conditional statements allow us to check certain conditions and change the behavior of the program accordingly.

What happens if the condition in an if statement is not true?

Nothing happens.

What types of values can be compared using conditional operators?

Integers can be compared to integers and doubles can be compared to doubles.

Can strings be compared using conditional operators?

No, strings cannot be compared using conditional operators.

What does the modulus operator work on?

The modulus operator works on integers and integer expressions.

Which operator is used for conditional execution?

if

What happens if the condition in an if statement is not true?

Nothing happens

Which types of values can be compared using conditional operators?

Integers and doubles

Which operator is used to check if two values are equal?

==

Which operator is used to check if one value is greater than another?

Test your knowledge on conditional execution and if statements in programming with this quiz. Learn about the basics of writing useful programs and how to check conditions and change program behavior accordingly.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser