C Sharp MCQs – Certification Test 5
MCQ 5: The output for following code will be
static void Main(string[] args)
{
int a = 3, b = 5, c = 1;
int z = ++b;
int y = ++c;
b = Convert.ToInt32((Convert.ToBoolean(z)) && (Convert.ToBoolean(y)) || Convert.ToBoolean(Convert.ToInt32(!(++a == b))));
a = Convert.ToInt32(Convert.ToBoolean(c) || Convert.ToBoolean(a--));
Console.WriteLine(++a);
Console.WriteLine(++b);
Console.WriteLine(c);
} :
Download Boolean Logic Trivia App: Study Boolean Logic Notes, C Sharp Trivia App, and Basic Computer Knowledge Trivia App for C# remote education systems.
The "Boolean Logic Trivia" App: Free C Sharp Study App Download (iOS & Android) for C# digital learning. Download App Store & Play Store Learning Apps with all functionalities to master C# professional skills.