stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
WebDevelLeve6FunnyClassroom Flashcards | StudBud
Explore
/
WebDevelLeve6FunnyClassroom
WebDevelLeve6FunnyClassroom
22 terms
·
StudBud Administration
·
1 play
Web Development for Level 6
Flashcards
22 cards
F
Practice quiz
P
Host live
L
Questions
22
Answers
1
How do you create an array in PHP?
$cars = array("Volvo", "BMW", "Ford");
$cars => ("Volvo", "BMW", "Ford");
$cars => "Volvo", "BMW", "Ford";
$cars = array["Volvo", "BMW", "Ford"];
2
Which operator is used to check if two values are equal and of same data type?
===
==
=>
====
3
When using POST method, variables are displayed in the URL:
False
True
4
What is the correct way to add 1 to the
$count
variable?
$count++
count++
$count=+1
1++count
5
A group of code that perform a certain task when is called:
function
if statement
class
object
6
The less secure method for sending data to PHP script:
Request
Session
Post
get
7
This variable is available inside a function where it was created only:
String variable
Integer variable
Local variable
Global variable
8
In PHP, all variables must start with:
&
%
$
@
9
$name = "John"; echo $name; echo " $name"; echo ' $name'; Output is:
John John $name
John John John
John $name John
John John
10
What is the correct way to open the file "time.txt" as readable?
fopen("time.txt", "read");
open("time.txt", "read");
fopen("time.txt", "r");
open("time.txt", "r");
11
<?php $name; ?> What is the data type of $name;
string
UNKNOWN
NULL
UNDEFINED
12
The correct way to create a new function in PHP:
function myFunc(){}
create function myFunc(){}
function new myFunc(){}
new function myFunc(){}
13
End of PHP statements:
Semi-colon (;)
Return (Enter)
Period (.)
Colon (:)
14
Example of PHP reversed word/keyword:
statement
if
loop
decision
15
In PHP you can use both single and double quotes for strings:
True
False
16
PHP scripts are surrounded by delimeters:
<?php> ... <?>
<?php ... ?>
<?php ... <?>
?<php ... >?
17
The die() and exit() functions do the exact same thing.
False
True
18
Which one of these variables has an illegal name?
my_name
$my_name
$my-name
$myName
19
PHP
Powered Home Page
PHP: Hypertext Preprocessor
Powered Home Processor
People Home Page
20
In PHP, the only way to output text is with echo
False
True
21
The if statement is used to loop throught some code only if a specified condition is true
False
True
22
PHP comment
#
\*.......*\
*/....../*
/