How many bits would a succinct binary tree occupy?
How many main types of sequence operations are provided by the C++ algorithm STL?
What is the result of evaluating the postfix expression 6, 5, 6, +, *, 4, 9, 3, /, +, *?
Multidimensional arrays are used to store information in a matrix form.
What is the output of the following C program?
void main()
{
int k;
if(printf("%o",k=(~2|3)>~0 ? 7 : 8<<2));
}
#include<stdio.h>
void func1()
{
printf("Abekus");
}
void func2()
{
printf("leraning");
}
int main()
{
func1(),func()2;
return 0;
}
The sequence that is in ascending order of size is
Predict the output of the following C code:
#include <stdio.h>
int main()
{
char *s = "Abekus";
while (*s != '\0')
printf("%c", *s++);
}
What is the time, space complexity of following code:
int a = 0, b = 0;
for (i = 0; i < N; i++) {
a = a + rand();
}
for (j = 0; j < M; j++) {
b = b + rand();
}
What is the output of the following C++ code?
#include<iostream>
using namespace std;
class Base {
public:
Base() { cout<<"Constructor: Base"<<endl; }
virtual ~Base() { cout<<"Destructor : Base"<<endl; }
};
class Derived: public Base {
public:
Derived() { cout<<"Constructor: Derived"<<endl; }
~Derived() { cout<<"Destructor : Derived"<<endl; }
};
int main() {
Base *Var = new Derived();
delete Var;
return 0;
}