Solved

Suppose One Needs an If Statement to Check Whether an Integer

Question 10

Multiple Choice

Suppose one needs an if statement to check whether an integer variable pitch is equal to 440 (which is the frequency of the note "A" to which strings and orchestras tune) .Which condition is correct?


A) if (pitch - 440 = 0)
B) if ((pitch !< 440) && (pitch !> 440) )
C) if (pitch = 440)
D) if (pitch == 440)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents