-
Compareto and equals method
Difference between CompareTo and equals method.
-
Quorum Disk
What is Quorum Disk or partition in clustering?
-
Focus
Use of Focus() method in asp.net
-
Servlet as the shared object
Can we use a Servlet as the shared object
-
Driver manager
What is driver manager?
-
-
-
MVC Design pattern
what is the difference between MVC1 and MVC2 in j2EE?
-
Testing Steps - From which phase the testing should be started ?
As well as is there having any global standard testing phase which should be sequential. Like Unit testing - Module Testing ....so on.
-
Time Issues
From 7:00 AM to 11:00 AM it rained 2.25 inches. At 11:00 AM the rain increased to fall at a rate of 1.25 in. every two hours. How many inches of rain landed on the ground by 5:00 PM? a)7 b)9.75 c)6 d)3.25 e)7.125
-
-
Why java Soft has declared HttpServlet Class as an Abstract class?Is there any performance issue?
In HttpServlet class there is no any abstract method although javasoft declared this class as an abstract class.Ok,this is valid in java.So if we want to utilize this class we will have to extends this class.But we can use to achieve this one by using Httpservlet class as simple java class also.
-
BaselineTesting
What is Baseline testing? is it same for web and other type of testing?
-
-
-
What is VLAN ?
what is vlan in vio server in aix ? What is its main purpose ?
-
inverse of matrix
program to find inverse of nth order square matrix?(c++)
-
-
-
-
Linked list in java
How to implement reverse linked List using recursion?
-
-
-
partial class
where do you use partial class ? Explain with real time scenario of the usage ?
-
-
Iterative Algorithm
design an iterative algorithm to traverse a binary tree represented in two dimensional matrix
-
Sigbus error ?
what is sigbus error
-
-
Raise application error
can we raise_application_error in exception block?? if we use what will happen?
-
Error Handling
What is an error handling framework?
-
-
code switching and code mixing
what is the difference between code switching and code mixing?
-
To print unique numbers eliminating duplicates from given array
write a java code to print only unique numbers by eliminating duplicate numbers from the array? (using collection framework)
-
Floating Point Numbers
Why in c++ (0.1 + 0.1) is not equal to 0.2 ??
-
Command routing in MDI
What is command routing in MDI
-
-
-
Artificial intelligence
how do humans recognize a word?
-
-
-
Define Raster and Vector Data.
Define raster and vector data. Explain what is the difference between raster and vector data?
-
-
what are 4 member function for each object in c++.
Each C++ object possesses the 4 member fns, what are those 4 member functions.please tell me what i s the answer for this question.
-
How to Retrieve the Hidden Field Value
how to retrieve the value of hidden filed in one page from another
-
-
-
-
Sizeofthe Variable
how to find the size of the (datatype) variable in java?in c we use sizeof() operator for for finding size of data type
-
-
Is it possible to debug the RSA encrypting algorithm?
If yes, how it is possible?
-
-
-
-
-
-
-
How will you test the font of any style ?
Eg: Verdana, Arial etc
-
Minimum number of comparisons required
What is the minimum number of comparisons required to find the second smallest element in a 1000 element array?
-
Report Defects to the Developer
In how many way we can report defects to the deveploer?
-
Verification Plan
How do you plan for verification in your project?
-
C Program Execution Stages
Briefly explain the stages in execution of C program? How are printf and scanf statements statements being moved into final executable code?
-
Object Repository Extensions
When do we use .mtr and .tsr extensions in QTP? State the difference with suitable example?
-
Automation Testing Process
What is Automation Testing Process? What are the main steps invloved in it?
-
Distance Between x and z Intercept
Determine the distance between x and z intercept of the plane whose eqn is 2x+9y-3z=18
-
C Program Exectuion Stages
Briefly explain the stages in execution of C program ?How are printf and scanf statements statements being moved into final executable code?
-
CLR and Base Class Libraries
Define clr and base class libraries.
-
Java Deadlock
How to avoid deadlock in Java?
-
Indexes Searching Capabilities
How do indexes increase the searching capabilities?
-
Compress String
How to compress a String (algorithem)?
-
Open Files Simultaneously
How will you increase the allowable number of simultaneously open files?
-
Invoke Another Program
How will you invoke another program from within a C program?
-
Function Call
How will you call a function, given its name as a string?
-
URL Recording Mode
What is the use of URL Recording Mode ?
-
Read Input at Run Time
What are the different ways to read input from keyboard at run time?
-
Subject Marks
There are 5 Sub with equal high marks. Mark scored by a boy is 3:4:5:6:7 (Not sure). If his total aggregate if 3/5 of the total of the highest score, in how many subjects has he got more than 50%?
-
Find the Speed
An Engine length 1000 m moving at 10 m/s. A bird is flying from engine to end with x sec and coming back at 2x sec. Take total time of bird traveling as 187.5s. Find the to and fro speed of the bird.
-
-
Stacks Task
What kind of useful task does stacks support?
-
Inherit Private/Protected Class
Can a private/protected class be inherited? Explain
-
Masked Code
What is the number of masked code ee@?
-
DocType and DOM
What is DocType? What is DOM?
-
DataType Byte Values
What are the byte values of datatypes?
-
XML and SGML
What is the relationship between XML and SGML? Does XML replace SGML or is it a subset of SGML?
-
Compute Average of Two Scores
Describe an algorithm to compute the average of two scores obtained by each of the 100 students
-
Race Around Condition
What is race around condition?
-
Data Migration
How will you migrate the data from one system domain to another system domain? What testing procedures will follow?
-
Compile Time Constants
Do We Use const keyword only for compile time constants? Explain
-
ActiveX Component
What project option causes the necessary files to be generated when the project is compiled?
-
Print Using string copy and concate Commands
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
-
Masked Code
What is the number of the masked code ee@?
-
Read the heights in inches and wieght in pounds
Read the heights in inches and wieght in pounds of an individual and compute and print their BMI=((weight/height)/height)*703
-
State of the Art in QA
What is the "State of the Art in QA"?
-
Smart Client
What is Smart Client?
-
Microsoft XML
What is Microsoft XML?
-
Java Copy Command
Write the Java version of MS DOS Copy Command
-
Names of Constraints
Oracle stores information regarding the names of all the constraints on which table? A)USER_CONSTRAINTS B)DUAL C)USER D)None of these
-
Functional Difference
What is the functional difference between wave trap, lighning arrestor, surge absorber.
-
Function that Counts Number of Primes
Write a function that counts the number of primes in the range [1-N]. Write the test cases for this function.
-
Advantages of ADO over Data Control
Name two advantages of ADO over data control.
-
Grid Control
What is Grid Control? For what purpose it is used?
-
Average Temperature
The average temperature of Monday to Wednesday was 37C and of Tuesday to Thursday was 34C. If the temperature on Thursday was 4/5 th of that of Monday, the temperature on Thursday was?
-
DDL Operation Trigger
Which types of trigger can be fired on DDL operation? A. Instead of triggerB. DML triggerC. System triggerD. DDL trigger
-
-
Design a Framework
What are the criterias that are considered to design a framework in QTP?
-
Neutral Grounding Resistor
What is use of Grounding the Neutral of the star connecting transformer through resistor (NGR)?
-
Flat Hit Numbers
If the number of hits become flat, then the issue is with,a)App Serverb)Web serverc)Db serverd)Authorization server
-
Garbage Collection Algorithm
What algorithm is used in garbage collection?
-
Section 508 Standards
What to you mean by Section 508 Standards. In what ways it is helpful in Testing?
-
Post Order Binary Tree Traverse
Design a conventional iterative algorithm to traverse a binary tree represented in two dimensional array in postorder.
-
Algorithm Characteristics
List out the characteristics of an algorithm
-
Importance of Algorithm
What is the importance of algorithms in the field of computer science?
-
Pure Virtual Functions
How can you make a class as interface, if you cannot add any Pure Virtual Function?
-
Two-Dimensional Arrays
A Two-dimensional array X (7,9) is stored linearly column-wise in a computer's memory. Each element requires 8 bytes for storage of the value. If the first byte address of X (1,1) is 3000, what would be the last byte address of X (2,3)?
-
Bytecode to Sourcecode
How to convert bytecode to sourcecode?
-
Error Trapping Functions
Functions for error trapping are contained in which section of a PL/SQL block?
-
Internet and Telephone Network Topology
Which topology is mostly used as the internet & telephone network?
-
EAI Internal and External IO
What is Internal IO and External IO?
-
Change jar File Icon
How to change jar file icon.
-
UNIX Shells
What are the different types of shells available in UNIX?
-
QTP Unicode Compliant
Why is QTP referred to as Unicode compliant?
-
Protected Class in Assembly
What is assembly in .NET and What do you mean by protected class always present in the same assembly?
-
Thread Priority Levels
How many THREAD PRIORITY LEVELS levels are there in JAVA 3810 1224
-
Requirements Elicitation process
Explain the various steps to conduct Requirements Elicitation process
-
Intersection table
What is an intersection table and why is it important?
-
-
VB.NET testing
What's involved in end to end VB.NET testing?
-
File Compression
how can we compress any text file using c. can anybody provide me sample code
-
Requirement Gathering
Name three activities involved in requirement gathering
-
Integrity Rules
List the rules used to enforce table level integrity.
-
Degree of Relationship
What is the degree of relationship? Name the three degrees.
-
Schedule Background Jobs
How to schedule background jobs at OS level?
-
ISAPI Testing
What ISAPI testing?
-
Types of testing performed for any Windows
Enlist types of testing performed for any window in sequence?
-
RMAN Duplicate
Is it possible to specific tables when using RMAN DUPLICATE feature? If yes, how?
-
Contemporary Information Technology
What is contemporary Information Technology?
-
ORACLEs AIM
How are ORACLEs AIM (Application Implementation Methodology) used in testing?
-
-
QTP Bitmap Checkpoint
Where is the bitmap checkpoint information saved?
-
Organization Unit
What is Organization Unit? Features of Organization Unit and its benifits
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
What is WebCombo Box in Asp.net2.0
Waiting 4 ans
-
-
-
-
-
Fuzzy logic system rely on
1. Crisp binary choices 2. Ambiguous data 3. Decision makers 4. All of them
-
basic elements of a picture in volume graphics
the basic elements of a picture in volume graphics is 1. pixel 2. volsel 3. voxel 4. either pixel or voxel
-
The network address made available to the transport layer should use a uniform numbering plan
1. In a session 2. In a LAN3. In a WAN 4. across LAN and WAN
-
-
-
-
Which of the following are valid types of COM servers
A: In-process B: Local and remote C: All of the above D: None of the above
-
-
-
-
-
-
-
-
-
-
-
What are the attributes that make up a DHTML? ">
What are the attributes that make up a DHTML?
DHTML is called as Dynamic HTML. This is used to increase the interactive ability and the visual effect of the web pages which is loaded in the browser. The main technologies that are used in DHTML are namely: HTML JavaScript CSS which is also called as Cascading Style Sheet DOM also called as Document Object Model Let us see each of these in brief. JavaScript: JavaScript...
-
-
-
-
How to parameterize checkpoint ?
Insert the checkpoint and right click on the checkpoint statemnt and then select checkpoint properties option,checkpoint properties dialog box will be opended. Select the property which u want to parameterize and check the parameter radiobutton.Click on parameter options button and select relevant options and enter the parameter name and click on ok. Finally click on ok button.
An interface contains _________ methods
Skill/Topic: InheritanceA) AbstractB) Non-abstract C) Implemented D) Un-implemented
The constructor of the Hashtable class initializes data members and creates the hashtable.
Skill/Topic: Hash TableA) TrueB) FalseExplanation: The constructor of the Hashtable class initializes data members and creates the hashtable. The size of the array of pointers (tablesize) is passed to the constructor when the application declares an instance of the Hashtable class
GetSize() function is used to protect the integrity of the Data.
Skill/Topic: Hash TableA) TrueB) FalseExplanation: The getSize() member function of the Hashtable class reads the size data member of the Hashtable class and returns its value to the statement that calls the getSize() function. If you gave the application direct access to the size data member, statements within the application could assign an incorrect value to size. By controlling access to size to...
The hashString() member function is called by other member functions of the Hashtable class whenever a function needs to convert a ________________.
Skill/Topic: Hash TableA) a hash number key to a keyB) key to a hash number keyC) a key to an IndexExplanation: The hashString() member function is another function called by other member functions of the Hashtable class whenever a function needs to convert a key to a hash number key. The hashString() function requires one argument, a char pointer to the key that is being hashed. The hash number that...
The hasNext() function determines if there is another entry in the hashtable based on the current state of the iterator.
Skill/Topic: Hash TableA) TrueB) False
The java.util package contains two classes that are designed to work with hashtables. They are _______ and _________.
Skill/Topic: Hash TableA) Hashtable , HashMap class
The C++ version of the hashtable application is simpler than the Java version.
Skill/Topic: Hash TableA) TrueB) FalseExplanation: The Java version of the hashtable application is simpler than the C++ version because the Java version defines the Hashtable class in the Java Collection Classes that are defined in the java.util package
Hashing is performed at Bit level.
Skill/Topic: Hash TableA) TrueB) False
Why are data members of the Hashtable class stored in the private access specifier?
Skill/Topic: Hash TableA) Data members of the Hashtable class are stored in the private access specifier to ensure the integrity of the data. Only member functions can assign and retrieve values of these data members.
A key entered by an application be directly compared to a key in a hashtable.
Skill/Topic: Hash TableA) TrueB) FalseExplanation: No. A key entered by the application must be hashed before it can be compared to a key in the hashtable.
How is a key hashed?
Skill/Topic: Hash TableA) A hash key is created by bit shifting a hashed value and then adding to the value bits of a character of the key entered by the application
Hashing results in a hash number that has great significance.
Skill/Topic: Hash TableA) TrueB) FalseExplanation: Hashing results in a hash number that has no real significance beyond it being used as the key for an entry.
A value is also a component of a node that is used to store data.
Skill/Topic: TreeA) TrueB) False
A ______ is a component of a node that identifies the node.
Skill/Topic: TreeA) ValueB) TreeC) KeyD) IndexExplanation: A key is a component of a node that identifies the node. An application searches keys to locate a desired node
The removeNodeAt() function removes a node by using the node’s index?
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) TrueB) FalseExplanation: The removeNodeAt() function removes a node by using the node’s index rather than the reference to the node in memory
The insertNodeAt() function places a new node at a specific location in the linked list.
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) TrueB) False
The _______ function retrieves the value of the size member of the LinkedList class.
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) getSize()B) giveSize()C) seeSize()D) addSize()Explanation: The getSize() function retrieves the value of the size member of the LinkedList class. The getSize() function contains one statement that simply returns the value of the size member
The LinkedList class is defined in the _______ package.
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) java.util
Why is it important to enhance the functionality of the LinkedList class?
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) You enhance the functionality of LinkedList class to more easily manipulate a linked list
The insertNodeAt() function can place a node at the front or back of a linked list if you pass the appropriate index to this function.
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) TrueB) False
Can a linked list store data other than integers?
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) YesB) NoExplanation: Integers are usually used, but you can modify the data type of the data in the definition of the node to change the kind of data stored in the linked list.
What happens if an invalid index value is passed to a function?
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) If an invalid index is passed, the function terminates without further processing. [Explanation] Functions that use an index value always determine if the index passed to them is valid before using the index value . If an invalid index is received, the
The appendNode() function appends the new node to the list along with the programmer specifing where to place the new node in the linked list.
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) TrueB) FalseExplanation: The appendNode() function appends the new node to the list without requiring the programmer to specify where to place the new node in the linked list.
The insertNodeAt() function specifies the index of where to insert the new node into the linked list.
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) TrueB) False
What is the return value of the findNode() function?
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) The return value of the findNode() function is the index position of the node.
DeleteNode() function requires the _____ of the data element of the node that is being removed.
Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) referenceB) valueC) declarationD) variable
Why does QueueLinkedList class inherit the LinkedList class?
Skill/Topic: Queues Using Linked ListsA) The QueueLinkedList class inherits the LinkedList class because the LinkedList class contains data members and function members that are necessary to manage the linked list that is used for the queue.
_______ form of access is used to add and remove nodes from a queue.
Skill/Topic: Queues Using Linked ListsA) FIFO , First In First Out
Which node is removed from the queue when the dequeue() member method is called?
Skill/Topic: Queues Using Linked ListsA) The node at the front of the queue is removed when the dequeue() member method is called.
In an array queue, data is stored in an _____ element.
Skill/Topic: Queues Using Linked ListsA) NodeB) linked listC) arrayD) constructorExplanation: In an array queue, data is stored in an array element. In a linked list queue, data is stored in a node of a linked list
Conceptually, a linked list queue is the same as a queue built using an array.
Skill/Topic: Queues Using Linked ListsA) TrueB) FalseExplanation: Conceptually, a linked list queue is the same as a queue built using an array. Both store data. Both place data at the front of the queue and remove data from the front of the queue
The isEmpty () member function must determine if the stack is empty.
Skill/Topic: Stacks using Linked ListA) TrueB) FalseExplanation: The pop () member function must determine if the stack is empty
__________ file contains the actual stack application.
Skill/Topic: Stacks using Linked ListA) StackLinkedListDemo.cpp
Why is the destructor of the StackLinkedList class empty?
Skill/Topic: Stacks using Linked ListA) The destructor of the StackLinkedList class is empty because the destructor of the LinkedList class is called prior to the destructor of the StackLinkedList class. This is because the LinkedList class is inherited by the StackLinkedList class.
Why is the constructor of the StackLinkedList class empty?
Skill/Topic: Stacks using Linked ListA) The constructor of the StackLinkedList class is empty because the constructor of the LinkedList class is called when an instance of the StackLinkedList class is declared. The constructor of the LinkedList class initializes the node and attributes that are
How is the front of the queue calculated ?
Skill/Topic: QueueA) The front of the queue is calculated by front = (front+1) % size
What is the formula used to calculate the back of the queue?
Skill/Topic: QueueA) The back of the queue is calculated by using the following formula:back = (back+1) % size
what is report header and what are the information contains.
It display general scenario information and it contain the information like (title, scenario, result start time, end time and duration).
what is report viewer .
Each report viewer contain the report header and report viewer tool bar.
how to run a scenario.
Open an existing scenario . Configure the scenario. Set the result directory. Run the scenario.
how to modify the script.
Using vuser script information dialog box.
what is script list.
It contain all the vuser script that vuser can run.
during run time where the hosts saves the files.
In temporally in the local drive of each host.
what is scenario wizard .
Through scenario wizard we can create a new scenario.
what is load runner API function .
Data base vuser do not operate client application .using load runner API function the database vuser can access the data from the server.
confine: prisoner::
detain: suspect. APTITUDE
Antonym of SAGE
fool
Antonym of anathematize
bless
What is a root page?
The opposite of a leaf page; it is the highest level index page. An index can contain only the one root page; all other index pages are associated to the root.
What is an asynchronous write?
. It is a write to disk that may occur before or long after a commit. The write is controlled by the buffer manager.
How does Db2 use multiple table indexes?
DB2 use the multiple indexes to satisfy multiple predicates in a SELECT statement that are joined by an AND or OR.
What is the self-referencing constraint?
A31. The self-referencing constraint limits in a single table the changes to a primary key that the related foreign key defines. The foreign key in a self referencing table must specify the DELETE CASCADE rule.
What is lock contention?
To maintain the integrity of DB2 objects the DBD permits access to only on object at a time. Lock contention happens if several objects are required by contending application processes simultaneously.
How can you change the primary scripting language for a page?
Specify <%@ LANGUAGE = Scripting language %>
How does the server identify and execute the server-side scripts within HTML code?
• Including the RUNAT=SERVER attribute in the < SCRIPT > tag • Use < % … % > server script delimiter
How can you disable the browser to view the code?
Writing codes within the <! -- //-- > Tag.
Give the comment Tags for the following:
VBScript : REM & ‘(apostrophe) JavaScript : // (single line comment) /* */ (Multi-line comments)
What are the browsers that can access ASP pages?
• Internet Explorer (supports VBScript, JavaScript) • Netscape Communicator/ Navigator (supports only JavaScript, VBScript can be also added too)
How are scripts executed?
ASP provides scripting engines that execute the corresponding scripting languages on the server side. Scripts should be encoded within the <%…. %> Delimiters.
What is an .ASP file?
It is a Text File that contains the combination of the following: • Text • HTML tags • Script Commands
What are the collections of Application Object?
* Contents collection – contains all variables added via scripts in global.asa. * Static collection – contains the names of all objects added via the <OBJECT> tag in global.asa.
What is HTML(Hypertext Markup Language)?
It’s a method by which web pages can be built and generally used for formatting and linking text.
What are the advantages of using ASP?
• Minimizes network traffic by limiting the need for the browser and server to talk to each other • Makes for quicker loading time since HTML pages are only downloaded • Allows to run programs in languages that are not supported by the browser • Can provide the client with data that does not reside on the client’s machine • Provides improved security measures since the script cannot be viewed by the...
What are the ASP Scripting Objects?
The Dictionary object, the FileSystemObject object, TextStream object.
What are Scripting Objects?
Objects that can enhance the application are known as the Scripting Objects.
What are the properties used to control the expiration of the page?
• Expires – specifies the number of minutes before a page cached on a browser expires. • ExpiresAbsolute – sets the date and time at which a page cached on a browser expires.
Naming constraints for a variable.
It can be up to 255 characters Must start with an alphabet Must not contain an embedded period or full-stop
What is a variable?
Variable is a memory location through which the actual values are stored/retrieved. Its value can be changed.
What is RdExecDirect?
Bypasses the Creation of a stored procedure to execute the query. Does not apply to Oracle.
DSN Less Connection?
"Server=Oracle; Driver={Microsoft ODBC for Oracle};"
What is DBFailError?
Rolls Back updates if any errors Occurs.
What is DBSqlPassThrough?
It will By Passing the Jet Query Processor.
What is FireHouse Cursors?
Forward Only Some time Updateable
What is Static Cursor?
In ADO Snap Shot is called so.
Diff types of Lock Types?
RdConcurReadOnly 0 (Default) RdConcurLock 1 (Pessimistic Locking) RdConcurRowver 2 (Optimistic Lociking) RdConcurValues 3 RdConcurBatch 4
What are the record set types?
RdOpenFowardOnly 0 (Default used only for the read only purpose) RdOpenStatic 1 RdOpenDynamic 2 RdOpenKeySet 3 (Normally used for the live project)
Setting the Cursors.
Default Cursor – 0 ODBC Cursor (Client side) – 1 ServerSide Cursors (More Network traffic) - 2
How to increase the Date corresponding with month,date,year?
DateSerial(year(Now),Month(Now)+1,1) Hour, min, sec, month, year, DateSerial, dateadd, datediff, weekday, datevalue, timeserial,timevalue.
What methods are used for DBGrid in unbound mode?
AddData, EditData, Readdata, WriteData.
What is view Port?
The area under which the container provides the view of the ActiveX Document is known as a view port.
How to trap Data Base Error?
Dim x as RDOError X(0).Des X(1).Number
To connect the Data Control with Back end What are all the properties to be set?
Data source Name, Record Source Name
What is Centralization Error Handling?
Writing function and calling it when error occurs.
What is Seek Method which type of record set is available this?
Only in DbOpenTables. Syntax: rs.index = "empno" rs.seek "=" , 10 If with our setting the rs.index then run time error will occur.
What are the different types of error?
Syntax Errors, Runtime , Logic.
Different type of Passing Value?
By value, By ref, Optional, Param Array. Note:- Optional keyword cannot be used while declaring arguments for a function using param array.
What is MAPI ?
Messaging Application programming Interface.
What are the Technologies for Accessing Database from Visual Basic?
DAO, Data Control, RDO, ODBCDIRECT, ADO, ODBC API , 0040.
How can we call Stored procedure of Back End in RDO and ADO ?
In RDO – We can call using RDO Query Objects. In ADO – We can call using Command Objects.
What are the locks available in Visual Basic?
Locking is the process by which a DBMS restricts access to a row in a multi-user environment 4 types of locks. They are 1. Batch Optimistic 2. Optimistic 3. Pessimistic 4. ReadOnly Operations in a relational database act on a complete set of rows. The set of rows returned by a SELECT statement consists of all the rows that satisfy the conditions in the WHERE clause of the statement. This complete set...
Record set types and Number available in VB?
3. 1- Dynaset, 0 – Table, 2 – Snap Shot.
What are two validate with Data Control?
Data_Validate, Data_Error.
What is Dataware Control?
Any control bound to Data Control. Ex:- Textbox, Check Box, Picture Box, Image Control, Label, List box, Combo Box, DB Combo,
What is ADO? What are its objects ?
ActiveX Data Object. ADO can access data from both flat files as well as the databases. I.e., It is encapsulation of DAO, RDO, and OLE that is why we call it as OLE-DB Technology. Objects are Connection, Record Set, Command, Parameter, field, Error, Property.
What is difference between datagrid and flexgrid?
Datagrid – Editable. Flexigrid – Non-Editable. (Generally used for Read only purpose.)
How to change the Mouse Pointer?
Screen.MousePointer = VBHourGlass/VBNormal.
What is Parser Bug?
It is difficult to use database objects declared in a module from within a form.
What are the different types of Dialog Box?
Predefined, Custom, User Defined.
What are the Style Properties of Combo Box?
Simple, Dropdown list – We can type and select. Dropdown Combo – Only Drop Down.
In project properties if we set Unattended what is it mean?
This cannot have user interface. This can be used for the COM creation.
What are the scopes of the class?
Public, private, Friend
Private Dim x as integer. Valid ?
Private cannot be used in front of DIM.
What is Static Variable?
Its Scope will be available through out the life time.
What is the diff between the Create Object and Get object?
Create Object - To create an instance of an object. Get Object – To get the reference to an existing object.
Why we use Treeview Control?
To list the hierarchical list of the node objects. Such of files and Directories.
What are properties available in Clip Board?
No Properties Available. Only the methods they are SetText, GetText, Setdata(), Getformat(), Clear.
How to declare Dll Procedure?
Declare function "<Function Name>" lib "<Lib Name>" Alias "<Alias Name>" (Arg, …..) as Return type.
Different type of Instantiation?
Private – Only for the Specific Module. Public not creatable – Private & Public Multi Use - Variable we have to declare. Single Use – Not possible through dll. Global Multiuse – Have variable not Required to Declare. Global Single Use - Only for exe.
Suppose from form1 to form2 object property settings will arise to ?
Invalid procedure call or argument (Run time error – 5)
What is control array and how many we can have it with in the form?
Group of control share the same name. Max 32, 767.
Drag and Drop state numbers and functions?
State 0 – Source control is being dragged with the range of a target. 1 – Out of the range of a target. 2 – One position in the target to another.
What is the difference between Property Get, Set and Let?
Set – Value is assigned to ActiveX Object from the form. Let – Value is retried to ActiveX Object from the form. Get- Assigns the value of an expression to a variable or property.
What is Friend Variable?
Scope sharable between projects.
Where will we give the option explicit keyword and for what?
In the general declarations section. To trap undeclared variables.
what is the diff. Between function and sub procedures
) Function will return value but a sub procedure wont return values…
What is keyword used to compare to objects?
ISOperator – Returns Boolean.
Name some date function
Dateadd(), Datediff(), Datepart(), Cdate()
What is the max size allowed for Extension in Visual Basic
Frm, bas, cls, res, vbx, ocx, frx, vbp, exe
What is the return type of Instr and Strcmp?
Instr – integer (Numeric position)Strcmp - integer ( if both the string are equal they result = 0) Strcmp (Str1, Str2, Comparetype) Comparing mode = 0 – Binary Comparing 1 – Textual Comparing
what is a method?
a way of doing something, especially a systematic way; implies an orderly logical arrangement (usually in steps)
Differentiate between a linker and linkage?
A linker converts an object code into an executable code by linking together the necessary build in functions. The form and place of declaration where the variable is declared in a program determine the linkage of variable.
What is storage class and what are storage variable ?
A storage class is an attribute that changes the behavior of a variable. It controls the lifetime, scope and linkage.There are five types of storage classes 1)auto 2)static 3)extern 4)register 5)typedef
Is it better to use malloc() or calloc()?
Both the malloc() and the calloc() functions are used to allocate dynamic memory. Each operates slightly different from the other. malloc() takes a size and returns a pointer to a chunk of memory at least that big: void *malloc( size_t size ); calloc() takes a number of elements, and the size of each, and returns a pointer to a chunk of memory at least big enough to hold them all: void *calloc(...
What is indirection?
If you declare a variable, its name is a direct reference to its value. If you have a pointer to a variable, or any other object in memory, you have an indirect reference to its value.
What are the Classification of clients?
Non-GUI clients - Two types are Non-GUI clients that do not need multi-tasking(Example: Automatic Teller Machines (ATM), Cell phone)Non-GUI clients that need multi-tasking (Example: ROBOTs)GUI clientsOOUI clients
What are the building blocks of Client/Server?
The clientThe server andMiddleware
What are called Transactions?
The grouped SQL statements are called Transactions (or) A transaction is a collection of actions embused with ACID properties.
What are the types of Servers?
File serversDatabase serversTransaction serversGroupware serversObject serversWeb servers
What is meant by Mix-and-match?
The ideal Client/Server software is independent of hardware and Operating System software platform. It should be able to mix-and-match client and server platforms.
What is Gateway-to-Gateway protocol?
It is a protocol formerly used to exchange routing information between Internet core routers.
What is IGP (Interior Gateway Protocol)?
It is any routing protocol used within an autonomous system.
What is Mail Gateway?
It is a system that performs a protocol translation between different electronic mail delivery protocols.
What is multicast routing?
Sending a message to a group is called multicasting, and its routing algorithm is called multicast routing.
What is virtual path?
Along any transmission path from a given source to a given destination, a group of virtual circuits can be grouped together into what is called path.
What is virtual channel?
Virtual channel is normally a connection from one source to one destination, although multicast connections are also permitted. The other name for virtual channel is virtual circuit.
Explain 5-4-3 rule?
In a Ethernet network, between any two points on the network, there can be no more than five network segments or four repeaters, and of those five segments only three of segments can be populated.
What is Beaconing?
The process that allows a network to self-repair networks problems. The stations on the network notify the other stations on the ring when they are not receiving the transmissions. Beaconing is used in Token ring and FDDI networks.
What is terminal emulation, in which layer it comes?
Telnet is also called as terminal emulation. It belongs to application layer.
Condition for deadlock occurrence?
Deadlock can arise if four conditions hold simultaneously.Mutual exclusion: only one process at a time can use a resource.Hold and wait: a process holding at least one resource is waiting to acquire additional resources held by other processes.No preemption: a resource can be released only voluntarily by the process holding it, after that process has completed its task.Circular wait: ...
What is starvation and aging?
Starvation: Starvation is a resource management problem where a process does not get the resources it needs for a long time because the resources are being allocated to other processes. Aging: Aging is a technique to avoid starvation in a scheduling system. It works by adding an aging factor to the priority of each request. The aging factor must increase the request’s priority as time passes and...
While running DOS on a PC, which command would be used to duplicate the entire diskette?
diskcopy Java Thread States
What is Context Switch?
Switching the CPU to another process requires saving the state of the old process and loading the saved state for the new process. This task is known as a context switch.Context-switch time is pure overhead, because the system does no useful work while switching. Its speed varies from machine to machine, depending on the memory speed, the number of registers which must be copied, the existed of special...
Why paging is used?
Paging is solution to external fragmentation problem which is to permit the logical address space of a process to be noncontiguous, thus allowing a process to be allocating physical memory wherever the latter is available.
Differentiate between Complier and Interpreter?
An interpreter reads one instruction at a time and carries out the actions implied by that instruction. It does not perform any translation. But a compiler translates the entire instructions.
What information that the ServletResponse interface gives the servlet methods for replying to the client?
It Allows the servlet to set the content length and MIME type of the reply. Provides an output stream, ServletOutputStream and a Writer through which the servlet can send the reply data.
What is the servlet life cycle?
Each servlet has the same life cycle:A server loads and initializes the servlet (init())The servlet handles zero or more client requests (service())The server removes the servlet (destroy()) (some servers do this step only when they shut down)
What class allows you to read objects directly from a stream?
The ObjectInputStream class supports the reading of objects from input streams.
Name four methods every Java class will have.
public String toString();public Object clone();public boolean equals();public int hashCode();
Does Java have destructors?
No garbage collector does the job working in the background
Q: Why are Java ARchive (JAR) files important?
JAR files bundle .class files and optimize applet downloads.
Q: What is it object serialization ?
Serialization is a way to convert objects (including complex data structures such as lists and trees) into a stream of bytes.
What is the List interface
The List interface provides support for ordered collections of objects.
What methods are used to get and set the text label displayed by a Buttonobject
getLabel() and setLabel()
What method must be implemented by all threads
All tasks must implement the run() method, whether they are a subclass of Thread orimplement theRunnable interface.
When is an object subject to garbage collection
An object is subject to garbage collection when it becomes unreachable to the program inwhich it is used.
Can an unreachable object become reachable again
An unreachable object may become reachable again. This can happen when the object'sfinalize() method isinvoked and the object performs an operation which causes it to become accessible toreachable objects.
What modifiers may be used with a top-level class
A top-level class may be public, abstract, or final.
What is the purpose of a statement block
A statement block is used to organize a sequence of statements as a single statementgroup.
To what value is a variable of the boolean type automatically initialized
The default value of the boolean type is false.
What is the difference between a public and a non-public class
A public class may be accessed outside of its package. A non-public class may not beaccessed outside ofits package.
What is the difference between a Scrollbar and a ScrollPane
A Scrollbar is a Component, but not a Container. A ScrollPane is a Container. AScrollPane handles itsown events and performs its own scrolling.
What is the ResourceBundle class
The ResourceBundle class is used to store locale-specific resources that can be loaded bya program totailor the program's appearance to the particular locale in which it is being run.
What are three ways in which a thread can enter the waiting state
A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O,by unsuccessfullyattempting to acquire an object's lock, or by invoking an object's wait() method. It canalso enter thewaiting state by invoking its (deprecated) suspend() method.
Which arithmetic operations can result in the throwing of anArithmeticException
Integer / and % can result in the throwing of an ArithmeticException.
What is a layout manager
A layout manager is an object that is used to organize components in a container.
What happens if an exception is not caught
An uncaught exception results in the uncaughtException() method of the thread'sThreadGroup beinginvoked, which eventually results in the termination of the program in which it is thrown.
How can a dead thread be restarted
A dead thread cannot be restarted.
What interface is extended by AWT event listeners
All AWT event listeners extend the java.util.EventListener interface.
What is a compilation unit
A compilation unit is a Java source code file.
What is the purpose of garbage collection
The purpose of garbage collection is to identify and discard objects that are no longerneeded by a programso that their resources may be reclaimed and reused.
How are this and super used
this is used to refer to the current object instance. super is used to refer to the variablesand methods of thesuperclass of the current object instance.
What interface must an object implement before it can be written to a streamas an object
An object must implement the Serializable or Externalizable interface before it can bewritten to a stream asan object.
Which package is always imported by default
The java.lang package is always imported by default.
What happens when you add a double value to a String
The result is a String object.
What is a void return type
A void return type indicates that a method does not return a value.
Are true and false keywords
The values true and false are not keywords.
What are E and PI
E is the base of the natural logarithm and PI is mathematical value pi.
What classes of exceptions may be thrown by a throw statement
A throw statement may throw any expression that may be assigned to the Throwabletype.
What is the Set interface
The Set interface provides methods for accessing the elements of a finite mathematicalset. Sets do notallow duplicate elements.
If an object is garbage collected, can it become reachable again
Once an object is garbage collected, it ceases to exist. It can no longer become reachableagain.
What an I/O filter
An I/O filter is an object that reads from one stream and writes to another, usuallyaltering the data in someway as it is passed from one stream to another.
How are the elements of a GridLayout organized
The elements of a GridBad layout are of equal size and are laid out using the squares of agrid.
What are the legal operands of the instanceof operator
The left operand is an object reference or null value and the right operand is a class,interface, or array type.
What state is a thread in when it is executing
An executing thread is in the running state.
Why are the methods of the Math class static
So they can be invoked as if they are a mathematical code library.
What is the relationship between a method's throws clause and the exceptionsthat can bethrown during the method's execution
A method's throws clause must declare any checked exceptions that are not caught withinthe body of themethod.
How are this() and super() used with constructors
this() is used to invoke a constructor of the same class. super() is used to invoke asuperclass constructor.
Under what conditions is an object's finalize() method invoked by the garbagecollector
The garbage collector invokes an object's finalize() method when it detects that the objecthas becomeunreachable.
What is the difference between a field variable and a local variable
A field variable is a variable that is declared as a member of a class. A local variable is avariable that isdeclared local to a method.
What class allows you to read objects directly from a stream
The ObjectInputStream class supports the reading of objects from input streams.
What class of exceptions are generated by the Java run-time system
The Java runtime system generates RuntimeException and Error exceptions.
What is the difference between a Choice and a List
A Choice is displayed in a compact form that requires you to pull it down to see the listof availablechoices. Only one item may be selected from a Choice. A List may be displayed in such away that severalList items are visible. A List supports the selection of one or more List items.
Name four Container classes
Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane
What is the return type of a program's main() method
A program's main() method has a void return type.
What restrictions are placed on method overloading
Two methods may not have the same name and argument list but different return types.
Which non-Unicode letter characters may be used as the first character of anidentifier
The non-Unicode letter characters $ and _ may appear as the first character of anidentifier
How can the Checkbox class be used to create a radio button
By associating Checkbox objects with a CheckboxGroup.
If a method is declared as protected, where may the method be accessed
A protected method may only be accessed by classes or interfaces of the same package orby subclasses ofthe class in which it is declared.
When is the finally clause of a try-catch-finally statement executed
The finally clause of the try-catch-finally statement is always executed unless the threadof executionterminates or an exception occurs within the execution of the finally clause.
Which Math method is used to calculate the absolute value of a number
The abs() method is used to calculate absolute values.
Can an exception be rethrown
Yes, an exception can be rethrown.
What is the purpose of the File class
The File class is used to create objects that provide access to the files and directories of alocal file system.
What is the difference between the paint() and repaint() methods
The paint() method supports painting via a Graphics object. The repaint() method is usedto cause paint() tobe invoked by the AWT painting thread.
What modifiers can be used with a local inner class
A local inner class may be final or abstract.
What is the Collection interface
The Collection interface provides support for the implementation of a mathematical bag -an unorderedcollection of objects that may contain duplicates.
What event results from the clicking of a button
The ActionEvent event is generated as the result of the clicking of a button.
What is the highest-level event class of the event-delegation model
The java.util.EventObject class is the highest-level class in the event-delegation classhierarchy.
Is a class a subclass of itself
A class is a subclass of itself.
What modifiers may be used with an interface declaration
An interface may be declared as public or abstract.
What restrictions are placed on the values of each case of a switch statement
During compilation, the values of each case of a switch statement must evaluate to avalue that can bepromoted to an int value.
What is the relationship between clipping and repainting
When a window is repainted by the AWT painting thread, it sets the clipping regions tothe area of thewindow that requires repainting.
Is &&= a valid Java operator
No, it is not.
How are the elements of a CardLayout organized
The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.
For which statements does it make sense to use a label
The only statements for which it makes sense to use a label are those statements that canenclose a break orcontinue statement.
What is the Map interface
The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys withvalues.
What is the SimpleTimeZone class
The SimpleTimeZone class provides support for a Gregorian calendar.
What classes of exceptions may be caught by a catch clause
A catch clause can catch any exception that may be assigned to the Throwable type. Thisincludes the Errorand Exception types.
What happens when a thread cannot acquire a lock on an object
If a thread attempts to execute a synchronized method or synchronized statement and isunable to acquirean object's lock, it enters the waiting state until the lock becomes available.
How is rounding performed under integer division
The fractional part of the result is truncated. This is known as rounding toward zero.
What is the difference between the Font and FontMetrics classes
The FontMetrics class is used to define implementation-specific properties, such asascent and descent, of aFont object.
Can an object be garbage collected while it is still reachable
A reachable object cannot be garbage collected. Only unreachable objects may begarbage collected..
Which class is extended by all other classes
The Object class is extended by all other classes.
What is the difference between a Window and a Frame
The Frame class extends Window to define a main application window that can have amenu bar.
When can an object reference be cast to an interface reference
An object reference be cast to an interface reference when the object implements thereferenced interface.
What is the % operator
It is referred to as the modulo or remainder operator. It returns the remainder of dividingthe first operandby the second operand.
How are the elements of a BorderLayout organized
The elements of a BorderLayout are organized at the borders (North, South, East, andWest) and the centerof a container.
If a variable is declared as private, where may the variable be accessed
A private variable may only be accessed within the class in which it is declared.
What is the difference between a static and a non-static inner class
A non-static inner class may have object instances that are associated with instances ofthe class's outerclass. A static inner class does not have any object instances.
What value does read() return when it has reached the end of a file
The read() method returns -1 when it has reached the end of a file.
What are the high-level thread states
The high-level thread states are ready, running, waiting, and dead.
What is the relationship between the Canvas class and the Graphics class
A Canvas object provides access to a Graphics object via its paint() method.
What is an abstract method
An abstract method is a method whose implementation is deferred to a subclass.
How are commas used in the initialization and iteration parts of a for statement
Commas are used to separate multiple statements within the initialization and iterationparts of a forstatement.
Name two subclasses of the TextComponent class
TextField and TextArea
What method is invoked to cause an object to begin executing as a separatethread
The start() method of the Thread class is invoked to cause an object to begin executing asa separate thread.
What must a class do to implement an interface
It must provide all of the methods in the interface and identify the interface in itsimplements clause.
Can a double value be cast to a byte
Yes, a double value can be cast to a byte.
What is the Locale class
The Locale class is used to tailor program output to the conventions of a particulargeographic, political, orcultural region.
Which Java operator is right associative
The = operator is right associative.
What is the purpose of the finally clause of a try-catch-finally statement
The finally clause is used to provide the capability to execute code no matter whether ornot an exception isthrown or caught.
How many times may an object's finalize() method be invoked by the garbagecollector
An object's finalize() method may only be invoked once by the garbage collector.
What is the purpose of the Runtime class
The purpose of the Runtime class is to provide access to the Java runtime system.
What is the GregorianCalendar class
The GregorianCalendar provides support for traditional Western calendars.
Name three subclasses of the Component class
Box.Filler, Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, orTextComponent
What invokes a thread's run() method
After a thread is started, via its start() method or that of the Thread class, the JVMinvokes the thread'srun() method when the thread is initially executed.
What is the purpose of finalization
The purpose of finalization is to give an unreachable object the opportunity to performany cleanupprocessing before the object is garbage collected.
What is the range of the char type
The range of the char type is 0 to 2^16 - 1.
What is the range of the short type
The range of the short type is -(2^15) to 2^15 - 1.
Can an anonymous class be declared as implementing an interface andextending a class
An anonymous class may implement an interface or extend a superclass, but may not bedeclared to doboth.
When a thread is created and started, what is its initial state
A thread is in the ready state after it has been created and started.
What class is the top of the AWT event hierarchy
The java.awt.AWTEvent class is the highest-level class in the AWT event-classhierarchy.
What is the catch or declare rule for method declarations
If a checked exception may be thrown within the body of a method, the method musteither catch theexception or declare it in its throws clause.
To what value is a variable of the String type automatically initialized
The default value of an String type is null.
When a thread blocks on I/O, what state does it enter
A thread enters the waiting state when it blocks on I/O.
Can a for statement loop indefinitely
Yes, a for statement can loop indefinitely. For example, consider the following:for(;;) ;
What is clipping
Clipping is the process of confining paint operations to a limited area or shape.
What value does readLine() return when it has reached the end of a file
The readLine() method returns null when it has reached the end of a file.
Name three Component subclasses that support painting
The Canvas, Frame, Panel, and Applet classes support painting.
Can an object's finalize() method be invoked while it is reachable
An object's finalize() method cannot be invoked by the garbage collector while the objectis still reachable.However, an object's finalize() method may be invoked by other objects.
What restrictions are placed on the location of a package statement within asource code file
A package statement must appear as the first line in a source code file (excluding blanklines andcomments).
Does garbage collection guarantee that a program will not run out of memory
Garbage collection does not guarantee that a program will not run out of memory. It ispossible forprograms to use up memory resources faster than they are garbage collected. It is alsopossible forprograms to create objects that are not subject to garbage collection
What are wrapped classes
Wrapped classes are classes that allow primitive types to be accessed as objects.
Is sizeof a keyword
The sizeof operator is not a keyword.
Which java.util classes and interfaces support event handling
The EventObject class and the EventListener interface support event processing.
What is the difference between the >> and >>> operators
The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that havebeen shifted out.
What is an Iterator interface
The Iterator interface is used to step through the elements of a Collection.
What modifiers may be used with an inner class that is a member of an outerclass
A (non-local) inner class may be declared as public, protected, private, static, final, orabstract.
How does Java handle integer overflows and underflows
It uses those low order bytes of the result that can fit into the size of the type allowed bythe operation.
What is the List interface
The List interface provides support for ordered collections of objects.
What state does a thread enter when it terminates its processing
When a thread terminates its processing, it enters the dead state.
Which containers use a FlowLayout as their default layout
The Panel and Applet classes use the FlowLayout as their default layout.
What method is used to specify a container's layout
The setLayout() method is used to specify a container's layout.
What is the preferred size of a component
The preferred size of a component is the minimum component size that will allow the component to display normally.
Is null a keyword
The null value is not a keyword.
What's new with the stop(), suspend() and resume() methods in JDK 1.2
The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.
Why do threads block on I/O
Threads block on i/o (that is enters the waiting state) so that other threads may executewhile the i/oOperation is performed.
which containers use a border Layout as their default layout
The window, Frame and Dialog classes use a border layout as their default layout.
What is the List interface
The List interface provides support for ordered collections of objects.
What happens when you add a double value to a String
The result is a String object.
What methods are used to get and set the text label displayed by a Button object
getLabel() and setLabel()
What method must be implemented by all threads
All tasks must implement the run() method, whether they are a subclass of Thread orimplement the Runnable interface.
When is an object subject to garbage collection
An object is subject to garbage collection when it becomes unreachable to the program inwhich it is used.
Can an unreachable object become reachable again
An unreachable object may become reachable again. This can happen when the object'sfinalize() method is invoked and the object performs an operation which causes it tobecome accessible to reachable objects.
What are the Object and Class classes used for
The Object class is the highest-level class in the Java class hierarchy. The Class class isused to represent the classes and interfaces that are loaded by a Java program..
What is the purpose of a statement block
A statement block is used to organize a sequence of statements as a single statementgroup.
To what value is a variable of the boolean type automatically initialized
The default value of the boolean type is false.
What is the difference between a public and a non-public class
A public class may be accessed outside of its package. A non-public class may not beaccessed outside of its package.
What is the ResourceBundle class
The ResourceBundle class is used to store locale-specific resources that can be loaded bya program to tailor the program's appearance to the particular locale in which it is beingrun.
Can an abstract class be final
An abstract class may not be declared as final.
What are three ways in which a thread can enter the waiting state
A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O,by unsuccessfully attempting to acquire an object's lock, or by invoking an object's wait()method. It can also enter the waiting state by invoking its (deprecated) suspend() method.
What is a layout manager
A layout manager is an object that is used to organize components in a container.
What happens if an exception is not caught
An uncaught exception results in the uncaughtException() method of the thread'sThreadGroup being invoked, which eventually results in the termination of the programin which it is thrown.
What interface is extended by AWT event listeners
All AWT event listeners extend the java.util.EventListener interface.
What is a compilation unit
A compilation unit is a Java source code file.
What is the purpose of garbage collection
The purpose of garbage collection is to identify and discard objects that are no longerneeded by a program so that their resources may be reclaimed and reused.
How are this and super used
this is used to refer to the current object instance. super is used to refer to the variablesand methods of the superclass of the current object instance.
What interface must an object implement before it can be written to astream as an object
An object must implement the Serializable or Externalizable interface before it can bewritten to a stream as an object.
Which package is always imported by default
The java.lang package is always imported by default.
What happens when you add a double value to a String
The result is a String object.
What is the purpose of the enableEvents() method
The enableEvents() method is used to enable an event for a particular object. Normally,an event is enabled when a listener is added to an object for a particular event. TheenableEvents() method is used by objects that handle events by overriding their eventdispatchmethods.
What is a void return type
A void return type indicates that a method does not return a value.
What are E and PI
E is the base of the natural logarithm and PI is mathematical value pi.
What classes of exceptions may be thrown by a throw statement
A throw statement may throw any expression that may be assigned to the Throwabletype.
What is the Set interface
The Set interface provides methods for accessing the elements of a finite mathematicalset. Sets do not allow duplicate elements.
If an object is garbage collected, can it become reachable again
Once an object is garbage collected, it ceases to exist. It can no longer become reachableagain.
What an I/O filter
An I/O filter is an object that reads from one stream and writes to another, usuallyaltering the data in some way as it is passed from one stream to another.
What are the legal operands of the instanceof operator
The left operand is an object reference or null value and the right operand is a class,interface, or array type.
What state is a thread in when it is executing
An executing thread is in the running state.
Under what conditions is an object's finalize() method invoked by the garbagecollector
The garbage collector invokes an object's finalize() method when it detects that the objecthas become unreachable.
What class allows you to read objects directly from a stream
The ObjectInputStream class supports the reading of objects from input streams.
What class of exceptions are generated by the Java run-time system
The Java runtime system generates RuntimeException and Error exceptions.
What is the difference between a Choice and a List
A Choice is displayed in a compact form that requires you to pull it down to see the listof available choices. Only one item may be selected from a Choice. A List may bedisplayed in such a way that several List items are visible. A List supports the selectionof one or more List items.
What happens when you invoke a thread's interrupt method while it issleeping or waiting
When a task's interrupt() method is executed, the task enters the ready state. The nexttime the task enters the running state, an InterruptedException is thrown.
Which non-Unicode letter characters may be used as the first characterof an identifier
The non-Unicode letter characters $ and _ may appear as the first character of anidentifier
How can the Checkbox class be used to create a radio button
By associating Checkbox objects with a CheckboxGroup.
Which Math method is used to calculate the absolute value of a number
The abs() method is used to calculate absolute values.
Can an exception be rethrown
Yes, an exception can be rethrown.
What is the purpose of the File class
The File class is used to create objects that provide access to the files and directories of alocal file system.
How can a GUI component handle its own events
A component can handle its own events by implementing the required event-listenerinterface and adding itself as its own event listener.
What event results from the clicking of a button
The ActionEvent event is generated as the result of the clicking of a button.
What is the highest-level event class of the event-delegation model
The java.util.EventObject class is the highest-level class in the event-delegation classhierarchy.
What is the relationship between clipping and repainting
When a window is repainted by the AWT painting thread, it sets the clipping regions tothe area of the window that requires repainting.
How are the elements of a CardLayout organized
The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.
What is the purpose of the System class
The purpose of the System class is to provide access to system resources.
What is the SimpleTimeZone class
The SimpleTimeZone class provides support for a Gregorian calendar.
What is the difference between the Reader/Writer class hierarchy and theInputStream/OutputStream class hierarchy
The Reader/Writer class hierarchy is character-oriented, and theInputStream/OutputStream class hierarchy is byte-oriented.
What is the difference between the Font and FontMetrics classes
The FontMetrics class is used to define implementation-specific properties, such asascent and descent, of a Font object.
Which class is extended by all other classes
The Object class is extended by all other classes.
What are the high-level thread states
The high-level thread states are ready, running, waiting, and dead.
What is an abstract method
An abstract method is a method whose implementation is deferred to a subclass.
What method is invoked to cause an object to begin executing as a separate thread
The start() method of the Thread class is invoked to cause an object to begin executing asa separate thread.
What is the GregorianCalendar class
The GregorianCalendar provides support for traditional Western calendars.