PHP Strings and Regular Expressions Mcqs
Our collections of Multiple choice questions and answers focuses on study of PHP Strings and Regular Expressions. These questions are chosen from a collection of most authoritative and best reference books on PHP Strings and Regular Expressions. Our aim is to prepare an individual for competitive exams like NTS, GAT, ECAT, University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate PHP Strings and Regular Expressions Topics comprehensively.
PHP Programming Mcqs
- Basics of PHP Mcqs
- PHP Arrays and Functions Mcqs
- PHP Constants and Operators Mcqs
- PHP Controls Structures Mcqs
- PHP Error and Exception Handling Mcqs
- PHP Filesystem Mcqs
- PHP Functions Mcqs
- PHP Objects Tools and Variables Mcqs
- PHP OOP Mcqs
- PHP Session Handling Mcqs
- Strings and Regular Expressions Mcqs
Computer MCQS
Sciences MCQS
2.
A function that takes a filename as argument and returns a MD5 of that file
Md_file( )
Md5 ( )
Md5_file ( )
Digest_file ( )
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
3.
Which function is used to take a string as argument and returns a string that is stripped of all HTML and PHP tags?
Nl2br ( )
Strip ( )
Strip_tags ( )
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
4.
There are how many types of classes for regular expressions?
1
2
3
4
5.
MD5 algorithm is used to produce a
Digest of a string
Signature of a string
Name of string
Both a and b
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
6.
Regex defines a
Style
Function
Regular expression
Class
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
7.
MD5 stands for
Multi Dimension Algorithm
Message Digest Algorithm
Message Division Algorithm
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
8.
POSIX regular expression function ereg_replace ( ) takes
1 argument
2 arguments
3 arguments
4 arguments
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
9.
Which function is used to implement MD5 in PHP?
Md ( )
Digest ( )
Md5 ( )
Digest_algo ( )
10.
Process of breaking up a long string into words is called as
Stroking
Delimiters
Tokenizing
Parsing
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
11.
Which PHP function treats a string as collection of characters rather than a sequence?
Strspn ( )
Strcspn ( )
Count_chars
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
12.
By using special wildcards for matching a string which function is used?
Strtok
Tokenizing
Delimiter
Regex
13.
In Perl-compatible patterns any pattern that is followed by ? this means that
Match this pattern 1 or more times
Match this pattern exactly 1 time
Match this pattern 0 times
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
14.
What is meaning of “.” in POSIX style regex?
Matches any character of a string
Matches the beginning of a string
Matches the end of a string
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
15.
Why a special character is used in beginning and end of string in Perl-compatible patterns?
Because it indicates the beginning and end of the pattern
Because it indicates that it?s a integer string
Because it indicates the literal
It indicates nothing
Answer & Solution
No Solution for this Answer..! Report or Discus this Question