ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Programming-Languages >> Delphi
 
 


 

Back to Questions Page
 
Question
how can i add 2 numbers using delphi console application 
and also windows application , compare both program ,
reply immediatly
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;
var
f1, f2: integer;
s:      string;


begin
  { TODO -oUser -cConsole Main : Insert code here }
  try;
   f1:=0;
   f2:=0;
   write('Enter first integer: ');
   readln(f1);

   write('Enter second integer: ');
   readln(f2);
   writeLn('The numbers add up to '+inttostr(f1+f2));
   writeLn('Press enter to quit');

  except
    on E : Exception do
      writeln(E.Classname+' '+e.message);

  end;
    readln;
end.
 
0
Faizulla Khan
 
 
Question
why we should use main  in C
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   Infosys
I also faced this Question!!   © ALL Interview .com
Answer
because the execution of the c program bvegins from main().
Each function is called directly or indirectly through main.
 
0
Kiran
 
 
Question
Why you want to join IBM only not others like, TCS Infosys, 
Satyam & Wipro Etc. please do'nt give general answers?.
Rank Answer Posted By  
 Question Submitted By :: Dharmender
This Interview Question Asked @   IBM , IBM
I also faced this Question!!   © ALL Interview .com
Answer
i hav heard a lot about ur company u peaple have fame n i 
know workin with u peaple i get my carrier in high position 
i can grow myself n my experience
 
0
Pooja
 
 
 
Question
What is Delphi/400 Client Server Suite?
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   IBM
I also faced this Question!!   © ALL Interview .com
Answer
Delphi/400 Client/Server Suite

The Delphi/400 Client/Server Suite is based upon Borland's
Delphi Client/Server Suite 2.0 for Windows 95 and Windows
NT, and AS/400-compatible connectivity and development
technology recently licensed by Borland from TCIS TCIS -
Tactical Command Information System
TCIS - Tactical Communications Interface Software
TCIS - Taejon Christian International School (Korea)
TCIS - Targys Customer Inquiry System
TCIS - Taux de Chômage à Inflation Stationnaire (French:
Non-Accelerating-Inflation Rate of Unemployment)
TCIS - Thai Chinese International School
TCIS - TIE Control and Integration Subsystem
TCIS - Traitement Cooperatif et Integration des Systèmes of
Paris, France. It represents the only high-performance RAD
tool Any program or utility that speeds up the development
and programming of an application. Visual programming tools
are widely used to quickly develop graphical front ends.
..... Click the link for more information. that combines the
ease and productivity of visual component-based design, the
power of the world's fastest optimizing 32-bit native-code
compiler, and the flexibility of an open, scalable database
architecture in a robust object-oriented environment. With
the addition of the ScreenDesigner/400 specialized object
classes and ClientObject/400's APPC AS/400 connectivity,
Delphi/400 Client/Server Suite delivers an easy-to-use
Windows interface for the AS/400 that is secure, fast, and
capable of meeting the ever-increasing demands of rapid
client/server development.

"Delphi/400 Client/Server Suite is a great addition to the
AS/400 development tool chest," said Mark R. Buckner,
president of Astech Solutions, Inc., a leading AS/400
consulting and development firm based in Aurora, Ontario.
"AS/400 developers can now realize major productivity
improvements with Delphi's easy-to-use visual design tools,
high-performance database connections, and open component
model. This is definitely a product to watch."
 
0
Guest
 
 
Question
How to Get the local internet machine name and IP address?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
function GetIPFromHost
(var HostName, IPaddr, WSAErr: string): Boolean; 
type 
  Name = array[0..100] of Char; 
  PName = ^Name; 
var 
  HEnt: pHostEnt; 
  HName: PName; 
  WSAData: TWSAData; 
  i: Integer; 
begin 
  Result := False;     
  if WSAStartup($0101, WSAData) <> 0 then begin 
    WSAErr := 'Winsock is not responding."'; 
    Exit; 
  end; 
  IPaddr := ''; 
  New(HName); 
  if GetHostName(HName^, SizeOf(Name)) = 0 then
  begin 
    HostName := StrPas(HName^); 
    HEnt := GetHostByName(HName^); 
    for i := 0 to HEnt^.h_length - 1 do 
     IPaddr :=
      Concat(IPaddr,
      IntToStr(Ord(HEnt^.h_addr_list^[i])) + '.'); 
    SetLength(IPaddr, Length(IPaddr) - 1); 
    Result := True; 
  end
  else begin 
   case WSAGetLastError of
    WSANOTINITIALISED:WSAErr:='WSANotInitialised'; 
    WSAENETDOWN      :WSAErr:='WSAENetDown'; 
    WSAEINPROGRESS   :WSAErr:='WSAEInProgress'; 
   end; 
  end; 
  Dispose(HName); 
  WSACleanup; 
end;
 
0
Venu
 
 
Question
How to Retrieve a long file name from the command line ?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Suppose ur file name is "ThisIsMyFile" which is in folder 
c:\abc... then go to cmd line,

C:\>cd abc

C:\abc>th
& press Tab key, it will display the whole file name as,

C:\>cd abc

C:\abc>ThisIsMyFile.txt
 
0
Snehi
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com