Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Operators
Which of the following statements is correct about the C#.NET code snippet given below? int d; d = Convert.ToInt32( !(30 < 20) );
A value 0 will be assigned to d.
A value 1 will be assigned to d.
A value -1 will be assigned to d.
The code reports an error.
The code snippet will work correctly if ! is replaced by Not.
Show Answer
Correct Answer:
A value 1 will be assigned to d.
Explanation:
Sample Program:
← Previous
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment