LG Soft Interview Questions 01-4-2012
Posted on :11-03-2016
C++ Interview Questions:
Q1. What is the output of the following program?
main()
{
int i=7;
cout<
}
(a) 49
(b) 56
(c) 72
(d) Compiler error
Q2. What will be the value of i & j?
for(i=0,j=0;i<5,j<25;i++,j++)
(a) i=4, j= 24
(b) i=24, j= 24
(c) i=25, j= 25
(d) i=5, j=25
Q3. What is the output of the following program?
main()
{
char *p,*f();
p=f();
cout<< f() returns:<
}
char *f()
{
char result[80];
strcpy(result, anything will do);
return (result);
}
(a) f() returns: anything will do
(b) f() returns: result
(c) Compiler error
(d) None
Q4. What is the output of the following program?
main()
{
int i,j;
i=10;
j=sizeof(++i);
cout<
}
(a) 11
(b) 10
(c) 4
(d) Compiler Error
Q5. How a function can return a structure?
Q6. What are the advantages of exceptions in C++?
Q7. How to initialize a pointer to a function?
Q8. Write a program to reverse a link list?
Q9. Can a C++ program be linked with a C program?
Database Interview Questions:
Q10. Write a query to change the name of SQL prompt?
Q11. What is the difference between oracle and SQL?
Q12. Write a query to eliminate duplicate rows in an Oracle database?
Q13. Write a query to see the name of the current user?
Q14. What are the different commands used in both?
.Net Interview Questions:
Q15. What is the difference between a delegate and an event?
Q16. How JSP different from ASP?
Q17. What are the different types of caching available?
Q18. Write a program to show the function to a pointer?
Q19. What is the assembly file structure of ASP.NET?