Smarterer Test Answers - Fonterra Staff Test

What is the correct XHTML for an attribute and its value?

WIDTH="80"
width=80
WIDTH=80
width="80"

Which of the following is not a version of unix?

Redhat
Unix
Firefox
Centos 6.2
Ubuntu

What is SMPP?

All of these
Short message peer to peer
System for text message creation and sending
Protocol for sending and receiving text messages

What will be the output of the following PHP5 program? <?php class ExampleClass { public $text; public function setText($var) { $this->text = $var; } } $foo = new ExampleClass(); $foo->setText('hello'); $bar = $foo; $bar->setText('goodbye'); echo $foo->text; echo $bar->text; ?>

goodbyegoodbye
goodbyehello
hellogoodbye
nothing
hellohello

How many staff do Fontera have?

10-20
50-60
40-50
20-30

What is the function of array_pop

Returns the first value of the array.
Returns the first value of the array, shortening the array by one element.
Returns the last value of the array.
Returns the last value of the array, shortening the array by one element.

Where in an HTML document is the correct place to refer to an external style sheet?

At the top of the document
In the <body> section
At the end of the document
In the <head> section

Where is the correct place to insert a JavaScript?

The <body> section
The <head> section
Both the <head> section and the <body> section are correct
Neither section are correct

What will be the output of the following PHP4 program? <?php class ExampleClass { public $text; public function setText($var) { $this->text = $var; } } $foo = new ExampleClass(); $foo->setText('hello'); $bar = $foo; $bar->setText('goodbye'); echo $foo->text; echo $bar->text; ?>

hellohello
nothing
goodbyegoodbye
hellogoodbye
goodbyehello

XHTML is a Web standard

true
false

XML and HTML will be replaced by XHTML

false
true

What does WAP stand for in mobile development?

Wireless Application Program
Wired And Protected
Wireless Application Protocol
Within Acceptable Protocol

What is the correct JavaScript syntax to write "Hello World"?

response.write("Hello World")
"Hello World"
("Hello World")
document.write("Hello World")

What is used in Centos 6.2 to show details of a file

grep
egrep
cat
All are correct
tail

What is the correct HTML for referring to an external style sheet?

<link rel="stylesheet" type="text/css" href="mystyle.css">
<stylesheet>mystyle.css</stylesheet>
<style src="mystyle.css">

What is SMS?

Send Mobile Service
Short Message Service
Short Message Send
Short Message Save

What's the correct way to display text Hello World on the page in Magento?

<p><?php echo 'Hello World'; ?></p>
<p>Hello World</p>
<?php echo $this->__('Hello World') ?>
<?php echo 'Hello World'; ?>
Hello World

In order to get the names, surnames and user_id from a mysql table and order by their user id's:

SELECT name, surname, user_id TABLE user_details order by user_id
SELECT name, surname, user_id FROM TABLE user_details ORDER BY user_id
SELECT name, surname, user_id FROM TABLE user_details
SELECT name, surname, user_id FROM user_details ORDER BY user_id

Is the language="" attribute of JavaScript still valid?

yes
no

Where is Fontera's development office located?

Cape Town
Mauritius
Johannesburg
London
Atlanta