programming languages Online Quiz - 141
Description: programming languages Online Quiz - 141 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
1)main() { int i = 5; printf(“%d %d %d %d %d”,i++,i--,++i,--i,i); }
1)void main() { int const *p = 5; printf(“%d”,++(*p)); }
1)#define square(x) x*xmain(){ int i; i=64/square(4); printf(“%d”,i);}
1)main() { int a[2][3][2]={{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(“%u %u %u %d”,a,a,a,a); printf(“%u %u %u %d\n”,a+1,*a+1,a+1,***a+1); } Provided base address of a is 100.
1)main() { static int a[]={0,1,2,3,4}; int p[]={a,a+1,a+2,a+3,a+4}; int **ptr=p; ptr++; printf(“\n%d%d%d”ptr-p,*ptr-a,ptr); *ptr++; printf(“\n%d%d%d”ptr-p,*ptr-a,ptr); *++ptr; printf(“\n%d%d%d”ptr-p,*ptr-a,ptr); ++*ptr; printf(“\n%d%d%d”ptr-p,*ptr-a,*ptr); }
Which of the following statements are valid array declaration?
Which of the following classes are available in the java.lang package?
Which of the following are the wrapper classes?
The methods wait() and notify() are defined in
An abstract class can have an object defined.
string s="tcs". This is a valid c++ syntax.
Static global variable in one c++ file can be used in another c++ file with the help of extern keyword.
“abc” is a primitive value
A class is a subclass of itself.
Exceptions can be rethrown.
void is the return type of a program’s main() method
non-Unicode letter characters $ and _ cannot be used as the first character of an identifier
this() is used to invoke a constructor of the same class