Explore topic-wise MCQs in PHP Questions & Answers Image Uploading Ability.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your PHP Questions & Answers Image Uploading Ability knowledge and support exam preparation. Choose a topic below to get started.

1.

Which one of the following is true about the following line $obj = new ImageHandler( /images/ , array(400, 300));?

A. This snippet sets the maximum dimensions allowed to 400 pixels wide by 300 pixels high
B. This snippet sets the minimum dimensions allowed to 300 pixels wide by 400 pixels high
C. This snippet sets the minimum dimensions allowed to 400 pixels wide by 300 pixels high
D. This snippet sets the maximum dimensions allowed to 300 pixels wide by 400 pixels high
Answer» B. This snippet sets the minimum dimensions allowed to 300 pixels wide by 400 pixels high
2.

When you re uploading files you need to set the enctype of the form to __________

A. text
B. text/file
C. multipart/form-data
D. multimedia/form-data
Answer» D. multimedia/form-data