Upgrade to remove ads
Only SGD 41.99/year
-
Flashcards
-
Learn
-
Test
-
Match
-
Flashcards
-
Learn
-
Test
-
Match
Terms in this set [50]
How does the PHP engine process whitespace?
Ignores it
Which of the following PHP data types stores only true or false values?
Boolean
Which of the following is an example of a short-style PHP tag?
In PHP which bitwise operation is signified by the pipe [|] character?
OR
What is the purpose of the semicolon in PHP?
statement termination
Which of the following is a PHP function used to declare constants?
Define
Which of the following symbol represents a single-line comment in PHP?
//
Which of the following statements is false concerning PHP identifiers?
Identifiers are case insensitive.
PHP string interpolation requires:
double quotation marks
Which of the following statements tests for equality between the PHP variables $a and $b?
$a == $b
MySQL is an example of a[n]:
RDBMS
The _________ function reads an arbitrary number of bytes from a file.
fread[]
To open a file in PHP you use the _________ function
fopen[]
Which of the following is an alternative to the PHP file_put_contents[] function?
fwrite[]
Which of the following fopen[] file modes denotes 'cautious write'?
X
Disable PHP from opening files via fopen[] and FTP by editing:
php.ini
In PHP a while loop tests for the end of the file by using which function?
feof[]
Which of the following represents a reading lock of the flock[] function?
LOCK_SH
Which of the following is NOT a problem of working with flat files in PHP?
When a file becomes small, working with it can be very slow
In PHP writing data to a file requires how many steps?
3
An array containing other arrays is known as a[n] ___________ array.
Multidimensional
The PHP constant ____________ will sort an array as strings depending on the current locale.
SORT_LOCALE_STRING
PHP indexes start at ________ by default.
0
Which of the following PHP array operators signifies non-identity?
!==
The statement $products{0} access the ________ element in an array.
First
Which of the following expression shows a correct PHP array definition?
$products = ['Tires', 'Oil', 'Spark Plugs'];
The __________ construct can be used to split an array into a number of values.
list[]
The three different PHP sorting functions are sort[] asort[], and
ksort[]
What kind of PHP variable stores a single value?
Scalar
The _________ function modifies every element in an array the same way.
array_walk[]
Which of the following is an alias for the chop[] PHP function?
rtrim[]
Which PHP function takes a string as a parameter and replaces all the newlines in it with the HTML
tag?
n12br[]
What is the most common delimiter in PCRE regular expressions?
/
The expression $test = substr_replace[$test, 'X', -1]; replaces:
The last character in $test
Which of the following regex tokens anchors your match to the beginning of the subject string?
^
Which of the following conversion specification type codes interprets as an integer and prints as a character?
C
What is the result of the statement echo strlen["hello"];?
5
Which of the following represents the HTML encoding of >?
>
The trim[] function removes whitespace:
from the start and end of a string
Which of the following PHP expressions can get the domain name from a customer's email address?
$email_array = explode['@', $email];
A PHP function that calls itself is known as a _________ function.
Recursive
Which of the following statements is true concerning PHP functions?
PHP function names cannot begin with a digit.
Calls to PHP Functions:
are case-insensitive
In PHP the normal way that function parameters are called is known as:
pass by value
The PHP keyword return:
stops the execution of a function
What is the role of 'foo' in the PHP statement function['foo'];?
Parameter
Which of the following is a php.ini directive that points to a header file?
auto_prepend_file
Which of the following is a PHP statement that allows you to load a file into your PHP script?
require[]
A PHP function's __________ lists its parameters and data types.
Prototype
PHP variables that are declared inside a function are known as:
local variables
Sets with similar termsCOP3014 Midterm
104 terms
gabimetallides
C programming Test Chapters 7-9
30 terms
ladymolly
CSCI 121 Test 2 Set 1
60 terms
TheSaltyFaltys
cop 1220
76 terms
quizlette2157204
Sets found in the same folderPHP Welling 6-11
60 terms
dogtoe23
CPSC-431 Final Exam Study Guide Pt. 2/2
59 terms
mardiaz353
MIS 315
342 terms
iadnow
Chapter 6
70 terms
j_amp
ISIT350 FInal
106 terms
dogtoe23
Network Security - Final
78 terms
dogtoe23
NSCOM 223 Final
103 terms
dogtoe23
NSCOM 223 Test 2
53 terms
dogtoe23
Recommended textbook solutionsIntroduction to Algorithms
3rd EditionCharles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
720 solutions
Information Technology Project Management: Providing Measurable Organizational Value
5th EditionJack T. Marchewka
346 solutions
Starting Out with C++ from Control Structures to Objects
8th EditionGodfrey Muganda, Judy Walters, Tony Gaddis
1,294 solutions
Fundamentals of Database Systems
7th EditionRamez Elmasri, Shamkant B. Navathe
687 solutions
Other Quizlet setsQuiz 4 - Operating Systems - incase original is de…
28 terms
MrFrogMonster
OS Quiz 1-4 Answers
80 terms
VS_Brandon
INTRO TO WEBDESIGN
55 terms
andrelina_howard
ARRL Extra Ham Study Questions-E2E
13 terms
dmclambjr
Related questionsQUESTION
What does a DGI [Dynamic Gait Index] measure?
7 answers
QUESTION
To get a pop-up menu with mouse right-click, use:
8 answers
QUESTION
Chaining together if and if/else statements
6 answers
QUESTION
The signature of a function consists of the function name and its formal parameter lists.
7 answers