(solution) I need help on the questions pertaining to Visual C# 1. The

(solution) I need help on the questions pertaining to Visual C# 1. The

I need help on the questions pertaining to Visual C#

1.       The exclusive OR operator is represented by which of the following?

A.      ^

B.      !

C.      $

D.      @

 

2.       The | and & operators will __________ evaluate all operands in a conditional statement.

A.      never

B.      always

C.      conditionally

D.      prematurely

 

3.       The programmer can perform different actions based on the value of an expression in a __________ statement.

A.      for

B.      case

C.      do while

D.      switch

 

4.       The for loop header has three items specified: control variable initialization, the loop continuation condition, and __________ of the control variable.

A.      increment/decrement

B.      looping

C.      switch

D.      break

 

5.       In a loop, the programmer can terminate execution within the executing block of code by using the __________ statement.

A.      default

B.      continue

C.      break

D.      XOr

 

6.       When declaring a counter for a control variable in a for loop, you should always use the __________ data type.

A.      local

B.      integer

C.      double

D.      break

 

 

 

 

7.       Which case of the following would warrant using the boolean logical inclusive OR (|) rather than the conditional OR (||)?

A.      Testing if two conditions are both true

B.      Testing if at least one of two conditions is true

C.      Testing if at least one of two conditions is true when the right operand has a required side effect

D.      Testing if at least one of two conditions is true when the left operand has a required side effect

 

8.       The conditional OR operator is represented by which of the following?

A.      &&

B.      |

C.      ||

D.      ^

 

9.       When attempting to use a for statement’s control value after the loop’s body, what will the result be?

A.      A compiler error

B.      An infinite loop

C.      Code execution stops after 100 loops based on the debugger settings

D.      True

 

10.   A programmer created a while loop in C#, but failed to provide an action in the while statement, which caused the condition of the while to return false. What will the result be?

A.      A compiler error

B.      An infinite loop

C.      Code execution stops after 100 loops based on the debugger settings

D.      True

I need help on the questions pertaining to Visual C#
1. The exclusive OR operator is represented by which of the following?
A. ^
B. !
C. $
D. @
2. The | and & operators will __________ evaluate all operands in a conditional statement.
A. never
B. always
C. conditionally
D. prematurely
3. The programmer can perform different actions based on the value of an expression in a
__________ statement.
A. for
B. case
C. do while
D. switch
4. The for loop header has three items specified: control variable initialization, the loop
continuation condition, and __________ of the control variable.
A. increment/decrement
B. looping
C. switch
D. break
5. In a loop, the programmer can terminate execution within the executing block of code by using
the __________ statement.
A. default
B. continue
C. break
D. XOr
6. When declaring a counter for a control variable in a for loop, you should always use the
__________ data type.
A. local
B. integer
C. double
D. break 7. Which case of the following would warrant using the boolean logical inclusive OR (|) rather than
the conditional OR (||)?
A. Testing if two conditions are both true B. Testing if at least one of two conditions is true
C. Testing if at least one of two conditions is true when the right operand has a required
side effect
D. Testing if at least one of two conditions is true when the left operand has a required side
effect
8. The conditional OR operator is represented by which of the following?
A. &&
B. |
C. ||
D. ^
9. When attempting to use a for statement's control value after the loop?s body, what will the result
be?
A. A compiler error
B. An infinite loop
C. Code execution stops after 100 loops based on the debugger settings
D. True
10. A programmer created a while loop in C#, but failed to provide an action in the while statement,
which caused the condition of the while to return false. What will the result be?
A. A compiler error
B. An infinite loop
C. Code execution stops after 100 loops based on the debugger settings
D. True