moneybookers



Saturday, July 24, 2010

HTML Tests and Solutions

Q.NO.11.

Which of the following value for the scrolling atribute from the fram tag is not valid?

a. yes
b. default
c. auto
d. no

Q.NO.12.

One of your Web pages named Listing.html you specified a target like this:

<a name="target4">Old Listing </a>


How will you make a link to the above target?

a. <a url = "#target4" > Check Old Listing as well </a>

b. <a href = "#target4" > Check Old Listing as well </a>

b.<link url = "#target4" > Check Old Listing as well </link >

b. <a href = "Listin.target4" > Check Old Listing as well </a>

Q.NO.13.

While designing the links page of your website. You want the link to open in a new browser window.
How will you implement this with HTML?

a.<anchore href="http://www.mailer.com">Mailer </anchore >
b. <anchore href=http://www.mailer.com target=_blank >Mailer </anchore >
c. <A HREF="http://www.mailer.com">Mailer </A >
d. <a href=http://www.mailer.com target=_blank >Mailer </a >

Q.NO.14.

You are creating several web pages for a website that contains several rather large data tables.
Many of which are some what sismilar in the number of columns, rows and other common table formating. In addition ,CSS
will be employed for formating the tables. Which one of the following types of CSS has the highest priority over the others
and typically require the greatest total amount of code space for the entire website for formtting the various table cells

a. External Style Sheet
b. Inline Style Sheet
c. Internal Style Sheet
d. Browser default

Q.NO.15.

Choose the incorrect statment.

a. The <em> tag emphasizes the given text by italiczing.
b. The <code> tag indicates that the text inside is an example of typed code.
c. The <var> tag indicates that the text inside the tag has been revised
d. The <strong> tag strongly emphasizing the text

Q.NO.16.

The tag is used to pass the parametrs to an applet is:

a. appletpar
b. applet
c. param
d. var

Q.NO.17.

Within a table cell
<td>

a.
<p></p>
tag can't be used
b.
<ol></ol>
tag can't be used
c.
<form></form>
tag can't be used
d.
<table></table>
tag can't be used
e. All the above tags could be used


Q.NO.18.

The use of depricated align atribute with an image tag result in :

a. Text taht is aligned with the bottom of the image if the value of align is bottom.
b. Text that is aligned with the top of the value of align is top.
c. Text that is located to the left of the image if the value of align is left.
d. Text that is located to the right of the image if the value of align is right.

Q.NO.19

Which of the folowing atributes is/are valid for a select tag.

a. name
b. size
c. multiple
d. all of the above

Q.NO.20.

Which form event is fired on the click of a button tag with its type atribute value equal to submit.

a. onload
b. onsubmit
c. onload
d. onreset

Friday, July 23, 2010

HTML Tests and Solutions

Q.NO.1.

You do not want to resize the frame. The code should be:

a. <frame src = "MyPage.html" name="HomePage" scrolling=Yes resize = "false">
b. <frame src = "MyPage.html" name="HomePage" scrolling=Yes resize = "true">
c. <frame src = "MyPage.html" name="HomePage" scrolling=Yes noresize = "true">
d.<frame src = "MyPage.html" name="HomePage" scrolling=Yes noresize = "noresize ">

Q.NO.2.

Which of the following is not an atribute of meta tag?

a. name
b. content
c. type
d. http-equiv

Q.NO.3.

You Placed four radio buttons on a web form. you want the user to sepcify whether they are
male or female and whether they are married or single. The code is as follow:

Male: <input type = "radio" checkd name= "check" value = "male">

Female: <input type = "radio" checkd name= "check" value = "female">

Maried: <input type = "radio" checkd name= "check" value = "maried">

Single: <input type = "radio" checkd name= "check" value = "single">


a. It will allow to choose only the male and married options.
b. It will allow to choose only the female and single options.
c. It will allow to choose only option out of four.
d. It will allow to choose all the four options at the same time.



Q.NO.4.

What do you infer from the following code?

<a href ="http://expertating.com"> Expert Rating </a>


a. This href is using for absolute path for linking
b. This href is using for relative path for linking

Q.NO.5.

Which of the folowing is incorrect about the relation of HTML and XHTML?

a. XHTML is strict and cleaner version of HTML.
b. XHTML is almost identical version of HTML 4.0
c. XHTML and HTML both are used to generate dynamic contents.
d. HTML brings togther the elements of HTML and the syntax of XML.

Q.NO.6.

Which of the following would insist in creating named groups within a selected list?

a. opt
b. group
c. option group
d. select group


Q.NO.7.

Which of the following is/are not correct for an action attribute for a form tag?

a. The action atribute can be defind at run time.
b. If the value for action is null , then form submit user data to itself.
c. If the URL is not provided to action atribute, the will not submit data anywhere.
d. Non of the above.


Q.NO.8.

Which of the following statements is/are in correct for a blackquote?

a. It makes the text bigger for emphasizing.
b. It defines the start of a long quote.
c. It makes the text slightly bolder.

Q.NO.9.

Which of the following is a valid value for the type atribute of the input tag?

a. text
b. icon
c. reset
d. password

Q.NO.10.

For the following items of a list:

<option value = "89"> Items 1 </option >

<option value = "90"> Items 2 </option >



which of the following value would be passed on by clicking on submit button on selecting Items 2 form the list.?

a. 89
b. 90
c. Item 1
d. Item 2


Monday, July 12, 2010

PHP Test And solutions

Question.31.

You have designend a user login form as follows:

User Name:
password:

How can you accesss the username entered by the user in the "Validate.php" webpag?

a. $var= $_POST['usernmae'];
b. $var= $_REQUEST['usernmae'];
c. import_request_variable('P','P_');
$var = $p_username;
d. All of the above

Solution:

Question.32.

which of the following id used to maintain the value of a variable over different pages?
a. static
b. global
c. session_register()
d. Non of the above

Solution:


Question.33.

What will be the output of the following code
echo 30 * 5 . 7
?>

a. 150. 7
b.1507
c. 150.7
d. you can't concatinate integers e. error will occur

Solution:

Question.34.

Variable functions in PHP don't work directly with:
a. echo()
b. isset()
c. print()
d. All of the above

Solution:


Question.35.


Multiple select/load is pssible with:
a. checkbox
b. Select
c. File
d. all of the above

Solution:


Question.36.

Which of thew following is not a correct way of printing text in PHP5?

a.
echo "plain text" ;
?>
b.
echo "plain text"
?>
c.
d. <# echo "plain text" #>

Solution:

C

Question.37.

with reference to the folowing php script:
what will be the output on running the script?
a. Text Line 1Text Line 2
b. Text Line 1 Text Line 2
c. 'Text Line 1'
d. 'Text Line 2' e. error message will b printed.

Solution:

E
Question.38.

What will be the output of the following code? $a = 10 if ($a> 5 OR <15)>

a. false
b. true
c. no output
d. Parser Error


Solution:

Question.21.

What will be the output of the following code?

$a = 10;
echo "Value of a = $a";

a. value of a = 10
b. Value of a = $a
c. Undefind
d. Syntax Error

Solution:

A

Question.22.

Which of the following regualr expressions can be used to check the validity of an email address?

a. ^[^@]+@[^@]+\[^@]+$
b. ^[^@]+@[^@]+[^@]+$
c. $[^@]+@[^@]+\[^@]+^
d. $[^@]+@[^@]+.[^@]+^

Solution:

Question.23.

Which of the following is not represent logical AND operator in PHP?
a. &
b. &&
c. And
d. AND

Solution:
A

Question.24.

Which of the following are file PHP file Upload Related function?

a. upload_file()
b. is_upload_file()
c. move_upload_file()
d. Non of the above

Solution:

D

Question.25.

Does PHP support exceptions?

a. Yes
b. No

Solution:

A

Question.26.

Which of the following functions do you need to implement HTTP Basic Authentication?

a. Authenticate()
b. header()
c. basic_auth()
d. Non of the above

Solution:

D

Question.27.

What will be the output of the following code?

for ($i = 0; $i <>
{if($i == 2)
continoue;
print "$i\n";
}
?>

a. 0
1
2
3
4
5
b. 0
1
2
3
4
c. 2
d. 0
1
2
4
e. non of the above

Solution:

B

Question.28.

What will be the output of the following code?

echo 12 . 6;

a. 12 . 6
b. 126
c. 12.6
d. Error: You cannot add integers through the concatienation operator(.)

Solution:

Question.29.

Which of the following is not supported in PHP5?

a. Type Hinting
b. Reflection
c. Magic Methods
d. Object Cloning

Solution:

Question.30
.

Which of the following are valid PHPdata types?

a. resource
b. null
c. boolean
d. string
e. Both a and c
f. b, c and d
g. All of the above

Solution:

Sunday, July 11, 2010

PHP Test And solutions

Question.11.

which of the following are used for code reuse?

a. Loops
b. functions
c. Database
d. include files


Solution:

B,D

Question.13.

which of the following is the corect way of specifying default value?

a. Function GetDiscount($Type = "Special") {.........}
b. Function GetDiscount(Type := "Special") {.........}
c. Function GetDiscount($Type: = "Special") {.........}
d. Function GetDiscount($Type : "Special") {.........}

Solution:

Question.14.

Which of the following are ''magic constant'?

a. __LINE__
b. __FILE__
c __PRETTY_FUNCTION__
d __CLASS__
e. __METHOD__

Solution:

Question.15.

you have defined three variables $to, $subject, and $body to send an email. Which of the following methods would you use for sending an email?

a. mail($to, $subject,$body)
b. sendmail($to, $subject,$body)
c. mail(to, subject,body)
d. sendmail(to, subject,body)

Solution:

Question.16.

Which one of the following is turnary operator?

a. &
b. =
c. :?
d. ?:
e. +=
f. &&

Solution

D

Question.17.

What is the result of the following Exprssion?
5+2*4+6

a. 70
b. 19
c. 34
d. 21

Solution:
B

Question.18.

The default value of register global in PHP is:

a. Off
b. On

Solution:

A

Question.19.


What would b the outpur of the following code?

$string = 'good day';
$string = ucword($string);
echo $string;
?>

a. good day
b. GOOD DAY
c. Good Day
d. non of the above

Solution:

C

Question.20.

If you want to pass a value to a function by reference, the correct way is:

a. function ModifyReport(&$Rptfile){}
b. function ModifyReport($Rptfile){}
c. function ModifyReport(ByRef $Rptfile){}
d. function ModifyReport(&Rptfile){}

Solution:

D