Which of the following conditions evaluates to true when the letter variable contains the letter Z in

Question:

Which of the following conditions evaluates to true when the letter variable contains the letter Z in either uppercase or lowercase? 

a. if (letter = 'Z' || letter = 'z') 

b. if (letter == 'Z' || letter == 'z') 

c. if (letter = 'Z' && letter = 'z') 

d. if (letter == 'Z' && letter = 'z')

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: