fewmoredetails Posted May 7, 2020 Share Posted May 7, 2020 Question 24: The if statement is used to execute some code only if a specified condition is true Says the right answer is True. Not correct, you can also do if statements to check if something is not true with ! mark. Link to comment Share on other sites More sharing options...
Ingolme Posted May 7, 2020 Share Posted May 7, 2020 The condition being tested in that case would be (!x), and that condition is true when x is false. The if statement is still testing whether the condition between the brackets returns true. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now