What happens when the following piece of code in file1.c, is compiled and executed? namespace
{
Class Temp
{
public:
int GetVal()
{
return 100;
}
};
} //end of namespace
int main()
{
Temp oTempObj1; Cout<<otempobj1.getval()<<endl;
} </otempobj1.getval()<<endl;
Compile Error
100
Runtime Error
Compilation Error
Answer: Option B.
Iterators are________________
Generalised pointers in STL
Container classes in STL
Algorithms in STL
Special Methods in STL
Answer: Option A.
Big O notation is defined for
Time and Space Complexity
Optimality
Searching
Sorting
Answer: Option A.
The effectiveness of an algorithm is best stated in
Best-case Time
Average-case Time
Worst-Case running time
Industry-Standard Time
Answer: Option C.
output of following program
#include<stdio.h>
int f1( int );
void main()
{
int b=5;
printf("%d,%d", f1(b),f1(b));
}
int f1(int b)
{
static int n=5;
n++;
return n;
}