Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CIST2351-PHP Programming I - Final Prep ACTUAL QUESTIONS AND CORRECT ANSWERS

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
11-11-2025
Written in
2025/2026

CIST2351-PHP Programming I - Final Prep ACTUAL QUESTIONS AND CORRECT ANSWERS Which function searches for a regular expression in a string and returns 1 if the pattern is found? - CORRECT ANSWERSpreg_match What modifier can be added to the end of a regular expression in PHP to make it case insensitive? - CORRECT ANSWERSi A list of functions or methods in the reverse order in which they were called is a(n)________________. - CORRECT ANSWERSstack trace Regular expressions - CORRECT ANSWERScan be used to completely validate some types of user entries Which of the following are coded patterns that you can use to search for matching patterns in text strings? - CORRECT ANSWERSregular expressions Which of the following will match a new line in a PHP regular expression? - CORRECT ANSWERS/n This pattern can be used to validate a five-digit zip code: - CORRECT

Show more Read less
Institution
Course

Content preview

CIST2351-PHP Programming I - Final
Prep ACTUAL QUESTIONS AND
CORRECT ANSWERS
Which function searches for a regular expression in a string and returns 1 if the pattern is
found? - CORRECT ANSWERS✅✅preg_match


What modifier can be added to the end of a regular expression in PHP to make it case
insensitive? - CORRECT ANSWERS✅✅i


A list of functions or methods in the reverse order in which they were called is
a(n)________________. - CORRECT ANSWERS✅✅stack trace



Regular expressions - CORRECT ANSWERS✅✅can be used to completely validate some
types of user entries


Which of the following are coded patterns that you can use to search for matching patterns in
text strings? - CORRECT ANSWERS✅✅regular expressions


Which of the following will match a new line in a PHP regular expression? - CORRECT
ANSWERS✅✅/n


This pattern can be used to validate a five-digit zip code: - CORRECT
ANSWERS✅✅/^\d{5}$/


Which character is used to signify the beginning or the end of a word in a PHP regular
expression? - CORRECT ANSWERS✅✅\b


If you want to code a catch block that catches all types of exceptions and gets the message
associated with the exception, you start the catch block like this: - CORRECT
ANSWERS✅✅catch (Exception $e) {

, Which of the following will match any character that is NOT a letter, number, or underscore
in a PHP regular expression? - CORRECT ANSWERS✅✅\W


All of the arguments that are passed to a function are available in an array that can be
accessed by using the - CORRECT ANSWERS✅✅func_get_args function


If you create a function that passes an argument by reference, the function - CORRECT
ANSWERS✅✅can change the original variable without using a return statement


Which of the following is a function that is passed as an argument to another function? -
CORRECT ANSWERS✅✅callback


Which of the following is a nested function that has access to the outer function's local
variables? - CORRECT ANSWERS✅✅closure


Which term describes locations in the code that have access to a variable? - CORRECT
ANSWERS✅✅scope



To avoid the duplication of function names, you can - CORRECT ANSWERS✅✅Use
namespaces


When creating functions, you can include ______________ that are located inside
parentheses after the function name. - CORRECT ANSWERS✅✅parameters


By default, all arguments passed to PHP functions are passed by ________________. -
CORRECT ANSWERS✅✅value


A variable declared inside a PHP function would be considered a ____________ variable. -
CORRECT ANSWERS✅✅local


Which method of passing a variable allows the function to change the value of the variable? -
CORRECT ANSWERS✅✅by reference

Written for

Course

Document information

Uploaded on
November 11, 2025
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$11.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
GENIOUSTOPCLASS
3.0
(1)

Get to know the seller

Seller avatar
GENIOUSTOPCLASS Stanford
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
10 months
Number of followers
0
Documents
1857
Last sold
7 months ago
ACADEMIC EXAMS PLATFORM

I create high-quality, easy-to-understand academic documents to help students learn faster and perform better. My materials are well-researched, clearly organized, and cover key exam topics to make studying simple and effective.

3.0

1 reviews

5
0
4
0
3
1
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions