You are on page 1of 19

Frequently Asked Questions - Java

o Can a main() method of class be invoked in another class?


o What is the difference between java command line arguments and C
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

command line arguments?


What is the difference between == & .equals
What is the difference between abstract class & Interface.
What is singleton class & it's implementation.
Use of static,final variable
Examples of final class
Difference between Event propagation & Event delegation
Difference between Unicast & Multicast model
What is a java bean
What is synchronized keyword used for.
What are the restrictions of an applet & how to make the applet access the
local machines resources.
What is reflect package used for & the methods of it.
What is serialization used for
Can methods be overloaded based on the return types ?
Why do we need a finalze() method when Garbage Collection is there ?
Difference between AWT and Swing compenents ?
Is there any heavy weight component in Swings ?
Can the Swing application if you upload in net, be compatible with your browser?
What should you do get your browser compatible with swing components?
What are the methods in Applet ?
When is init(),start() called ?
When you navigate from one applet to another what are the methods
called?
What is the difference between Trusted and Untrusted Applet ?
What is Exception ?
What are the ways you can handle exception ?
When is try,catch block used ?
What is finally method in Exceptions ?
What are the types of access modifiers ?
What is protected and friendly ?
What are the other modifiers ?
Is synchronised modifier ?
What is meant by polymorphism ?
What is inheritance ?
What is method Overloading ? What is this in OOPS ?
What is method Overriding ? What is it in OOPS ?
Does java support multi dimensional arrays ?
Is multiple inheritance used in Java ?
How do you send a message to the browser in JavaScript ?
Does javascript support multidimensional arrays ?
Is there any tool in java that can create reports ?
What is meant by Java ?
What is meant by a class ?
What is meant by a method ?
What are the OOPS concepts in Java ?
What is meant by encapsulation ? Explain with an example
What is meant by inheritance ? Explain with an example
What is meant by polymorphism ? Explain with an example

www.freshersparadise.com

o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

Is multiple inheritance allowed in Java ? Why ?


What is meant by Java interpreter ?
What is meant by JVM ?
What is a compilation unit ?
What is meant by identifiers ?
What are the different types of modifiers ?
What are the access modifiers in Java ?
What are the primitive data types in Java ?
What is meant by a wrapper class ?
What is meant by static variable and static method ?
What is meant by Garbage collection ?
What is meant by abstract class
What is meant by final class, methods and variables ?
What is meant by interface ?
What is meant by a resource leak ?
What is the difference between interface and abstract class ?
What is the difference between public private, protected and static
What is meant by method overloading ?
What is meant by method overriding ?
What is singleton class ?
What is the difference between an array and a vector ?
What is meant by constructor ?
What is meant by casting ?
What is the difference between final, finally and finalize ?
What is meant by packages ?
What are all the packages ?
Name 2 calsses you have used ?
Name 2 classes that can store arbitrary number of objects ?
What is the difference between java.applet.* and java.applet.Applet ?
What is a default package ?
What is meant by a super class and how can you call a super class ?
What is anonymous class ?
Name interfaces without a method ?
What is the use of an interface ?
What is a serializable interface ?
How to prevent field from serialization ?
What is meant by exception ?
How can you avoid the runtime exception ?
What is the difference between throw and throws ?
What is the use of finally ?
Can multiple catch statements be used in exceptions ?
Is it possible to write a try within a try statement ?
What is the method to find if the object exited or not ?
What is meant by a Thread ?
What is meant by multi-threading ?
What is the 2 way of creating a thread ? Which is the best way and why?
What is the method to find if a thread is active or not ?
What are the thread-to-thread communcation ?
What is the difference between sleep and suspend ?
Can thread become a member of another thread ?
What is meant by deadlock ?
How can you avoid a deadlock ?
What are the three typs of priority ?

www.freshersparadise.com

o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

What is the use of synchronizations ?


Garbage collector thread belongs to which priority ?
What is meant by time-slicing ?
What is the use of 'this' ?
How can you find the length and capacity of a string buffer ?
How to compare two strings ?
What are the interfaces defined by Java.lang ?
What is the purpose of run-time class and system class
What is meant by Stream and Types ?
What is the method used to clear the buffer ?
What is meant by Stream Tokenizer ?
What is serialization and de-serialisation ?
What is meant by Applet ?
How to find the host from which the Applet has originated ?
What is the life cycle of an Applet ?
How do you load an HTML page from an Applet ?
What is meant by Applet Stub Interface ?
What is meant by getCodeBase and getDocumentBase method ?
How can you call an applet from a HTML file
What is meant by Applet Flickering ?
What is the use of parameter tag ?
What is audio clip Interface and what are all the methods in it ?
What is the difference between getAppletInfo and getParameterInfo ?
How to communicate between applet and an applet ?
What is meant by event handling ?
What are all the listeners in java and explain ?
What is meant by an adapter class ?
What are the types of mouse event listeners ?
What are the types of methods in mouse listeners ?
What is the difference between panel and frame ?
What is the default layout of the panel and frame ?
What is meant by controls and types ?
What is the difference between a scroll bar and a scroll panel.
What is the difference between list and choice ?
How to place a component on Windows ?
What are the different types of Layouts ?
What is meant by CardLayout ?
What is the difference between GridLayout and GridBagLayout
What is the difference between menuitem and checkboxmenu item.
What is meant by vector class, dictionary class , hash table class,and property class ?
Which class has no duplicate elements ?
What is resource bundle ?
What is an enumeration class ?
What is meant by Swing ?
What is the difference between AWT and Swing ?
What is the difference between an applet and a Japplet
What are all the components used in Swing ?
What is meant by tab pans ?
What is the use of JTree ?
How can you add and remove nodes in Jtree.
What is the method to expand and collapse nodes in a Jtree
What is the use of JTable ?
What is meant by JFC ?

www.freshersparadise.com

o What is the class in Swing to change the appearance of the Frame in


o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

Runtime.
How to reduce flicking in animation ?
What is meant by Javabeans ?
What is JAR file ?
What is meant by manifest files ?
What is Introspection ?
What are the steps involved to create a bean ?
Say any two properties in Beans ?
What is persistence ?
What is the use of beaninfo ?
What are the interfaces you used in Beans ?
What are the classes you used in Beans ?
What is the diffrence between an Abstract class and Interface
What is user defined exception ?
What do you know about the garbate collector ?
What is the difference between C++ & Java ?
How do you communicate in between Applets & Servlets ?
What is the use of Servlets ?
In an HTML form I have a Button which makes us to open another page in
15 seconds. How will do you that ?
What is the difference between Process and Threads ?
How will you initialize an Applet ?
What is the order of method invocation in an Applet ?
When is update method called ?
How will you communicate between two Applets ?
Have you ever used HashTable and Dictionary ?
What are statements in JAVA ?
What is JAR file ?
What is JNI ?
What is the base class for all swing components ?
What is JFC ?
What is Difference between AWT and Swing ?
Considering notepad/IE or any other thing as process, What will Happen if you start
notepad or IE 3 times? Where 3 processes are started or 3 threads are started ?
How does thread synchronization occurs inside a monitor ?
How will you call an Applet using a Java Script function ?
Is there any tag in HTML to upload and download files ?
Why do you Canvas ?
How can you push data from an Applet to Servlet ?
What are the benefits of Swing over AWT ?
Where the CardLayout is used ?
What is the Layout for ToolBar ?
What is the difference between Grid and GridbagLayout ?
How will you add panel to a Frame ?
What is the corresponding Layout for Card in Swing ?
What is light weight component ?
What is bean ? Where it can be used ?
What is difference in between Java Class and Bean ?
What is the mapping mechanism used by Java to identify IDL language ?
Diff between Application and Applet ?
What is serializable Interface ?
What is the difference between CGI and Servlet ?

www.freshersparadise.com

o
o
o
o
o
o

o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

What is the use of Interface ?


Why Java is not fully objective oriented ?
Why does not support multiple Inheritance ?
What it the root class for all Java classes ?
What is polymorphism ?
Suppose If we have variable ' I ' in run method, If I can create one or
More thread each thread will occupy a separate copy or same variable will
be shared ?
What is Constructor and Virtual function? Can we call Virtual
Funciton in a constructor ?
Why we use OOPS concepts? What is its advantage ?
What is the difference in between C++ and Java ? can u explain in detail?
What is the exact difference in between Unicast and Multicast object ? Where we will use ?
How do you sing an Applet ?
In a Container there are 5 components. I want to display the all the
components names, how will you do that one ?
Why there are some null interface in java ? What does it mean ?
Give me some null interfaces in JAVA ?
Tell me the latest versions in JAVA related areas ?
What is meant by class loader ? How many types are there? When will we
use them ?
What is meant by flickering ?
What is meant by cookies ? Explain ?
Problem faced in your earlier project
How OOPS concept is achieved in Java
Features for using Java
How does Java 2.0 differ from Java 1.0
Public static void main - Explain
What are command line arguments
Explain about the three-tier model
Difference between String & StringBuffer
Wrapper class. Is String a Wrapper Class
What are the restriction for static method Purpose of the file class
Default modifier in Interface
Difference between Interface & Abstract class
Can abstract be declared as Final
Can we declare variables inside a method as Final Variables
What is the package concept and use of package
How can a dead thread be started
Difference between Applet & Application
Life cycle of the Applet
Can Applet have constructors
Differeence between canvas class & graphics class
Explain about Superclass & subclass
What is AppletStub
Explain Stream Tokenizer
What is the difference between two types of threads
Checked & Unchecked exception
Use of throws exception
What is finally in exception handling Vector class
What will happen to the Exception object after exception handling
Two types of multi-tasking
Two ways to create the thread

www.freshersparadise.com

o
o
o
o
o
o

Synchronization
I/O Filter
Can applet in different page communicate with each other
Why Java is not 100 % pure OOPS ? ( EcomServer )
When we will use an Interface and Abstract class ?
How to communicate 2 threads each other ?

Frequently Asked Questions - Networking Concepts


o User(s) are complaining of delays when using the network. What would you
do?

o What are some of the problems associated with operating a switched LAN?
o Name some of the ways of combining TCP/IP traffic and SNA traffic over
the same link.

o What sort of cabling is suitable for Fast Ethernet protocols?


o What is a Class D IP address?
o Why do I sometimes lose a server's address when using more than one
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

server?
What is Firewall?
How do I monitor the activity of sockets?
How would I put my socket in non-blocking mode?
What are RAW sockets?
What is the role of TCP protocol and IP protocol.
What is UDP?
How can I make my server a daemon?
How should I choose a port number for my server?
Layers in TCP/IP
How can I be sure that a UDP message is received?
How to get IP header of a UDP message
Writing UDP/SOCK_DGRAM applications
How many bytes in an IPX network address?
What is the difference between MUTEX and Semaphore?
What is priority inversion?
Different Solutions to dining philosophers problem.
What is a message queue?
Questions on Shared Memory.
What is DHCP?
Working of ping, telnet, gopher.
Can I connect two computers to internet using same line ?
Why networks are layered ? What is the advantage of that ?
How many layers are there in OSI ? Why is it called OSI model ?
network topologies ?
Which are the different network toplogies ?
an example of bus type network.
What is the Bandwidth of ethernet ?
Explain the advantage and disadvantage of ethernet ?
Which is the protocol used in ethernet. (CSMA/CD) Why is it called so ?
What is the advantage of Ring network ?
Compare it with ethernet.

www.freshersparadise.com

Frequently Asked Questions - Object oriented Concepts


o How do you write a program which produces its own source code as its
output?

o How can I find the day of the week given the date?
o Why doesn't C have nested functions?
o What is the most efficient way to count the number of bits which are set in a
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

value?
How can I convert integers to binary or hexadecimal?
How can I call a function, given its name as a string?
How do I access command-line arguments?
How can I return multiple values from a function?
How can I invoke another program from within a C program?
How can I access memory located at a certain address?
How can I allocate arrays or structures bigger than 64K?
How can I find out how much memory is available?
How can I read a directory in a C program?
How can I increase the allowable number of simultaneously open files?
What's wrong with the call "fopen("c:\newdir\file.dat", "r")"?
What is the output of printf("%d")
What will happen if I say delete this
Difference between "C structure" and "C++ structure".
Diffrence between a "assignment operator" and a "copy constructor"
What is the difference between "overloading" and "overridding"?
Explain the need for "Virtual Destructor".
Can we have "Virtual Constructors"?
What are the different types of polymorphism?
What are Virtual Functions? How to implement virtual functions in "C"
What are the different types of Storage classes?
What is Namespace?
What are the types of STL containers?.
Difference between "vector" and "array"?
How to write a program such that it will delete itself after exectution?
Can we generate a C++ source code from the binary file?
What are inline functions?
Talk sometiming about profiling?
How many lines of code you have written for a single program?
What is "strstream" ?
How to write Multithreaded applications using C++?
Explain "passing by value", "passing by pointer" and "passing by reference"
Write any small program that will compile in "C" but not in "C++"
Have you heard of "mutable" keyword?
What is a "RTTI"?
Is there something that I can do in C and not in C++?
Why preincrement operator is faster than postincrement?
What is the difference between "calloc" and "malloc"?
What will happen if I allocate memory using "new" and free it using "free"
or allocate sing "calloc" and free it using "delete"?
What is Memory Alignment?
Explain working of printf.
Difference between "printf" and "sprintf".
What is "map" in STL?
When shall I use Multiple Inheritance?

www.freshersparadise.com

o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

What are the techniques you use for debugging?


How to reduce a final size of executable?
Give 2 examples of a code optimization.
What is inheritance?
Difference between Composition and Aggregation.
Difference: Sequence Diagrams, Collaboration Diagrams.
Difference: 'uses', 'extends', 'includes'
What shall I go for Package Diagram?
What is Polymorphism?
Is class an Object? Is object a class?
Comment: C++ "includes" behavior and java "imports"
What do you mean by "Realization"?
What is a Presistent, Transient Object?
What is the use of Operator Overloading?
Does UML guarantee project success?
Difference: Activity Diagram and Sequence Diagram.
What is association?
How to resolve many to many relationship?
How do you represent static members and abstract classes in Class
Diagram?
What does static variable mean?
What is a pointer?
What is a structure?
What are the differences between structures and arrays?
In header files whether functions are declared or defined?
What are the differences between malloc() and calloc()?
What are macros? what are its advantages and disadvantages?
Difference between pass by reference and pass by value?
What is static identifier?
Where are the auto variables stored?
Where does global, static, local, register variables, free memory and C
Program instructions get stored?
Difference between arrays and linked list?
What are enumerations?
Describe about storage allocation and scope of global, extern, static, local
and register variables?
What are register variables? What are the advantage of using register
variables?
What is the use of typedef?
Can we specify variable field width in a scanf() format string? If possible
how?
Out of fgets() and gets() which function is safe to use and why?
Difference between strdup and strcpy?
What is recursion?
Differentiate between a for loop and a while loop? What are it uses?
What are the different storage classes in C?
Write down the equivalent pointer expression for referring the same
element a[i][j][k][l]?
What is difference between Structure and Unions?
What the advantages of using Unions?
What are the advantages of using pointers in a program?
What is the difference between Strings and Arrays?
In a header file whether functions are declared or defined?

www.freshersparadise.com

o What is a far pointer? where we use it?


o How will you declare an array of three function pointers where each
function receives two ints and returns a float?

o what is a NULL Pointer? Whether it is same as an uninitialized pointer?


o What is a NULL Macro? What is the difference between a NULL Pointer and
a NULL Macro?

o What does the error 'Null Pointer Assignment' mean and what causes this
error?

o What is near, far and huge pointers? How many bytes are occupied by
them?

o How would you obtain segment and offset addresses from a far address of
a memory location?

o Are the expressions arr and &arr same for an array of integers?
o Does mentioning the array name gives the base address in all the
o
o
o
o
o
o
o
o
o
o
o

o
o
o
o
o
o
o
o
o
o
o
o
o
o

contexts?
Explain one method to process an entire string as one unit?
What is the similarity between a Structure, Union and enumeration?
Can a Structure contain a Pointer to itself?
How can we check whether the contents of two structure variables are
same or not?
How are Structure passing and returning implemented by the complier?
How can we read/write Structures from/to data files?
What is the difference between an enumeration and a set of pre-processor
# defines?
what do the 'c' and 'v' in argc and argv stand for?
Are the variables argc and argv are local to main?
What is the maximum combined length of command line arguments
including the space between adjacent arguments?
If we want that any wildcard characters in the command line arguments
should be appropriately expanded, are we required to make any special
provision? If yes, which?
Does there exist any way to make the command line arguments available
to other functions without passing them as arguments to the function?
What are bit fields? What is the use of bit fields in a Structure declaration?
To which numbering system can the binary number 1101100100111100 be
easily converted to?
Which bit wise operator is suitable for checking whether a particular bit is
on or off?
Which bit wise operator is suitable for turning off a particular bit in a
number?
Which bit wise operator is suitable for putting on a particular bit in a
number?
Which bit wise operator is suitable for checking whether a particular bit is
on or off?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or
Left shifting an unsigned int or char by 1?
Write a program to compare two strings without using the strcmp()
function.
Write a program to concatenate two strings.
Write a program to interchange 2 variables without using the third one.
Write programs for String Reversal & Palindrome check
Write a program to find the Factorial of a number
Write a program to generate the Fibinocci Series

www.freshersparadise.com

o
o
o
o
o
o
o
o

o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

Write a program which employs Recursion


Write a program which uses Command Line Arguments
Write a program which uses functions like strcmp(), strcpy()? etc
What are the advantages of using typedef in a program?
How would you dynamically allocate a one-dimensional and twodimensional array of integers?
How can you increase the size of a dynamically allocated array?
How can you increase the size of a statically allocated array?
When reallocating memory if any other pointers point into the same piece
of memory do you have to readjust these other pointers or do they get
readjusted automatically?
Which function should be used to free the memory allocated by calloc()?
How much maximum can you allocate in a single call to malloc()?
Can you dynamically allocate arrays in expanded memory?
What is object file? How can you access object file?
Which header file should you include if you are to develop a function which
can accept variable number of arguments?
Can you write a function similar to printf()?
How can a called function determine the number of arguments that have
been passed to it?
Can there be at least some solution to determine the number of arguments
passed to a variable argument list function?
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
What do the functions atoi(), itoa() and gcvt() do?
Does there exist any other function which can be used to convert an
integer or a float to a string?
How would you use qsort() function to sort an array of structures?
How would you use qsort() function to sort the name stored in an array of
pointers to string?
How would you use bsearch() function to search a name stored in array of
pointers to string?
How would you use the functions sin(), pow(), sqrt()?
How would you use the functions memcpy(), memset(), memmove()?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
How would you obtain the current time and difference between two times?
How would you use the functions randomize() and random()?
How would you implement a substr() function that extracts a sub string
from a given string?
What is the difference between the functions rand(), random(), srand() and
randomize()?
What is the difference between the functions memmove() and memcpy()?
How do you print a string on the printer?
Can you use the function fprintf() to display the output on the screen?
What is an object?
What is the difference between an object and a class?
What is the difference between class and structure?
What is public, protected, private?

www.freshersparadise.com

o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

What are virtual functions?


What is friend function?
What is a scope resolution operator?
What do you mean by inheritance?
What is abstraction?
What is polymorphism? Explain with an example.
What is encapsulation?
What do you mean by binding of data and functions?
What is function overloading and operator overloading?
What is virtual class and friend class?
What do you mean by inline function?
What do you mean by public, private, protected and friendly?
When is an object created and what is its lifetime?
What do you mean by multiple inheritance and multilevel inheritance?
Differentiate between them.
Difference between realloc() and free?
What is a template?
What are the main differences between procedure oriented languages and
object oriented languages?
What is R T T I ?
What are generic functions and generic classes?
What is namespace?
What is the difference between pass by reference and pass by value?
Why do we use virtual functions?
What do you mean by pure virtual functions?
What are virtual classes?
Does c++ support multilevel and multiple inheritance?
What are the advantages of inheritance?
When is a memory allocated to a class?
What is the difference between declaration and definition?
What is virtual constructors/destructors?
In c++ there is only virtual destructors, no constructors. Why?
What is late bound function call and early bound function call?
Differentiate.
How is exception handling carried out in c++?
When will a constructor executed?
What is Dynamic Polymorphism?
Write a macro for swapping integers.

Frequently Asked Questions - Operating System Concepts


o
o
o
o
o
o
o
o
o
o

What is MUTEX ?
What isthe difference between a 'thread' and a 'process'?
What is INODE?
Explain the working of Virtual Memory.
How does Windows NT supports Multitasking?
Explain the Unix Kernel.
What is Concurrency? Expain with example Deadlock and Starvation.
What are your solution strategies for "Dining Philosophers Problem" ?
Explain Memory Partitioning, Paging, Segmentation.
Explain Scheduling.

www.freshersparadise.com

o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

Operating System Security.


What is Semaphore?
Explain the following file systems : NTFS, Macintosh(HPFS), FAT .
What are the different process states?
What is Marshalling?
Define and explain COM?
What is Marshalling?
Difference - Loading and Linking ?
What are the basic functions of an operating system?
Explain briefly about, processor, assembler, compiler, loader, linker and the
functions executed by them.
What are the difference phases of software development? Explain briefly?
Differentiate between RAM and ROM?
What is DRAM? In which form does it store data?
What is cache memory?
What is hard disk and what is its purpose?
Differentiate between Complier and Interpreter?
What are the different tasks of Lexical analysis?
What are the different functions of Syntax phase, Sheduler?
What are the main difference between Micro-Controller and MicroProcessor?
Describe different job scheduling in operating systems.
What is a Real-Time System ?
What is the difference between Hard and Soft real-time systems ?
What is a mission critical system ?
What is the important aspect of a real-time system ?
If two processes which shares same system memory and system clock in a
distributed system, What is it called?
What is the state of the processor, when a process is waiting for some
event to occur?
What do you mean by deadlock?
Explain the difference between microkernel and macro kernel.
Give an example of microkernel.
When would you choose bottom up methodology?
When would you choose top down methodology?
Write a small dc shell script to find number of FF in the design.
Why paging is used ?
Which is the best page replacement algorithm and Why? How much time is
spent usually in each phases and why?
Difference between Primary storage and secondary storage?
What is multi tasking, multi programming, multi threading?
Difference between multi threading and multi tasking?
What is software life cycle?
Demand paging, page faults, replacement algorithms, thrashing, etc.
Explain about paged segmentation and segment paging
While running DOS on a PC, which command would be used to duplicate
the entire diskette?

www.freshersparadise.com

Frequently Asked Questions - Servlets Concepts


o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

o
o
o
o
o
o
o
o
o
o

How do u deal property files in servlet?


What methods do u use in Servlet - Applet communication ?
What are the types of Servlet ?
Difference between HttpServlet and Generic Servlets ?
Difference between doGet and doPost ?
What are the methods in HttpServlet?
What are the types of SessionTracking?
What is Cookie ? Why is Cookie used ?
If my browser does not support Cookie,and my server sends a cookie instance What will
happen ?
Why do u use Session Tracking in HttpServlet ?
Can u use javaScript in Servlets ?
What is the capacity the doGet can send to the server ?
What are the type of protocols used in HttpServlet ?
What is meant by a servlet ?
What are the types of servlets ? Explain
What is the different between a Servlet and a CGI?
What is the difference between 2 types of Servlets ?
What is the type of method for sending request from HTTP server ?
What are the exceptions thrown by Servlets ? Why ?
What is the life cycle of a servlet ?
What is meant by cookies ?
What is HTTP Session ?
What is the difference between GET and POST methods ?
How can you run a Servlet Program ?
How to commuincate between an applet and a servlet ?
What is a Servlet-to-Servlet communcation ?
What is Session Tracking ?
What are the security issues in Servlets ?
What is HTTP Tunneling?
How do you load an image in a Servlet ?
What is Servlet Chaining ?
What is URL Rewriting ?
What is context switching ?
How will you pass values from HTML page to the Servlet ?
What is Servlet API used for conneting database ?
In servlets, we are having a web page that is invoking servlets? Username and password ?
which is cheks in the database ? Suppose the second page also If we want to verify the same
information whethe it will connect to the database or it will be used previous information?
What are virtual functions ?
Write down how will you create a binary Tree ?
What are the traverses in Binary Tree ?
Write a program for recursive Traverse ?
What are session variable in Servlets ?
What is client server computing ?
What is meant by Servelet? What are the parameters of the Service Method ?
What is meant by Session ? Tell me something about HTTPSession Class ?
How do you invoke a Servelt? What is the difference in between DoPost and doGet methods ?
What is the difference in between the HTTPServlet and Generic Servlet?

www.freshersparadise.com

o Expalin their methods ? Tell me their parameter names also Have you used threads in
Servelet ?

o How do you load an Image in a Servlet ?

Frequently Asked Questions - Visual Basic


1. Which controls can not be placed in MDI ?
2. List out controls which does not have events
3. Which property of textbox cannot be changed at runtime. What is the max
size of textbox?

4. How many system controls are available


5. ___,_____ and ____ container objects.
6. ___ Property is to compress a image in image control.
7. ___,___ and __ are difference between image and picture controls.
8. To.set the command button for ESC ___ Property has to be changed.
9. Is it possible to set a shortcut key for label.
10.
What is the default property of datacontrol.
___,__,___ are the type of combo box?
11.
12.
__ no of controls in form.
OLE is used for _______
13.
14.
What is the need of tabindex property is label control.
15.
___ is the control used to call a windows application.
Clear property is available in ____,___ control.
16.
___ Property is used to count no. of items in a combobox.
17.
18.
___ is a property to resize a label control according to your caption.
19.
Which controls have refresh method.
___ property is used to change to ___ value to access a identity
20.
column'in datacontrols.
21.
_____ is the property to ___,____,____ are valid for recordsource
property of dat control.
22.
To find the current recordposition in data control.
23.
Timer control contains ________ no. of events.
24.
____ property is used to lock a textbox to enter a datas.
25.
What is the need of zorder method?
26.
____ is the difference between Listindex and Tab index.
27.
____ property of menu cannot be set at run time.
28.
Can you create a tabletype of recordset in Jet - connected ODBC
dbengine.
29.
Difference between listbox and combo box.
30.
What are the new events in textbox that has been included in VB6.0
31.
Can you create a updatecascade, Deletecascade relation in MsAccess? If no, give on eample.
32.
_____ collection in recordset used to assign a value from textbox to
table columns without making abinding in datacontrol.

www.freshersparadise.com

33.
34.

___ argument can be used to make a menuitem into bold.


What is the difference between Msgbox Statement and MsgboxQ
function?
35.
What is.the difference between queryunload and unload in form?
___,___ arguments will be used to run a executable program in
36.
shell function
37.
___ property used to add a menus at runtime.
38.
What is the difference between modal and moduless window?
___ VB constant make the menu item in centre.
39.
40.
___ method used to move a recordset pointer in nth position in
DAG.
To validate a range of values for a property whenever the property
41.
values changes,which type of property procedure you use?
42.
What are 3 main differences between flexgrid control and dbgrid
control?
43.
What is the difference between change event in normal combobox
and dbcombobox?
44.
To populate a single column value which dbcontrols you to use?
What is ODBC?
45.
46.
PartsofODBC?
WhatisDSN?
47.
48.
WhatisDAO?
49.
Types of cursors in DAO?
Types of LockEdits in DAO? 51 .Types of Recordsets.
50.
Difference between Tabletype and Snapshot?
51.
52.
Draw Sequence Modal of DAO? Explain.
53.
Difference between Dynaset and Snapshot?
Difference between Recordset and Querydef?
54.
55.
What is the use of Tabledef?
Default cursor Type and LockEdit type in DAO?
56.
57.
What is the default workspace?
58.
Is it posible to Create Tables Through Querydef?
59.
It is possible to access Text (x.txt) files? Explain.
60.
What is ODBC Direct and Microsoft Jet Database Engine ?
61.
Is it possible to Manipulate data through flexgrid? Explain.
62.
Types of DBCombo boxes
63.
What do you mean by Databound Controls? Explain.
64.
What is RDO?
65.
Types of cursors in RDO.
66.
Types of LockEdits in RDO.
67.
Types of LockEdits in RDO.
68.
Types of Resultsets.
69.
Difference between Recordset and Resultsets.
70.
Explain Default cursor Type and LockEdits type in RDO
71.
Draw Sequence Modal of RDO? Explain.

www.freshersparadise.com

72.

What is meant by Establish Connection in RDO? 74.1s it possible to


Access BackEnd procedures? Explain.
What is OLE? Explain.
73.
74.
What is DDE?
Difference between Linked Object and Embedded Object?
75.
76.
Explain OLE Drag and Drop.
77.
Difference between DDE and OLE.
78.
What is the difference between Object and Class?
79.
Give brief description about class?
80.
Does VB Supports OOPS Concepts? Explain..
81.
Difference between Class Module and Standard Module?
82.
Explain Get, Let, Set Properties.
83.
Difference Types of Procedures in VB?
84.
What is the use of NEW Keyword? Explain.
What is constructors and distructors.
85.
86.
Types of Modal windows in VB.
What is ActiveX? Explain.
87.
Types of ActiveX Components in VB?
88.
89.
Difference between ActiveX Control and Standard Control.
Difference between ActiveX Exe and Dll.
90.
What is instantiating?
91.
92.
Advantage of ActiveX Dll over Active Exe.
Difference Types of Instancing Property in ActiveX Dll and Exe.
93.
94.
What is ActiveX Dll and ActiveX Exe?
95.
Write the steps in Creating ActiveX Dll and Active Exe?
Explain the differences between ActiveX Dll and ActiveX Exe?
96.
97.
How would you use ActiveX Dll and ActiveX Exe in your application?
How would you access objects created in ActiveX Exe and ActiveX
98.
D1T
What is the use of ActiveX Documents?
99.
What is ActiveX Document?
100.
101.
What is the use of Visual Basic Document file?
102.
What is hyperlink?
103.
How would you create Visual basic Document file?
104.
What is Internet Explorer and its uses?
105.
How would you navigate between one document to another
document
106.
in Internet Explorer ?
107.
How would you run your ActiveX Document Dll?
108.
How would you view html code in Active Server Pages?
109.
How would you cre.ate your application in DHTML?
110.
What is ActiveX Control?
111.
Write the Steps in Creating an ActiveX Control?
112.
How would you attach an ActiveX control in Your Application?
113.
How would you create properties in ActiveX Control?
114.
What is the-use of property page Wizard in ActiveX Control?

www.freshersparadise.com

115.
116.
117.
118.
119.
120.
121.

How would you add elements in TreevieW Control.


What are the types of line styles available in Treeview Control?
What is the use of Imagelist Controls
How would you attach pictures in Treeview Control?
What are the uses of List View Control?
Explain the types of Views in Listview Control.
How would you attach pictures in column headers of List View
Control?
How would you add column headers in listview control?
122.
123.
How would you add elements and pictures to listitems in listview
control?
How would you activate animation control?
124.
125.
What is the use of progress Bar Control?
126.
How would you find out the value property in Slider Bar Control?
127.
What is the use of Data Form Wizard?
How would you map properties to controls by using ActiveX Control
128.
Interface Wizard?
How would you convert a form into document?
129.
130.
How would you Create a Query Builder and Explain its uses
How would you create properties by using class Builder Wizard?
131.
132.
HTML stands for What? Use of HTML ?
133.
Whether HTML supports multimedia: and document links?
DHTML Is used for what?
134.
135.
What do you mean by HTTP?
What is the use of Hyperlink control for DHTML applications?
136.
137.
How can you Navigate from the DHTML application to another
DHTML application? .
What are the Internet tools available in VB6.0?
138.
139.
Explain the usage of Web Browser Control?
140.
What do you mean by ADO?
What is the difference Between ADO and other data access objects0
141.
142.
WhatisOLEDB?
143.
What are the important components of OLEDB?
144.
Through which protocol OLEDB components are interfaced?
145.
It possible to call OLEDB's Features directly in VB without using any
control?
146.
What type of databases you can access through AD I Data Access
Object?
147.
How many objects resides in ADO ?
148.
What is the use of Connection object?
149.
What is the use of command Object?
150.
Recordset object consists what?
151.
What is the use of parameters collection?
152.
Which type of object requires this object?
153.
Is it possible to call backend procedures with ADO control?
154.
Is there any Edit method in ADO Data Access method?

www.freshersparadise.com

155.

How can you check whether a record is valid record or Invalid


record using ADO control or Object?
What do you mean by provider?
156.
157.
What type of recordsets are available in ADO?
Is it possible to call oracle database through ADO control or Object?
158.
159.
How many File System Controls are there ? Explain.
160.
How can you filter out specific type of file using file system controls?
161.
How can you get selected file from file system Control?
162.
How many ways we can access file using VB?
163.
Which method is preferred to save datas like database?
164.
How to get freefile location in memory?
165.
How to find size of the file. Which method or function is used to
occomplish this?
166.
Using which type we can access file line by line?
167.
Which method is used to write context Into file?
How can you read content from file?
168.
Binary Access-method isused to access file in which manner?
169.
170.
How can you check Beginning and End of the file?
171.
What is the use of Scalewidth and ScaleHeight Proeperty?
What is the use of Active Control Property?
172.
173.
How can you save and Get data from Clipboard/
What are the types of Error?
174.
175.
In which areas the Error occurs?
What are the tools available for Debuggiu in VB?
176.
177.
What is the use of Immediate, Local Window?
What is the use of debug Window?
178.
179.
How can you Implement windows functionality in VB?
180.
How many types of API functions are availble in VB?
How can you Add API functions to your Application?
181.
182.
How to get Cursor position using API?
Is it possible to change menu runtime using API? If yes? Specify the
183.
function names.
184.
What are the types of API Types.
185.
Scope of API's can be of types, what are they? Why API functions
are Required?

Frequently Asked Questions - Web Technology Concepts


o
o
o
o
o
o
o
o
o

What is HTTP? Explain its working?


What is DNS?
Why do I need a domain name like 'www.aucse.Com'?
What happens when I type in some url and press enter?
How does CGI work? Can I use 'C' language to write a CGI?
Working of Proxy Server, Cookies, types of cookies?
What is Firewall?
How to redirect to another page?
Some questions on web servers.

www.freshersparadise.com

o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o

What is DOM?
Connection Pooling in IIS 3.0 and 4.0
What is Code Base, Style Sheets?
Need for CSS
DHTML: Difference between FontSize and Font Size?
Layers in TCP/IP
Some sites work with "http://sitename.com" but for some sites we need
to specify "www" - like "http://www.sitename.com". Why?
Explain "URL Encoding",HTML "entity", GET method, POST method
If we force XML for web design, the browzer size will reduce. How?
How does DTD work?
Difference between ASP and DHTML?
How to create virtual directory in IIS?
Can I host muliple sites on same machine?
Administration of IIS.
Some questions on ODBC and internet.
XML and propritory databbases.
Working of ping, telnet, gopher.
Some questions about cross-browzer compatibility.

www.freshersparadise.com

You might also like