programming languages Online Quiz - 104
Description: programming languages Online Quiz - 104 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
A function call is always an rvalue. True or false?
In namespace foo, the function bar can access the variable x also declared in namespace foo? #include namespace foo { void bar() { x++; } int x; } int main(int argc, char** argv) { return 0; }
What is the value of y at the end of main? const int x = 5; int main(int argc, char** argv) { int x[x]; int y = sizeof(x) / sizeof(int); return 0; }
what is the output of the programme? #define ABC 20 #define XYZ 10 #define XXX ABC - XYZ void main() { int a; a = XXX * 10; printf("%d ", a); }
what is the output? int a = 400; void main() { int b; b=(400 * 400)/ a ; printf("%d",b); }
Print the output of this program main() { int k = 5; if (++k < 5 && k++/5 || ++k <= 8); printf("%d\n", k); }
What is the result Integer i1=10; Integer i2=10; (i1==i2)-->result of this
What is result of the question Integer i1=10; Integer i2=10; (i1!=i2)-->result is
What is the result of this Integer i1=10; int i2=10; (i1==i2)-->result is
What is the result os this String s1="hi"; String s2="hi"; (s1==s2)-->returns
String s1=new String("abc"); String s2=new String("abc"); (s1==s2)-->result is
Integer i1=10; Integer i2=10; (i1.equals(i2++))-->result is
In which version of .Net framework LINQ has been introduced
Features of LINQ
Features of LINQ
List Names = new List(); Names.Add("A"); Names.Add("B"); Names.Add("C"); var res = Names.Where(n => n == "D"); if (res == null) Console.WriteLine("res is null"); else Console.WriteLine("res is not null"); Console.Read(); What would be printed?
List Names = new List(); Names.Add("A"); Names.Add("B"); Names.Add("C"); var res = Names.Where(n => n == "D"); res is the type of
Anonymous Types is a feature of LINQ
What will happen when you attempt to compile and run the following code? int Output = 10; boolean b1 = false; if((b1 == true) && ((Output += 10) == 20)) { System.out.println("We are equal " + Output); } else { System.out.println("Not equal! " + Output); }