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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
give one ip, find out which contry
 Question Submitted By :: Praveen
I also faced this Question!!     Rank Answer Posted By  
 
  Re: give one ip, find out which contry
Answer
# 1
You can use simple ASP script to lookup country code/name
from any ip addresses
 
Is This Answer Correct ?    0 Yes 0 No
Sunil
 
  Re: give one ip, find out which contry
Answer
# 2
hi sunil

can you give me the code for that or can you explain in detail
 
Is This Answer Correct ?    0 Yes 0 No
Ranjita
 
 
 
  Re: give one ip, find out which contry
Answer
# 3
Hi! Ranjita

Are you online?
 
Is This Answer Correct ?    1 Yes 0 No
Sunil
 
  Re: give one ip, find out which contry
Answer
# 4
ASP Script Usage and Sample - you may use the following
features independently

1. Create and destroy the component

' Create an instance of ActiveTarget object
Set ActiveObj = Server.CreateObject("ACTarget.IPGEO")

' Free the instance after use
Set ActiveObj=nothing

2. Get the client visitor's ip address

'Return the ip address of the current visitor
ClientIP = ActiveObj.ClientIP

3. Detect client visitor's country code

'Return the two letters iso country codelike us, uk, jp etc.
VisitorCountry= ActiveObj.ClientRegion

4. Detect client visitor's full country name

'Return full country name like United States, United Kingdom
etc.
VisitorFullCountry = ActiveObj.ClientFullRegion

5. Look up the country code from an ip address

'Custom IP address to two letters country code lookup
IP="150.48.244.170"
IPCountry = ActiveObj.Lookup(CStr(IP))

or

IPCountry = ActiveObj.Lookup("150.48.244.170")


6. Look up the country name from an ip address

'Custom IP address to full country name lookup
IP="150.48.244.170"
IPFullCountry=ActiveObj.FullLookUp(CStr(IP))

7. Resolve a host/domain name to ip address

IP=ActiveObj.DNSLookup("www.microsoft.com")

8. Convert country code to full country name

CountryName=ActiveObj.RegionCodeToName("CA")

9. Check the current status of the component

'It will output ActiveTarget DLL version, ip-country
database version,
' current status, last loaded time, self-test etc.

Response.Write ActiveObj.Version


10. Reload the database when updated

'Only when you get new version of ip-country database, then
use this method to load the new database without restarting
your server or IIS.

ActiveObj.ReloadLibrary
 
Is This Answer Correct ?    0 Yes 0 No
Sunil
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
swap two integer variables without using a third temporary variable?  2
A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above Accenture2
Write a C Programm.. we press 'a' , it shows the albhabetical number is 1, if we press 'g' it shows the answer 7.. any can help me  4
how can i get this by using for loop? * ** * **** * ****** Excel3
1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.  2
related to rdbms query .  1
WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N TIMES C COMES N TIMES D COMES N TIMES AND SO ON......... AT LAST UNTIL Z COMES N TIMES...............  3
main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } Find the Outputs? CitiGroup7
program to get the remainder and quotant of given two numbers with out using % and / operators? IBM8
who is the founder of c HP9
write a program to find the sum of the array elements in c language?  8
What is meaning of "Void main" in C Language. TCS8
WRITE A PROGRAM TO FIND A REVERSE OF TWO NO  5
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); } ME3
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Find the output CitiGroup4
what will happen if you free a pointer twice after allocating memory dynamically ? Novell2
main() { int i = 1; int num[] = {1,2,3,4}; num[i] = i++; printf("%d", num[i]); } what will be the output? } NDS15
for example user gives input as " 20 or 20.0 or rs 20.0 or 20.00 or rs20 and so .. on " and the output should be stored as " rs.20.00 " in a variable  2
palindrome for strings and numbers----Can anybody do the prog? TCS6
What is the purpose of Scanf Print, getchar, putchar, function?  2
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
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