Comparison and Searching MCQs Quiz Online PDF Download

Learn comparison and searching MCQs, php test for online learning courses, test prep to practice test. Php string handling MCQs, comparison and searching multiple choice questions and answers, string replacement, comparison and searching tutorials for online PHP variable courses distance learning.

Php practice test MCQ: when two strings are exactly equivalent strcmp ( ) returns what with options returns a string , returns 0, returns 1 and returns nothing for career test, online study and distance learning online preparation for online university courses. Free study guide is for online learning comparison and searching quiz questions with MCQs to practice test questions with answers.

MCQs on Comparison and Searching Quiz PDF Download

MCQ: When two strings are exactly equivalent Strcmp ( ) returns what?

  1. Returns a string
  2. Returns 0
  3. Returns 1
  4. Returns nothing


MCQ: For finding out one string is equal to another string which function we can use?

  1. strpid ( )
  2. strpos ( )
  3. str ( )
  4. All of them


MCQ: Stristr ( ) is identical to Strstr ( ) except that

  1. The comparison is case independent
  2. The comparison start from middle
  3. The comparison is case sensitive
  4. None of them


MCQ: Which function is identical to Strstr ( )?

  1. Strlen ( )
  2. Strchar ( )
  3. Strcmp ( )
  4. None of them


MCQ: Which function start its search from backward rather than from beginning?

  1. Strcmp ( )
  2. Strstr ( )
  3. Strpos ( )
  4. All of them