LG Soft Interview Questions 01-4-2012

Posted on :11-03-2016

C++ Interview Questions:

Q1. What is the output of the following program?

int i=7;

(a) 49 
(b) 56 
(c) 72 
(d) Compiler error

Q2. What will be the value of 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?

char *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?

int i,j;

(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?

Placement Papers for All Companies

FreshersLive - No.1 Job site in India. Here you can find latest 2023 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail...
DMCA.com Protection Status