Computer Science MCQs · PHP The extent to which proximate procedures are related to one another is known as A Coupling B Balancing C Cohesion Correct answer D Co-relation MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system. A server code B client code Correct answer C machine code D procedural code MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which function is used to determine whether the variable’s value is either TRUE or FALSE? A boolean() B is_boolean() C bool() D is_bool() Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP If you omit the visibility keyword in your method declaration, by default the method will be declared as. A public Correct answer B private C protected D friendly MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which keyword precedes a method name? A method B function Correct answer C public D protected MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Code that uses a class, function, or method is often described as. A client code Correct answer B user code C object code D class code MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which characters is used to access property variables on an object-by-object basis? A :: B = C -> Correct answer D . MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which version of PHP introduced the visibility keywords i.e public, private, and protected? A PHP 4 B PHP 5 Correct answer C PHP 5.1 D PHP 5.3 MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Fill in the blank with the best option. An Object is a/an ___ of a class. A type B prototype C instance Correct answer D object MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which one of the following is not a valid class name? A ShopProduct B Shopproduct C Shopproduct1 D 1shopproduct Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which function returns an array consisting of associative key/value pairs? A count() B array_count() C array_count_values() Correct answer D count_values() MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which function can be used to move the pointer to the previous array position? A last() B before() C prev() Correct answer D previous() MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which in-built function will add a value to the end of an array? A array_unshift() B into_array() C inend_array() D array_push() Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which function will return true if a variable is an array or false if it is not? A this_array() B is_array() Correct answer C do_array() D in_array() MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP PHP’s numerically indexed array begin with position __. A 1 B 2 C 0 Correct answer D -1 MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which one of the following is the right way of defining a function in PHP? A function { function body } B data type functionName(parameters) { function body } C functionName(parameters) { function body } D function fumctionName(parameters) { function body } Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which version of PHP introduced Try/catch Exception? A PHP 4 B PHP 5 Correct answer C PHP 5.3 D PHP 6 MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which of the following must be installed on your computer so as to run PHP script? A Adobe Dreamweaver B PHP C Apache D All of above Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which of the following is/are a PHP code editor? A MS word B MS Power Point C Adobe Dreamweaver Correct answer D PDT MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP A PHP script should start with ___ and end with ___: A < php > B < ? php ?> C <?php ?> Correct answer D <?!-- ?> MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP PHP files have a default file extension of.. A .html B .xml C .php Correct answer D .ph MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which function do you have to use to check whether the $path you’ve stored exists? A path_dir() B path() C is_dir() Correct answer D path_dir() MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP You use the $_SERVER superglobal and your ___ property to create your path to check. A $load_dir B $load C $save D $save_dir Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Before you try to process the file, you need to make sure that your $err value is equivalent to ___. A UPLOAD_ERR_OK Correct answer B UPLOAD_NO_ERR C UPLOAD_ERR_NO_OK D UPLOAD_ERR MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP To process the file, you need to break the array from $_FILES into individual values. You can do this using the ___ function A divide() B list() Correct answer C break() D indi() MCQSEXAM Show answer Read explanation