LG Soft Interview Questions
1)Difference between class and object ?
2)Difference between Union and Structure ?
3)Dis Advantages of Diamond Inheritance ?
4)Use of Static Variable in class ?
5)What is a Pointer ?
6)What is Memory Leak ?
7)What is Dangling Pointer ?
8)What is Hash Map in C++ ?
9)Difference between private and protected in c++ class ?
10)Write a Program to convert octal to binary ?
11)Write a Program to print the given number in words ?
Ex : Input :1234
Ouptut :One Thousand Two Hundred Thirty Four.
12)Write a Program to find the given two arrays are equal (or) not ?
Ex:Input: a1[]={1,2,1,3,1} a2[]-{2,1,3,1,1}
Output: Both arrays are equal.
13)Write a Program to print 1 to 100,while printing if the number is divisible by 3
print "Foo",If the number is divisible by 5 print "Bob".If the number is divisible by
3 & 5 print "FooBob".
1)Difference between class and object ?
2)Difference between Union and Structure ?
3)Dis Advantages of Diamond Inheritance ?
4)Use of Static Variable in class ?
5)What is a Pointer ?
6)What is Memory Leak ?
7)What is Dangling Pointer ?
8)What is Hash Map in C++ ?
9)Difference between private and protected in c++ class ?
10)Write a Program to convert octal to binary ?
11)Write a Program to print the given number in words ?
Ex : Input :1234
Ouptut :One Thousand Two Hundred Thirty Four.
12)Write a Program to find the given two arrays are equal (or) not ?
Ex:Input: a1[]={1,2,1,3,1} a2[]-{2,1,3,1,1}
Output: Both arrays are equal.
13)Write a Program to print 1 to 100,while printing if the number is divisible by 3
print "Foo",If the number is divisible by 5 print "Bob".If the number is divisible by
3 & 5 print "FooBob".