The symbol "?" belongs to which operator?

  1. Conditional Operator

  2. Bitwise Operators

  3. Logical operators

  4. Relational Operator


Correct Option: A
Explanation:

To solve this question, the user needs to have a basic understanding of the different types of operators used in programming languages.

The symbol "?" is known as the conditional operator.

Option A: Conditional Operator - This option is correct. The conditional operator, also known as the ternary operator, is represented by the symbol "?". It is a shorthand way of writing an if-else statement in a single line of code.

Option B: Bitwise Operators - This option is incorrect. Bitwise operators are used to perform operations on individual bits of a number. Examples include AND, OR, NOT, and XOR.

Option C: Logical Operators - This option is incorrect. Logical operators are used to combine multiple conditions. Examples include AND, OR, and NOT.

Option D: Relational Operator - This option is incorrect. Relational operators are used to compare two values. Examples include , <=, >=, ==, and !=.

Therefore, the answer is: A. Conditional Operator

Find more quizzes: