English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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?

2007-10-14 16:47:25 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

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.

2007-10-14 17:06:01 · answer #1 · answered by Kasey C 7 · 0 0

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!

2007-10-14 17:11:35 · answer #2 · answered by dick_bee_bad 5 · 0 0

OR is a logical operator. The statement is true.

2007-10-14 16:59:38 · answer #3 · answered by foofoo 3 · 1 1

IF is not a logical operator OR is

2007-10-14 16:57:39 · answer #4 · answered by Marshal Jed Cooper 4 · 0 0

fedest.com, questions and answers