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)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?
Given the code String s1 = "yes"; String s2 = "yes"; String s3 = new String(s1); Which of the following would equate to true?
The methods wait() and notify() are defined in
An abstract class can have an object defined.
virtual function defined in the parent class should be redefined in all of its inheriting child classes
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