logo
menu
Sign up
  1. Topics
  2. Computing
  3. Starting Out with Java From Control Structures through Data Structures
  4. Quiz 3: Decision Structures

The Expression Tested by an If Statement Must Evaluate to A

Question 21
Multiple Choice

The expression tested by an if statement must evaluate to A) 0 or 1 B) +1 or -1 C) true or false D) t or f

Related questions
Q 22
These operators are used to determine whether a specific relationship exists between two values. A) Arithmetic B) Relational C) Syntactical D) Assignment
Q 23
What is the value of x after the following code has been executed? int x = 75; Int y = 90; If ( x != y) X += y; A) 75 B) 90 C) 15 D) 165
Q 24
What is the value of ans after the following code has been executed? int x = 40; Int y = 40; Int ans = 0; If (x = y) Ans = x + 10; A) 50 B) 80 C) 30 D) No value,this is a syntax error.
logo
QuizPlus
  • About
  • How it work
  • Pricing
Links
  • Privacy Policy
  • Terms And Conditions
  • Refund Policy
Contact Us
  • info@quizplus.com
© 2020 QuizPlus. All Right Reserved