Results 1 to 2 of 2

Thread: Boolean

  1. #1
    Twixmaster123 is offline Member
    Join Date
    Mar 2012
    Posts
    12
    Rep Power
    0

    Angry Boolean

    Yet another nooby question fellas, hehe well I am back. So the question is:

    "Which answer is logically equivalent to the following boolean expression (p && !q), where p and q are both boolean variables?"

    Now I think it would be p || !q

    But the answer is apparently !(!p || q)

    Is there any help for me? I'm slowly getting a handle on it, making progress to say the least.

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,310
    Blog Entries
    7
    Rep Power
    20

    Default Re: Boolean

    Read about De Morgan's laws.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 3
    Last Post: 09-13-2011, 12:01 AM
  2. boolean error help when no boolean is given
    By drewtrcy in forum New To Java
    Replies: 18
    Last Post: 05-05-2011, 09:04 AM
  3. boolean even or odd?
    By shazakala in forum New To Java
    Replies: 3
    Last Post: 04-17-2011, 08:02 AM
  4. Boolean help
    By DMarsh12 in forum New To Java
    Replies: 8
    Last Post: 04-11-2011, 09:41 PM
  5. use boolean as 0 or 1
    By joost_m in forum New To Java
    Replies: 10
    Last Post: 04-13-2010, 11:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •