Home
• Programming • PHP
Jun 29th, 2015 at 11:14 AM
Quiz-PHP string,oop,regular expression
1.
Spliting a string into various elements based on Case-Insensitive pattern_
A) preg_search()
B) preg_find()
C) reg_split()
D) preg_split()
2. Which quantifiers matches any string containing a p followed by zero or more instances of the sequence hp ?
A) p(hp)*
B) p*(hp)
C) *hp(p)
D) hp(p)*
3. Why preg_grep() function wiil you use?
A) Searches all elements of an array
B) For grapping the array
C) For grapping the character
D) Searches define elements of an array
4. Which of the following function are used to strips any HTML and PHP tags from the input?
A) fgets()
B) fgetss()
C) fwrite()
D) None
5. Which statement is true about Regular Expressions?
A) describing or matching data according to defined syntax rules
B) allowing to slice and dice text in nearly every conceivable fashion.
C) Used for searching data
6. Which of the following PHP function is used to determine the length of any string?
A) strlen()
B) str_len()
C) count()
D) length()
7. Which is not a POSIX-style regular expression function ?
A) ereg()
B) ereg_replace()
C) spliti()
D) regex()
8. Which of the following PHP function is used to clear HTML tags from sting?
A) remove_tags()
B) strip_tags()
C) clear_tags()
D) cleartags()
9.
Which function divides the string str into an array of substrings ?
A) explode()
B) strtok()
C) str()
D) exploded()
10. How to handle string if we use ENT_COMPAT constant as an optional parameter for htmlentities().
A) Convert double quotes and ignore single quotes. This is the default.
B) Ignore both double and single quotes.
C) Convert both double and single quotes.
D) none
First
Prev
Next
Last
/46
Tweet
Comments 0
Comment
Share
About Author
Mohammad Towhidul Islam
University
Campus
334+
Online Tips
Study
29+
Computer
107+
Religious
29+
Fashion & Design
9+
Agriculture
55+
VCampus Help
25+
Intorior Design
18+
Photography
15+
Health
64+
Mobile
2+
SEO
8+
ASCII Art
7+
Phone Book
2+
Shopping
1+
Music
7+
Recipe
1+
Engineering
Computer
12+
EEE
1+
Programming
Java
33+
C#.NET
23+
C++
4+
JQuery
10+
PHP
46+
HTML5
14+
C
15+
CSS
32+
ASP.NET
14+
JavaScript
50+
Microsoft .NET Framework
10+
JSP
1+
SQL
3+
PLSQL
1+
XML
4+
Angular
7+
Bash shell
1+
Python
2+
Perl
1+
XSL
2+
ReactJS
11+
General Subjects
Drawing
10+
Computing
7+
English
20+
Math
6+
Politics
3+
Social & Culture
1+
Biography
1+
Science
Physics
3+
Chemistry
5+
Biology
3+
News
Sports News
3+
Weather News
7+
Entertainment News
2+
Career News
3+
International News
1+
Jobs
Education/Training
1+
IT & Telecommunication
9+
Others
2+
Commerce
Accounting
23+
Management
4+
Economics
1+
General Knowledge
Bangladesh
8+
Science & Technology
11+
English & Literature
3+
International
5+
Others
5+
Bengali & Literature
3+
Current affairs
1+
Mathematics
2+
Story, Tales & Poem
Fiction
1+
Jokes
6+
Poem
1+
Software Application
Microsoft Excel
3+
Adobe Photoshop
2+
Adobe Flash
1+
Editors
1+
Microsoft Word
1+
Framework
Wordpress
15+
phpBB
1+
Laravel
12+
CodeIgniter
4+
Bootstrap
2+
Yii
7+
CakePHP
17+
Magento
10+
Operating System
DOS
2+
Linux
2+
Database
MySQL
25+
Oracle
3+
IBM DB2
1+
Microsoft SQL Server
12+
Microsoft Access
1+
Networking
Computer Networks
3+
Networking Services
1+
Data Communication & Networking
1+
Quiz
Other
1+
Schools
Whiteboard
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd
Comments 0