Priti's Technical Corner

October 22, 2012

Zend PHP 5.3 certification practice question 5


Question 1: array_to_iterator is a php inbuilt function to convert array from iterator.
Option
A. True
B. False

Question 2: SplFixedArray function toArray()  returns a PHP array from the fixed array.
Option
A. True
B. False

Question 3: glob() will work on remote files too?.
Option
A. True
B. False

Question 4: tmpfile() will creates a file with a unique filename in specified directory?.
Option
A. True
B. False

Question 5: what will be the output of

echo basename(“/abc/php.d”, “.d”).PHP_EOL;

Option
A. php
B. d
C. Notice
D. Notice + php.d

Question 6: identify the security concern

$offset = $argv[0];
$query = “SELECT id, name FROM products ORDER BY name LIMIT 20 OFFSET $offset;”;
$result = pg_query($conn, $query);

Option
A. XSS
B. SQL Injection
C. Session hijacking
D. None

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: