Optisol Business Solutions Interview Questions

This blog explains about Optisol Business Solutions Interview Questions and is given below :

Optisol Business Solutions :

1. What is the output of the following program ?

#include<stdio.h>
int main()
{
int a=10;
switch(a)
{
case ‘1’;
printf(“ONE\n”);
break;
case ‘2’;
printf(“TWO\n”);
break;
default;
printf(“NONE\n”);
}
return 0;
}

2. What is the Output of the Following Program?
#include<stdio.h)

int main()

{

int a=1, 2;

printf(“a : %d\n”, a);

return 0;

}

3. What is the Output of the following Program ?

#defineABC  20

#defineXYZ  10

#defineXXX ABC-XYZ

void main()

int  a;

a = XXX * 10;

printf(“%d”, a);

}

4. What is the DDL?

5. What is the different between Primary key and unique key?

 PART – B

1. Print Letters followed by their Frequency .

Ex: input :aaabcc Output: a3b1c2

2.Write any  three of the following.

    1.Write a Sample Program for Method Overloading & Method Overridding

   2. Write a Sample SQL query using  “Inner Join” keyword.

   3. Write a Sample Program using Collections .(Use List, Map or Set)

   4. Write a Program to Reverse a String Using Recursion.

   5. Write a Program to find duplicate Characters in a String.