Select the correct option to test your answer:
More Computer Questions
What will be the output of the following Java code? class bool_operator { public static void main(String args[]) { boolean a = true; boolean b = !true; boolean c = a | b; boolean d = a & b; boolean e = d ? b : c; System.out.println(d + " " + e); } }
In which of the following cipher the plain text and the ciphered text have same letters?
What will be the output of the following C# code snippet? class UnsafeCode { struct MyStruct { public int a; public int b; public int Sum() { return a * b; } } unsafe static void Main() { MyStruct o = new MyStruct(); MyStruct* p; p = &o; p->a = 10; p->b = 20; Console.WriteLine("Value is " + p->Sum()); Console.ReadLine(); }
What will be the output of the following C code? #include <stdio.h> int x = 5; void main() { int x = 3; m(); printf("%d", x); } void m() { x = 8; n(); } void n() { printf("%d", x); }
What is the scope of the variable declared in the user defined function?