FUNDAMENTALS OF COMPUTER

COMPUTER HARDWARE COMPONENTS FUNCTIONS

COMPUTER SYSTEM COMPONENTS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Logical operations ____
A
involve matching one data item to another to determine if the first item is greater than, equal to, or less than the other item
B
include addition, subtraction, multiplication, and division
C
sort data items according to standard, predefined criteria in ascending order or descending order
D
use conditions with operators such as AND, OR, and NOT
Explanation: 

Detailed explanation-1: -The logical operators *AND and *OR specify the relationship between operands in a logical expression. The logical operator *NOT is used to negate logical variables or constants.

Detailed explanation-2: -The logical OR operator ( || ) returns the boolean value true if either or both operands is true and returns false otherwise.

Detailed explanation-3: -Logical Operators are used to perform logical operations and include AND, OR, or NOT. Boolean Operators include AND, OR, XOR, or NOT and can have one of two values, true or false.

Detailed explanation-4: -Two or more relations can be logically joined using the logical operators AND and OR . Logical operators combine relations according to the following rules: The ampersand (&) symbol is a valid substitute for the logical operator AND . The vertical bar ( | ) is a valid substitute for the logical operator OR .

Detailed explanation-5: -Unlike the Boolean logical operators “&” and “|, ” which always evaluate both the operands, conditional logical operators execute the second operand only if necessary. As a result, conditional logical operators are faster than Boolean logical operators and are often preferred.

There is 1 question to complete.