0% found this document useful (0 votes)
61 views39 pages

CCS0043 Fa2

Uploaded by

rickman0422
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views39 pages

CCS0043 Fa2

Uploaded by

rickman0422
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

1.

Try/catch exception handling introduce in what version of PHP

2. What is the url is use to open your created php files

3. How many domain PHP installed on May 22, 2000


4. PHP require to use a web browser

5. Presented ads character corresponding to that ASCII value


6. What is the default location of XAMPP?

7. Presented as a floating point number


8. $val=”abc”.”def” valid or invalid?

9. Asp style tag


10. returns the type of the variable. Possible return values are integer, double, boolean,
string, array, object, resource, unknown types.

11. Concatenation-assignment symbol


12. Symbol for equal to

13. Syntax for Switch


14. $x=0;
for($i=1;$i<5;$i++){$x+=$i;}
echo $x;
What is the output if $x=2

15. Symbol for division


16. $s=90;
if($s==80 && $s<90) {
echo “Rank B”;
} else if($s>90){
echo “Rank A”;
}else{
echo “Rank C”;
}
What is the output if $s=70?
24. Another code for condition

25. if(expression) {
statement…
} else {
statement
}
How many condition/s

26. Syntax for do… while statement

27. Symbol for OR operatpr


28. Syntax for if statement

29. Syntax for while statement


PHP is a free of charge
Group of answer choices
False
True
Strings inside the ‘ and ‘ are interpreted as literal strings.
Group of answer choices
False
True

Much of the PHP syntax were derive from C programming Language.


Group of answer choices
False
True
Symbol for single line comment
Group of answer choices
<<
,,
>>
//

Script tag
Group of answer choices
</scr>
<scrpt>
</sct>
</script>
Extension name for php files
Group of answer choices
.p
.hp
.ph
.php

variable can only contain ________characters and underscore (a-z,A-Z,0-9,_).


Group of answer choices
alpha-numeric
special characters
letters
numeric

Open tag for PHP scripts


Group of answer choices
<?
<=
?>
=>
PHP is an native support for SQLite
Group of answer choices
True
False

You need a subscription before you use the PHP


Group of answer choices
False
True

PHP created 1994/1995 t know how many visitors were reading his online resume based
on
Group of answer choices
CSS page
HTML page
PERL/CGI script
JavaScript page
Who develops PHP?

Rasmus Lefdor
Rasmus Lerdorf
Ramus Lerdorf
Ramus Lerdof

In what year PHP 3.0 released


Group of answer choices
1999
2000
1998
2001

$ inside “ and “ are interpreted as variables thus it will display the value rather than the
string that starts with $.
Group of answer choices
False
True

Symbol for greater than


Group of answer choices
<
>=
<=
>

break statement is placed within the code of a loop to cause the program to break out of
the loop statement.

Operator for Ternary operator


Group of answer choices
<>
,,
?:
//

$m=3;
switch($m){
case 1: echo “May”; break;
case 2: echo “June”; break;
case 3: echo “July”; break;
default: echo “invalid”; break;
}
What is the output if $m is one?

Group of answer choices


Invalid
July
May
June
Multiplication-assignment symbol
Group of answer choices
*=
==*
**
*
if(7 __ 4)
{ echo “true”;}
Else
{ echo “false”;}
What is missing code to make the statements true?

Group of answer choices


>
=
<
!=
Escape Sequence for horizontal tab
Group of answer choices
\n
\t
\r
\h

You can use many if condition in one php script


Group of answer choices
True
False

You can only use 50 cases for the switch


Group of answer choices
True
False

$x=15;
Echo --$x;
What is the output?
Group of answer choices
13
14
15
16
Symbol for modulus
Group of answer choices
M
$
^
%

Operator for Boolean AND, Boolean OR


Group of answer choices
?:
,,
&&||
&^|
Next

Associativity for Division, multiplication, modulus


Group of answer choices
Middle
NA
Left
Right
Operator for Bitwise AND, bitwise XOR, bitwise OR
Group of answer choices
&^|
?:
&&||
,,

What is OS?
Group of answer choices
Outgoing System
Operating System
Out System
Operation System
PHP 5 vastly improved
Group of answer choices
Object Oriented capabilities
Designing
Scripting
Coding

Which of the following not a internet browser?


Group of answer choices
Opera
Safari
Windows Media
Internet Explorer

Variable might contain a string, numbers, arrays and objects.


Group of answer choices
True
False

Presented as a binary number


Group of answer choices
%y
%n
%bn
%b
PHP is based on
Group of answer choices
C
Java
Perl
C#

PHP version that has an Enterprise development

Group of answer choices


PHP 2.0
PHP 1.0
PHP 4.0
PHP 3.0
Next

Variables in PHP must begin with


Group of answer choices
$
!
#
@
New language features for PHP 6
Group of answer choices
Foreach looping
Single looping
Double looping
Multiple looping

Which of the following is not Linux OS


Group of answer choices
Vista
Suse
Debian
Ubuntu
Symbol for addition
Group of answer choices
+
=+
++

$x=10;
Echo ++$x;
What is the output?
Group of answer choices
13
14
12
11

Associativity for Expression subgrouping


Group of answer choices
NA
Right
Middle
Left
Associativity for Boolean AND, Boolean OR
Group of answer choices
NA
Left
Middle
Right

Symbol for not equal


Group of answer choices
!=
=
==
===

$s=90;
if($s==80 && $s<90) {
echo “Rank B”;
} else if($s>90){
echo “Rank A”;
}else{
Echo “Rank C”;
}
What is the output if $s=50?

Group of answer choices


Rank B
Error
Rank A
Rank C
You can create multiple statements inside of an condition
Group of answer choices
False
True
Symbol for NOT
Group of answer choices
!
#
$
@

You might also like