Rumman Ansari
Home
Blog
Courses
Paid Courses
Authentication
D365 F&O MCQ Questions - X++ Programming Language MCQ
Digital Productivity
GH-300: GitHub Copilot
ICSE Computer Applications Class 10 – Previous Year Question Papers & Solutions
Java Fundamentals: Building Strong Foundations
Mastering JavaScript: From Fundamentals to Advanced Concepts
MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer
X++ Programming Fundamentals - D365 F&O Technical
X++ Programming Language
Free Courses
AB-730: Microsoft Certified: AI Business Professional
AJAX
AngularJS
Arithmetic Aptitude
Artificial intelligence
Automata Theory
AZ-400: Designing and Implementing Microsoft DevOps Solutions
Azure DevOps for Beginners
Bangla to English
Biography
Biology
Bootstrap 4
C Programming Language
C Programming Language Video Bangla
C# Programming Language
C++ language
Competitive Exam
Computer Awareness
Computer Fundamentals
Computer Network
Computer Science and Engineering
Continuous Deployment
Continuous Integration
CSS
Current Affairs
Data Structure
Database Management System
Digital Logic
Education
Electrical Engineering
English
English Grammar
General Aptitude
Geography
History
HTML 5
Important Days and Dates
Interview Questions
ISC - COMPUTER SCIENCE - XI
Islam
Java Programming Language
JavaScript
Leadership behavior and Culture
Logical Fallacy
Machine Learning
Mastering HTML: From Fundamentals to Advanced Concepts
Mathematics
Mathematics for Programming
Mathematics in Bangla - Class 5
MB-310: Microsoft Certified: Dynamics 365 Finance Functional Consultant Associate
MB-330: Microsoft Certified: Dynamics 365 Supply Chain Management Functional Consultant Associate
MB-700: Microsoft Dynamics 365: Finance and Operations Apps Solution Architect
MB-920: Microsoft Dynamics 365 Fundamentals (ERP)
Microservices Architecture
Microsoft Azure
Microsoft Excel - Bangla
Mindwork games
Miscellaneous Topics
Misconceptions about Islam
MySQL
Neural Networks and Deep Learning
NPM - Package Manager
Pakistan Geography
Photoshop
PHP
Programming Language
Prompt Engineering
Puzzles
Python
R Programming Language
ReactJS
Science
Social Science
SQL
SQLite
Tamil Nadu State board (Class 10)
Technical MCQs
Technical Short Answers
TypeScript - JavaScript's Superset
UGC NET, SET
User Experience
Verbal and Reasoning
Vue JS
অতীত ও ঐতিহ্য: অষ্টম শ্রেণীর: পশ্চিমবঙ্গ মধ্যশিক্ষা পর্ষদ
অর্থনীতি
আরবী ভাষা কোর্স - Diploma in Arabic language
ইতিহাস
ইতিহাস ও পরিবেশ: দশম শ্রেণি: পশ্চিমবঙ্গ মধ্যশিক্ষা পর্ষদ
ইসলামিক বই
ইসলামে আকীকা
ইসলামে নারী
এসো আরবী শিখি
কুরআন
খাদ্য, পুষ্টি ও খাদ্যের উপাদান
জীবনবিজ্ঞান ও পরিবেশ (দশম)
তাহারাত কুইজ প্রতিযোগিতা
নবীদের কাহিনী - The story of the prophets
পরিবেশ ও বিজ্ঞান
প্যারেন্টিং - Parenting
প্রচলিত ভুল বিষয়ে প্রতিযোগিতা টেস্ট কুইজ
প্রশ্নোত্তরে ইসলামী জ্ঞান
বাংলা ইসলামিক কুইজ - Bangla Islamic Quiz
বাংলা সাহিত্য
ব্যক্তিগত উন্নয়ন (Personal Development)
ভূগোল
মডার্ন কম্পিউটার অ্যাপ্লিকেশন - একাদশ শ্রেণী
মডার্ন কম্পিউটার অ্যাপ্লিকেশন - দ্বাদশ শ্রেণী
লেখক এবং কবি
শয়তান পরিচিতি
সংক্ষিপ্ত জীবনী
সাধারণ জ্ঞান
সাহাবীদের জীবনী
সীরাত প্রতিযোগিতার প্রশ্ন ও উত্তরসমূহ
Guest
Profile
Logout
Green
Light
Dark
PHP String and Regular Expression
Answer all questions carefully. After submission, you will see a detailed result and answer review.
Question 1
Which one of the following functions finds the last occurrence of a string, returning its numerical position?
A.
strlastpos()
B.
strpos()
C.
strlast()
D.
strrpos()
Question 2
Say we have two compare two strings which of the following function/functions can you use? <div>(i) strcmp()</div> <div>(ii) strcasecmp()</div> <div>(iii) strspn()</div> <div>(iv) strcspn()</div>
A.
(i) and (ii)
B.
(iii) and (iv)
C.
None of the mentioned
D.
All of the mentioned
Question 3
Which one of the following regular expression matches any string containing zero or one p?
A.
p+
B.
p*
C.
P?
D.
p#
Question 4
How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions?
A.
7
B.
8
C.
9
D.
10
Question 5
Which one of the following functions will convert a string to all uppercase?
A.
strtoupper()
B.
uppercase()
C.
str_uppercase()
D.
struppercase()
Question 6
Which one of the following functions can be used to concatenate array elements to form a single delimited string?
A.
explode()
B.
implode()
C.
concat()
D.
concatenate()
Question 7
PHP has long supported two regular expression implementations known as ___ and ___.<div>(i) Perl</div> <div>(ii) PEAR</div> <div>(iii) Pearl</div> <div>(iv) POSIX</div>
A.
(i) and (ii)
B.
(ii) and (iv)
C.
(i) and (iv)
D.
(ii) and (iii)
Question 8
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php echo str_pad("Salad", 5)." is good."; ?> </pre>
A.
SaladSaladSaladSaladSalad is good
B.
is good SaladSaladSaladSaladSalad
C.
is good Salad
D.
Salad is good
Question 9
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php $url = "nachiketh@example.com"; echo ltrim(strstr($url, "@"),"@"); ?> </pre>
A.
nachiketh@example.com
B.
nachiketh
C.
nachiketh@
D.
example.com
Question 10
What will be the output of the following PHP code? <pre class="prettyprint"> < ?php $title = "O'malley wins the heavyweight championship!"; echo ucwords($title); ?> </pre>
A.
O
B.
O
C.
O
D.
o
Submit Quiz