Question
Just making sure i answered these right. Question 1: An exclamation point followed by a single equal symbol (!=) means .___________ ____________ Question 2: Given
Just making sure i answered these right.
Question 1:
An exclamation point followed by a single equal symbol (!=) means .___________ ____________
Question 2:
Given the following declarations, identify what the result would be for each of the expressions: int val1 = 10, val2 = 20, val3 = 0; Expression Result a. val1 > val2 b. val1 == 10 c. val1 != val3 d. (val1 > val2) || (val3 > val1) e. !(val1 > val2) || (val3 > val1) f. (val1 < val2) &&(val3 > val1) g. (val1 < val2) &(val3 > val1) h. CS158 == cs158
Question 3:
The symbol (<) is:
the operator used to test for equality | ||
one of the relational operators | ||
normally used as part of an assignment statement | ||
considered a logical compound operator | ||
all of the above Quesion 4: The equality operator in C# is ______________ Question 5: In C#, the && and || operators are called the _________-circuiting logical operators. These operators enable the computer to make fewer comparisons indicating as soon as the answer can be determined to produce the final result, move out of the conditional expression. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started