C Java Microprocessor: - Questions Questions Questions Questions Questions Questions Questions Questions
C Java Microprocessor: - Questions Questions Questions Questions Questions Questions Questions Questions
Manage
C- QUESTIONS
The
1. What does static variable mean? negotia
more t
2. What is a pointer?
s
3. What is a structure?
4. What are the differences between structures and arrays?
Go
5. In header files whether functions are declared or defined? Exerci
6. What are the differences between malloc() and calloc()? R
7. What are macros? what are its advantages and disadvantages?
8. Difference between pass by reference and pass by value?
Ta
9. What is static identifier? Coun
10. Where are the auto variables stored? exper
11. Where does global, static, local, register variables, free memory and C Program
instructions get stored? Bu
GRE
12. Difference between arrays and linked list? FOR GR
R
13. What are enumerations?
14. Describe about storage allocation and scope of global, extern, static, local and register How
variables? exper
15. What are register variables? What are the advantage of using register variables? r
16. What is the use of typedef?
17. Can we specify variable field width in a scanf() format string? If possible how? Cri
18. Out of fgets() and gets() which function is safe to use and why? Sendin
via
19. Difference between strdup and strcpy?
20. What is recursion?
21. Differentiate between a for loop and a while loop? What are it uses? Vie
Resum
22. What are the different storage classes in C?
23. Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
Down
24. What is difference between Structure and Unions? Resu
25. What the advantages of using Unions?
26. What are the advantages of using pointers in a program? The w
27. What is the difference between Strings and Arrays? you
Re
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03
Technical Interview Tips Page 2 of 10
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03
Technical Interview Tips Page 3 of 10
78. Can there be at least some solution to determine the number of arguments passed to a
variable argument list function?
79. How do you declare the following:
{ An array of three pointers to chars
{ An array of three char pointers
{ A pointer to array of three chars
{ A pointer to function which receives an int pointer and returns a float pointer
{ A pointer to a function which receives nothing and returns nothing
80. What do the functions atoi(), itoa() and gcvt() do?
81. Does there exist any other function which can be used to convert an integer or a float to a
string?
82. How would you use qsort() function to sort an array of structures?
83. How would you use qsort() function to sort the name stored in an array of pointers to
string?
84. How would you use bsearch() function to search a name stored in array of pointers to
string?
85. How would you use the functions sin(), pow(), sqrt()?
86. How would you use the functions memcpy(), memset(), memmove()?
87. How would you use the functions fseek(), freed(), fwrite() and ftell()?
88. How would you obtain the current time and difference between two times?
89. How would you use the functions randomize() and random()?
90. How would you implement a substr() function that extracts a sub string from a given string?
91. What is the difference between the functions rand(), random(), srand() and randomize()?
92. What is the difference between the functions memmove() and memcpy()?
93. How do you print a string on the printer?
94. Can you use the function fprintf() to display the output on the screen?
1. What is a class?
2. What is an object?
3. What is the difference between an object and a class?
4. What is the difference between class and structure?
5. What is public, protected, private?C++ QUESTIONS Go Up
6. What are virtual functions?
7. What is friend function?
8. What is a scope resolution operator?
9. What do you mean by inheritance?
10. What is abstraction?
11. What is polymorphism? Explain with an example.
12. What is encapsulation?
13. What do you mean by binding of data and functions?
14. What is function overloading and operator overloading?
15. What is virtual class and friend class?
16. What do you mean by inline function?
17. What do you mean by public, private, protected and friendly?
18. When is an object created and what is its lifetime?
19. What do you mean by multiple inheritance and multilevel inheritance? Differentiate
between them.
20. Difference between realloc() and free?
21. What is a template?
22. What are the main differences between procedure oriented languages and object oriented
languages?
23. What is R T T I ?
24. What are generic functions and generic classes?
25. What is namespace?
26. What is the difference between pass by reference and pass by value?
27. Why do we use virtual functions?
28. What do you mean by pure virtual functions?
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03
Technical Interview Tips Page 4 of 10
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03
Technical Interview Tips Page 5 of 10
middle?
28. How will inorder, preorder and postorder traversals print the elements of a tree?
29. Parenthesis are never needed in prefix or postfix expressions. Why?
30. Which one is faster? A binary search of an orderd set of elements in an array or a
sequential search of the elements.
JAVA QUESTIONS Go Up
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03
Technical Interview Tips Page 6 of 10
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03
Technical Interview Tips Page 7 of 10
89. Does java support function overloading, pointers, structures, unions or linked lists?
90. What do you mean by multithreading?
91. What are byte codes?
92. What are streams?
93. What is user defined exception?
94. In an HTML page form I have one button which makes us to open a new page in 15
seconds. How will you do that?
1. What is RMI?
2. Explain about RMI Architecture?
3. What are Servelets?
4. What is the use of servlets?
5. Explain RMI Architecture?
6. How will you pass values from HTML page to the servlet?
7. How do you load an image in a Servelet?
8. What is purpose of applet programming?
9. How will you communicate between two applets?
10. What IS the difference between Servelets and Applets?
11. How do you communicate in between Applets and Servlets?
12. What is the difference between applet and application?
13. What is the difference between CGI and Servlet?
14. In the servlets, we are having a web page that is invoking servlets ,username and
password? which is checks in database? Suppose the second page also if we want to
verify the same information whether it will connect to the database or it will be used
previous information?
15. What are the difference between RMI and Servelets?
16. How will you call an Applet using Java Script Function?
17. How can you push data from an Applet to a Servlet?
18. What are 4 drivers available in JDBC? At what situation are four of the drivers used?
19. If you are truncated using JDBC , how can you that how much data is truncated?
20. How will you perform truncation using JDBC?
21. What is the latest version of JDBC? What are the new features added in that?
22. What is the difference between RMI registry and OS Agent?
23. To a server method, the client wants to send a value 20, with this value exceeds to 20 a
message should be sent to the client . What will you do for achieving this?
24. How do you invoke a Servelet? What is the difference between doPost method and doGet
method?
25. What is difference between the HTTP Servelet and Generic Servelet? Explain about their
methods and parameters?
26. Can we use threads in Servelets?
27. Write a program on RMI and JDBC using Stored Procedure?
28. How do you swing an applet?
29. How will you pass parameters in RMI? Why do you serialize?
30. In RMI ,server object is first loaded into memory and then the stub reference is sent to the
client. true or false?
31. Suppose server object not loaded into the memory and the client request for it. What will
happen?
32. What is the web server used for running the servelets?
33. What is Servlet API used for connecting database?
34. What is bean? Where can it be used?
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03
Technical Interview Tips Page 8 of 10
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03
Technical Interview Tips Page 9 of 10
MICROPROCESSOR QUESTIONS Go Up
ELECTRONICS QUESTIONS Go Up
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03
Technical Interview Tips Page 10 of 10
file://E:\Indranil\Campus\Technical%20Interview%20Tips.htm 18-May-03