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
/47
Comments 0
Comment
About Author
Mohammad Towhidul Islam
University
Campus
340+
Online Tips
Study
29+
Computer
107+
Religious
31+
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
47+
HTML5
14+
C
15+
CSS
36+
ASP.NET Core
14+
JavaScript
58+
ADO.NET
10+
Git and GitHub
1+
SQL
3+
PLSQL
1+
Fltter
4+
Angular
8+
OpenGL
1+
Python
2+
Perl
1+
SASS
2+
React
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
27+
Management
4+
Economics
1+
General Knowledge
Bangladesh
8+
Science & Technology
11+
English & Literature
4+
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
13+
Microsoft Access
1+
Networking
Computer Networks
3+
Networking Services
1+
Hosting and Server
2+
Quiz
Other
1+
Generic ERP
HR
1+
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd
Comments 0