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   To Refer this Site to Your Friends   Click Here
Google
 


 

Company >> A1 Technology >> A1 Technology Questions
 
 A1 Technology interview questions  A1-Technology Interview Questions (12)
 
Back to Questions Page
Question   Difference between notify url, return url in paypal payment gateway? Rank Answer Posted By  
 Interview Question Submitted By :: Abhishek_anand_mca07
I also faced this Question!!   © ALL Interview .com
Answer
Notify Url: The URL to which PayPal posts information about the 
transaction via Instant Payment Notification. Must be URL-
encoded. Its an optional field have maximum 256 characters 
length.
Return url: The URL to which the customer's browser is returned 
after completing the payment; for example, a URL on your site 
that displays a "Thank you for your payment" page.
Default: customer is taken to the PayPal website.  Optional  
rm Return method GET or POST: the FORM METHOD used to send data 
to the URL specified by the return variable after payment 
completion.
 More information is available at 
https://www.paypal.com/IntegrationCenter/ic_std-variable-ref-
buy-now.html
 
2 Abhishek_anand_mca07
 
 
Answer
yes
 
0 Amarnath Prabaharan
 
 
Question   If there are 10 text boxes in a form having same name, their value are different. Value of which textbox will be received on action script? Rank Answer Posted By  
 Interview Question Submitted By :: Abhishek_anand_mca07
I also faced this Question!!   © ALL Interview .com
Answer
value of Last textbox will be received.
 
3 Abhishek_anand_mca07
 
 
 
Answer
i thought it would be the first one
 
5 Richa
 
 
Answer
yes... value of last textbox will be received.
 
5 Nitin Agrawal
 
 
Answer
no.cannot.
 
0 Emperor
 
 
Answer
Last value will store
 
0 Debasis Sabat
 
 
Answer
value of Last textbox will be received.
 
0 Paras
 
 
Answer
first textbox value only.
 
0 M.s.m.archana Mai
 
 
Answer
value of Last textbox will be received.
 
0 Nilesh Navadiya
 
 
Answer
value of last text box will be received
 
0 Riya Sharma
 
 
Answer
value of last textbox will be received.
 
0 Teju
 
 
Question   recurring account in PayPal payment gateway? Rank Answer Posted By  
 Interview Question Submitted By :: Abhishek Anand
I also faced this Question!!   © ALL Interview .com
Answer
PayPal Recurring Payments allows you to bill a buyer for a 
fixed amount of money on a fixed schedule. The buyer signs 
up for recurring payments during checkout from your site. 
Consider the following examples: 

A buyer purchases a subscription to a magazine or 
newsletter from your site and agrees to pay a monthly fee. 
A buyer agrees to pay an Internet Service Provider a flat 
fee on a semi-annual basis to host a website. 
These examples represent payment transactions that reoccur 
periodically and are for a fixed amount.
When you create recurring payments for a buyer, you create 
a recurring payments profile. The profile contains 
information about the recurring payments, including details 
for an optional trial period and a regular payment period. 
Each of these subscription periods contains information 
about the payment frequency and payment amounts, including 
shipping and tax, if applicable.

After a profile is created, PayPal automatically queues 
payments based on the billing start date, billing 
frequency, and billing amount, until the profile expires or 
is canceled by the merchant. The buyer can also cancel the 
recurring payment profile for profiles creating using 
Express Checkout.

Note that for profiles created using Express Checkout, the 
queued payments are funded using the normal funding source 
hierarchy within the buyer's PayPal account.

After the recurring payments profile is created, you can 
view recurring payments details or cancel the recurring 
payments profile from your PayPal account.You can also 
access recurring payments reports from the PayPal Business 
Overview page. 
More information about recurring payment is available at
https://www.paypal.com/IntegrationCenter/ic_recurringpayment
s.html
 
0 Abhishek_anand_mca07
 
 
Question   Extract url from this string? It should be flexible for all strings, not for this string only. "yahoo.comyahoo.co.inhotmail.org" Rank Answer Posted By  
 Interview Question Submitted By :: Abhishek Anand
I also faced this Question!!   © ALL Interview .com
Answer
##
##This will work for PHP 5.3 -

$url1="yahoo.com";
$url2="yahoo.co.in";
$url3="hotmail.org";

$domain1 = strstr($url1, '.', true);
$domain2 = strstr($url2, '.', true);
$domain3 = strstr($url3, '.', true);

echo $domain1, $domain2, $domain3;


##
## For Older PHP (<5.2.8), this code will follow -
$url1="yahoo.com";
$url2="yahoo.co.in";
$url3="hotmail.org";

$domain1 = substr($url1, 0, strpos($url1, '.') );
$domain2 = substr($url2, 0, strpos($url2, '.') );
$domain3 = substr($url3, 0, strpos($url3, '.') );

echo $domain1, $domain2, $domain3;


 
0 Amitverma
 
 
Question   How to download a php script directly in your script page? Rank Answer Posted By  
 Interview Question Submitted By :: Abhishek Anand
I also faced this Question!!   © ALL Interview .com
Answer
<?php include("example_script.php"); ?>
 
0 Abhishek Dilliwal
 
 
Answer
You can use require function as well and it is  a 
recommended one..


require("file.php");
reqiure_once("file.php");//will giv a warning msg wen u 
include it, the next time by mistake.
 
0 Uma
 
 
Answer
You can use require function as well and it is  a 
recommended one..


require("file.php");
reqiure_once("file.php");//will giv a warning msg wen u 
include it, the next time by mistake.
 
0 Uma
 
 
Question   What is fulltextsearch Rank Answer Posted By  
 Interview Question Submitted By :: Rohit Singh
I also faced this Question!!   © ALL Interview .com
Answer
MySQL has support for full-text indexing and searching. A 
full-text index in MySQL is an index of type FULLTEXT. 
FULLTEXT indexes can be used only with MyISAM tables; they 
can be created from CHAR, VARCHAR, or TEXT columns as part 
of a CREATE TABLE statement or added later using ALTER 
TABLE or CREATE INDEX. For large datasets, it is much 
faster to load your data into a table that has no FULLTEXT 
index, and then create the index afterwards, than to load 
data into a table that has an existing FULLTEXT index. 

Constraints on full-text searching are listed in Section 
12.7.4, “Full-Text Restrictions”. 

Full-text searching is performed with the MATCH() function. 

mysql> CREATE TABLE articles (
    ->   id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY 
KEY,
    ->   title VARCHAR(200),
    ->   body TEXT,
    ->   FULLTEXT (title,body)
    -> );
 
0 Jagpreet
 
 
Answer
MATCH (col1,col2,...) AGAINST (expr [search_modifier])
A full-text index in MySQL is an index of type FULLTEXT.
Full-text indexes can be used only with MyISAM tables, and
can be created only for CHAR, VARCHAR, or TEXT columns. A
FULLTEXT index definition can be given in the CREATE TABLE
statement when a table is created, or added later using
ALTER TABLE or CREATE INDEX.
For large data sets, it is much faster to load your data
into a table that has no FULLTEXT index and then create the
index after that, than to load data into a table that has an
existing FULLTEXT index.
Full-text searching is performed using MATCH() ... AGAINST
syntax.
MATCH() takes a comma-separated list that names the columns
to be searched.
AGAINST takes a string to search for, and an optional
modifier that indicates what type of search to perform.
Three types of full-text searches
1. A Boolean search interprets the search string using the
rules of a special query language.
2. A natural language search interprets the search string as
a phrase in natural human language (a phrase in free text).
There are no special operators.
3. A query expansion search is a modification of a natural
language search.
 
0 Kishore
 
 
Question   what are in image creating functions in php Rank Answer Posted By  
 Interview Question Submitted By :: Rakesh Kumar Nautiyal
I also faced this Question!!   © ALL Interview .com
Answer
GD library
 
3 Harsh
 
 
Answer
yes
 
0 Guest
 
 
Answer
imagecreate(W,H)
 
0 Munesh Singh Tomar
 
 
Answer
extension=php_gd2.dll

you need to open an extension for gdlibrary in the php.ini 
file. and then use simple image functions as suggested by 
Munesh
 
0 Yukti Vig
 
 
Answer
image creating functions

dir() 

Example :-

<?php
//Open images directory
$dir = dir("images");//List files in images directory
while (($file = $dir->read()) !== false)
{
echo "filename: " . $file . "<br />";
}$dir->close();
?>
 
0 Sanjeev Kumar
 
 
Question   How would you impletement download and upload a file in php Rank Answer Posted By  
 Interview Question Submitted By :: Rakesh Kumar Nautiyal
I also faced this Question!!   © ALL Interview .com
Answer
refer this link for uploading
  	

http://php-mysql-javascript-css.blogspot.com/

for files downloading you can use headers .

<?php
// We'll be outputting a PDF
header('Content-type: application/pdf');

// It will be called downloaded.pdf
header('Content-Disposition: attachment;
filename="downloaded.pdf"');

// The PDF source is in original.pdf
readfile('original.pdf');
?>
 
0 Vijaya
 
 
Answer
uploading is down using html file tag and later on moved to 
the destination location.

for downloading we can use the pdf format so once we click 
on the link the pdg format of the file will be downloaded
 
0 Master
 
 
Question   How to differentiate isset and empty Rank Answer Posted By  
 Interview Question Submitted By :: Rakesh Kumar Nautiyal
I also faced this Question!!   © ALL Interview .com
Answer
isset -> this variable handling functions determine whether 
a variable is set . It checks whether a variable is set 
even though it is empty.

empty -> as the term itself has already given a sign that 
it would related to something that's empty, this variable 
handling functions determine whether a variable is empty. 
It checks whether a variable has a value whether it's empty 
string, zero(0), or not set at all.
 
0 P .g .senthilkumar
 
 
Answer
isset is used for checking whether variable is set or not 
and empty checks whether it is empty
 
0 Rahul Shelar
 
 
Answer
actually, !isset and empty are one and same thing...
 
0 Rafique
 
 
Answer
isset() will ONLY return true when the value of the variable
is not NULL (and thereby the variable is at least defined).

empty() will return true when the value of the variable is
deemed to be an "empty" value, typically this means 0, "0",
NULL, FALSE and empty string, anything else is not empty.

Some examples


FALSE == isset($foo);
TRUE == empty($foo);
$foo = NULL;
FALSE == isset($foo);
TRUE == empty($foo);
$foo = 0;
TRUE == isset($foo);
TRUE == empty($foo);
$foo = 1;
TRUE == isset($foo);
FALSE == empty($foo);
 
0 Amit
 
 
Answer
isset is used to check whether the variable is set or 
not ...
where as empty is used to check whether variable contains a 
value or not
 
0 Vijay
 
 
Question   what is a turnover number of an enzyme? Is that always an evaluation parameter of the activity of the enzyme? Rank Answer Posted By  
 Interview Question Submitted By :: Nita
I also faced this Question!!   © ALL Interview .com
Answer
turnover number of enzyme is number of substrate it 
converts into product per minute.turnover number is 
depended on substrate affinity, physical condition of the 
enzyme (ph, temperature).
 
1 Moumita
 
 
Question   how do u call in & out parameters for stored procedures? Rank Answer Posted By  
 Interview Question Submitted By :: Vamshi
I also faced this Question!!   © ALL Interview .com
Answer
procedure_name(a in number,b out varchar)
		(
			script of execution;

		)
		exec procedure_name(first_parameter,second_parameter);
 
0 Sudhir Kumar Singh
 
 
Answer
create or replace procedure p_name(p_no in out number)
is begin
{
executable statement
}
end p_name;
/
 
0 Mohana Sundaram
 
 
Answer
create or replace procedure <pocedure_name>(x in number,y 
out varchar) is begin
                {
			executable statements;

		}
end <procedure_name>;

exec <procedure_name>(first_parameter,second_parameter);
 
0 Sangeetha
 
 
Answer
<procedure_name>(in_parameter_value, 
out_parameter_variable);
 
0 Sangeetha
 
 
Answer
create or replace procedure <pocedure_name>(x in number,y 
out number) is begin
                {
			executable statements;

		}
end <procedure_name>;

exec <procedure_name>(10,y);
 
0 Susila
 
 
Answer
See the example below...

create or replace procedure addn(a in number,b in number, c 
out number)
 is
 begin
 c:=a+b;
 dbms_output.put_line(c);
 end addn;

Now we can call the in and out parameters as

declare a variable for the out parameter as

var n number;
exec addn(5,10,:n);
print n;
 
5 Soujanya
 
 
Answer
Thanks yaar !!!!!!!!
 
0 Venkat Soma
 
 
Question   Can we use more than one null value for unique key? Rank Answer Posted By  
 Interview Question Submitted By :: Vamshi
I also faced this Question!!   © ALL Interview .com
Answer
no. because if we use more than one, it leads to  
duplicate, which effects the fundamental property of unique 
key.
 
1 Vamshi
 
 
Answer
We can insert more than one null into table
 
2 Rao
 
 
Answer
No, we can't use more than one null value for unique key. 
Unique means it doesn't accept duplicate values.
 
0 Pavani
 
 
Answer
We can insert any number of null values in the column which 
contains the unique key
the reason is NULL is not equal to anothere NUll
so each null is different so there is no question of 
duplication
 
5 Anil Kumar Abbireddy
 
 
Answer
If we use more than one, it leads to  
duplicate, which effects the fundamental property of unique 
key.

But......
We can insert any number of null values in the column which 
contains the unique key.
The reason is NULL is not equal to anothere NUll
so each null is different so there is no question of 
duplication
 
0 Talent Pool
 
 
Answer
Yes,We should .That's the significance of Unique Key

If you insert data into Unique Key column it checks for the 
uniqueness of THIS NON NULL UNIQUE COLUMNAR DATA
 
0 Ramesh
 
 
Answer
no, because duplicate value is not allowed in unique. so 
thats why we can enter only one null value.
 
0 Krishana Kumar Gupta
 
 
Answer
Unique in similar to primary key  but one difference's
primary key  duplicate records not allow and not null value
and uniquie allow one null value and duplicate records
 
0 Ashwani Kumar(kannouj)
 
 
Answer
Yes , More than one field can be NULL in a unique Key 
column. Because a Null values is not equal to another null 
value. So, no duplicate value is there.
 
0 Debdut Bhaumik
 
 
Answer
yes,we can use more than one null value for unique key.
Bcz all null values are unique,
thing is that null is unknown ,unassignable, 
undefind ,inapplicable value and allwase null is not equal 
to null and any arithimitic operation and logical 
comparision all wase result null
 
0 Rajesh
 
 
Answer
no because primary key is the unique value of the table that
can not allow null&duplicate value.
so it is not possiblity use more than one null value and
duplicate valu
 
0 Iftekharul Haque
 
 
Answer
Yes, We can insert more the one NULL with unique key.
cos, Neither null is equal to null Nor null is not equal to
null.
 
0 Shailendra Chauhan
 
 
Answer
No, we cannot use more than one null value in unique key.
This is the major difference between primary key and unique 
key.

Primary key cannot contain null values

Whereas unique key can contain only one null value
 
0 Guest
 
 
Answer
Yes ,we can insert more null value in a table having unique 
key,Bcoz one null vale is different frm another null value.
 
0 Sam
 
 
Answer
Fundamental principle is 2 nulls are not unique. U can 
insert N number of nulls in a unique its CONCRETE
 
0 Kalyana Chakravarthy
 
 
Answer
The answer to this question depends on the database that we 
are using
1. In SQL Server and DB2, we can insert only one null value 
in the Unique Key column.
2. In Oracle, we can insert multiple null values
 
4 Slimtech
 
 
Answer
Yes we can..
Hey guys.. don't be confused with the values and nulls. 
Unique key conforms only the values to be unique. Since the 
nulls are not any kind of value, they can occur as many 
times as they can.. nulls are nothing..
 
0 Ravin
 
 
Answer
Yes, we can use multiple Null values in case of Unique Key 
Column. This is one the main difference between Unique Key 
and Primary Key that Unique Key always allows multiple 
entries of Null Statement where as Primary Key never allows 
this.

I am hereby giving you a very very basic example which 
suggests that Unique Key can have more than one Null 
Statement :- 

SQL> create table abcd(name varchar2(10) unique);

Table created.

**********************

Now insert the values :-

SQL> insert into abcd(name)values('amit');

1 row created.

SQL> insert into abcd(name)values('ami');

1 row created.

SQL> insert into abcd(name)values(null);

1 row created.

SQL> insert into abcd(name)values(null);

1 row created.

SQL> insert into abcd(name)values(null);

1 row created.

SQL> commit;

Commit complete.

SQL> select * from abcd;

NAME
----------
amit
ami



Here blank space above represents the entries of null 
statements..!!
 
0 Amit Rajoria
 
 
Question   How can we submit a form without a submit buttom? Rank Answer Posted By  
 Interview Question Submitted By :: Subrat
I also faced this Question!!   © ALL Interview .com
Answer
form.submit();
 
3 Subrat
 
 
Answer
document.FORM_NAME.action="page.php";
document.FORM_NAME.submit();
 
0 Koushik
 
 
Answer
Javascript form submit

document.FORM_NAME.action="page.php";
document.FORM_NAME.submit();
 
0 Koushik
 
 
Answer
you can call a function in javascript onclick event of any 
form element/link and in the function you  use any 
document.formName.submit(); to submit the form

and above all ans is rights
 
0 Arvind Pippal(delhi India)
 
 
Answer
ys
 
0 Guest
 
 
Answer
Using curl
 
3 Nilotpal
 
 
Answer
by javascript
 
0 Jamal
 
 
Answer
1 Function OnChange();
2. Function OnClick()
 
0 Ashwani Kumar(delhi)
 
 
Answer
Use image element instead submit button
<input type="img" src="img_path/img_name.src">
give the action page name as action attribute in form 
element like
<form name="myform' action="myaction.php">
The Image element will work very similar as submit button.
 
0 Abhishek Anand
 
 
Answer
on the page unload event write down the submit coding. or 
use onBlur event thats also the same functionality. and 
call the java script function on Blur. it will submit the 
page on closing you dont need to press submit button.
 
0 Mohamed Jamal
 
 
 
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