Logical Functions
Category : 2nd Class
A computer is very smart and apart from performing mathematical calculations, it can also give some additional information based on some decisions for example, if you got 40 marks in your test and your friend got 35, we can say that you performed I better than your friend because 40 is greater than 35. In the same way, computers use logical Potions to provide basic comparison and return True or FALSE value based on the evaluation and the instructions given. Logical function means applying logic to the result obtained after completing mathematical calculations. Therefore, a decision is taken according to the given commands.
Suppose total Marks = 325 (mathematical calculations)
If total Marks > 200; (decision)
PRINT 'Pass'. (Command)
If total Marks < 200; (decision)
PRINT 'Fail'(Command)
If we put Total Marks. = 325, the decision will be as 'Pass'
Every function is differentiated by its symbols or sign used. The following are the sign of that function which consists of very few numbers of sign '>', '<', '=' are the sign of which function.
(A) Mathematical
(B) Arithmetical
(C) Logical
(D) Special
Answer: (c)
Explanation
Correct Option:
(C) >, <, =: Given signs are used in logical function.
Incorrect Options:
(A) Mathematical function: signs are +, -, * and /
(B) Arithmetical function: f(n), x(n), etc are the arithmetical functions.
(D) Special function: are the mathematical functions which have more or less established names.
There are many types of sign and symbols you daily use. Which among the following is not a symbol?
(A) =
(B) <
(C) *
(D) a
Answer: (D)
Explanation
Correct Option:
(D) a : Is not a symbol.
Incorrect Options:
(A) = : Is a logical symbol.
(B) < : Is a logical symbol.
(C) * : Is a mathematical symbol.
You need to login to perform this action.
You will be redirected in
3 sec