#1
Which of the following data types is used to represent true or false in programming?
2 answered
#2
What is the result of the Boolean expression (5 > 3) && (4 < 6)?
2 answered
#3
In programming, what is the purpose of a Boolean variable?
2 answered
#4What is the output of the following Boolean expression in JavaScript?
What is the output of the following Boolean expression in JavaScript?
```
console.log(true && false || true);
```
2 answered
#5
What is the purpose of the '== ' operator in programming?
2 answered
#6
Which of the following statements is true about the '!= ' operator?
2 answered
#7
Which of the following is an example of a valid Boolean expression in Python?
1 answered
#8
What is the purpose of the ternary operator in programming?
#9
What is the purpose of the 'bool()' function in Python?
#10
In C#, what is the default value for a boolean variable if not explicitly set?
#11
In programming, what does the term 'short-circuit evaluation' refer to?
1 answered
#12
What is the purpose of the 'xor' operator in Boolean expressions?
1 answered
#13
Which logical operator has the highest precedence in most programming languages?
1 answered
#14
In Python, what is the purpose of the 'not' operator in Boolean expressions?
#15
In programming, what is the purpose of short-circuiting in Boolean expressions?
1 answered
#16What is the output of the following code snippet in C++?
What is the output of the following code snippet in C++?
```
bool x = true;
bool y = false;
bool result = x ^ y;
```
#17In JavaScript, what will be the output of the following code snippet?
In JavaScript, what will be the output of the following code snippet?
```
console.log(!(5 > 3));
```
#18
What is the purpose of the '>>' operator in bitwise operations?
#19
Which of the following is the correct way to declare a boolean variable in Java?
#20
What does the bitwise XOR (^) operator do in programming?
#21What is the output of the following code snippet in Python?
What is the output of the following code snippet in Python?
```
x = 5
y = 10
result = x > 3 and y < 5
print(result)
```
#22
What is the result of the expression (8 > 5) or (3 < 2) and (7 == 7)?
#23
In Java, what is the purpose of the 'instanceof' operator?
#24In Python, what is the output of the following code snippet?
In Python, what is the output of the following code snippet?
```
x = 3
y = 5
result = x > 2 or y < 4
print(result)
```
#25In Python, what is the output of the following code?