Tag: php

Questions Related to php

php
  1. Hypertext Preprocessor

  2. Pre Hypertext Processor

  3. Pre Hyper Processor

  4. Pre Hypertext Process


Correct Option: A
php
  1. It converts them to a common compatible data type and then compares the resulting values

  2. It returns True only if they are both of the same type and value

  3. If the two values are strings, it performs a lexical comparison

  4. It bases its comparison on the C strcmp function exclusively


Correct Option: B
php
  1. When the parameter is Boolean

  2. When the function is being declared as a member of a class

  3. When the parameter is being declared as passed by reference

  4. When the function contains only one parameter


Correct Option: C
php
  1. Pond-sign

  2. Yen-sign

  3. Dollar-sign

  4. Euro-sign


Correct Option: C
php
  1. A switch statement without a default case

  2. A recursive function call

  3. A switch statement using a default case

  4. A while statement


Correct Option: C
Explanation:

A series of if…else if code blocks checking for a single condition as above is a perfect place to use a switch statement

php
  1. A string of 50 random characters

  2. A string of 49 copies of the same character, because the random number generator

  3. A string of 49 random characters

  4. has not been initialized


Correct Option: C