Question:
Programming Languages?
2007-10-14 20:47:25 UTC
If X = 0 and Response = “Yes”, determine whether the expression is True or False.
(X = 1) OR (Response = “Yes”)
False, because OR is not a logical operator?

Also... Three fundamental types of programming languages are high-level language, assembly language and machine language?
Three logical operators are AND, NOT, and IF? OR is not a logical operator, correct?
Four answers:
Kasey C
2007-10-14 21:06:01 UTC
Are you *sure* you're reading the right book? The basic logical operators are AND OR and NOT



If OR is not a logical operator, you'd have a SYNTAX ERROR, not a "false".



Fundamental types of programming language? Depends on where you draw the line. One *could* argue that C is NOT a high-level language.



IF is a branching statement, not a logical operator.
dick_bee_bad
2007-10-14 21:11:35 UTC
In all of my programming I have never come across a logical operator called "IF" all if does is tell the programming language that there is a logical operation coming up.



There logical operators as follows:



OR

The either results has to be true



AND

Makes the logic that is being evaluated that both results must "TRUE" or both must be "FASLE"



NOT or sometimes XOR.

All "NOT" or "XOR" does is make the results that were "TRUE", FALSE and the results that are "FALSE" true



And of course these are locical operators below too.



= equal to



<> not equal to



< less then



> greater then



But there is no "IF" as a logical operator!
foofoo
2007-10-14 20:59:38 UTC
OR is a logical operator. The statement is true.
Marshal Jed Cooper
2007-10-14 20:57:39 UTC
IF is not a logical operator OR is


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...