Free 200-550 Exam Braindumps (page: 24)

Page 24 of 56

Which of the following is true about stream contexts? (Choose 2)

  1. A context can modify or enhance the behavior of a stream
  2. A context indicates what session the stream is part of
  3. A context is a set of parameters and stream wrapper specific options
  4. Contexts are created with new Stream_Context();

Answer(s): A,C



Consider the following code. What can be said about the call to file_get_contents?
$getdata = "foo=bar";
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $getdata
)
);
$context = stream_context_create($opts);
$result = file_get_contents('http://example.com/submit.php', false, $context);

  1. A GET request will be performed on http://example.com/submit.php
  2. A POST request will be performed on http://example.com/submit.php
  3. An error will be displayed

Answer(s): B



What function can be used to retrieve an array of current options for a stream context?

  1. stream_context_get_params
  2. stream_context_get_default
  3. stream_context_get_options
  4. The 'options' element of the stream_get_meta_data return value

Answer(s): C



When retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)

  1. $default_opts = array('http'=>array('user_agent'=>"My Cool Browser")); $default = stream_context_set_default($default_opts);
  2. stream_context_set_option("user_agent", "My Cool Browser");
  3. ini_set('user_agent', "My Cool Browser");
  4. stream_context_set_option($context, "http", "user_agent", "My Cool Browser");

Answer(s): A,C



Page 24 of 56



Post your Comments and Discuss Zend 200-550 exam with other Community members:

Renjith Raj commented on December 31, 2024
very good questions
Anonymous
upvote

Sapna M commented on December 31, 2024
Very descriptive and easy to understand due to links provided.
INDIA
upvote

hvt commented on December 31, 2024
really useful and max free questions upto 27 at least
Anonymous
upvote

Ahmed Beshara commented on December 31, 2024
Explanation is very helpful
SAUDI ARABIA
upvote

Den commented on December 31, 2024
Usefull data
UNITED STATES
upvote

Abhishek commented on December 30, 2024
It's a useful deck
Anonymous
upvote

Ramba commented on December 30, 2024
is this valid?
EUROPEAN UNION
upvote

Sith commented on December 30, 2024
Anyone taken the exam recently?
CANADA
upvote

sith commented on December 30, 2024
Are these question still valid ? can someone please confirm?
CANADA
upvote

Frank Smith commented on December 30, 2024
Excellent material for exam preparation
COSTA RICA
upvote

Anonymous commented on December 30, 2024
thank you for sharing
Anonymous
upvote

NB commented on December 30, 2024
good support
Anonymous
upvote

Karanpeet Sachdeva commented on December 30, 2024
Preparing for exam
INDIA
upvote

Harshini commented on December 30, 2024
Good Practice
Anonymous
upvote

Uzman commented on December 30, 2024
great collection
Anonymous
upvote

Md Habibur Rahman commented on December 30, 2024
Very helpful
BANGLADESH
upvote

Kollur commented on December 29, 2024
Best questions for preparation
JAPAN
upvote

Kollur commented on December 29, 2024
Usefull data
JAPAN
upvote

dinesh commented on December 29, 2024
Useful data
AUSTRALIA
upvote

Max commented on December 29, 2024
You’re the best
Anonymous
upvote

Deepika Deshmukh commented on December 29, 2024
very helpful content it helps a lot
Anonymous
upvote

Criss commented on December 29, 2024
Very nice and very good questions
Anonymous
upvote

Real truth commented on December 29, 2024
this is crap
Anonymous
upvote

Md commented on December 29, 2024
Totally worth it!
Anonymous
upvote

Datahighway commented on December 29, 2024
nice very good Stuff
UNITED STATES
upvote

Mon88 commented on December 29, 2024
is this dumps still valid to take the exam
UNITED STATES
upvote

Ashu commented on December 29, 2024
The best IT guide I have ever used. The content is well designed and nicely formatted. The software is very user-friendly and doesn't need an additional purchase like other websites. I highly recommend this.
UNITED STATES
upvote

Unknown Man commented on December 29, 2024
good stuff, but can you clarify the source
Anonymous
upvote

Unknown Man commented on December 29, 2024
Are these questions valid?
Anonymous
upvote

hnt commented on December 29, 2024
very good content
UNITED STATES
upvote

Subham commented on December 29, 2024
Good practice set
Anonymous
upvote

Vinod commented on December 28, 2024
very good questions
INDIA
upvote

Anon commented on December 28, 2024
Very helpful
UNITED STATES
upvote

Sachin Kamble commented on December 28, 2024
useful information
Anonymous
upvote