sentence best matches/describes this expression/logical test?

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter3: Understanding Structure
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question
  1. Assume you have two INTEGER type variables a and b in your Matlab Workspace and the following expression to be executed:

    >> (not(mod(a, 2) == 1)) & (sqrt(a) ~= sqrt(b))

    Which sentence best matches/describes this expression/logical test?

     

       

    b is EVEN AND square root of a is NOT EQUAL to square root of b

       

    a is EVEN AND square root of a is NOT EQUAL to square root of b

       

    a is ODD AND square root of a is EQUAL to square root of b

       

    a is EVEN AND square root of a is EQUAL to square root of b

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage