Need PHP, SQL help with Questions - 65541

Request Posted by
ernlara711

ernlara711

Rating : No Rating
  • Requests:0
  • Solutions:0
Earned: $0
Request Detail
Price: $20
  • From: Computer Science, Programming
  • Due on: Sat 07 Jun, 2014 (11:49pm)
  • Asked on: Sat 07 Jun, 2014
  • Due date has passed, but you can still Post Solution.
Description

Need this as soon as possible but I need correct answers please.

1) In a server-side language, where does the code get executed?
Select one:
a. The code never gets executed.
b. In the browser, after the download from the server
c. On the server, before the download to the browser
d. Some of the server-side code gets executed in browser and some gets executed on the server.

2) sql_php_q06. Which extension is not a correct PHP file extension?
Select one:
a. .php
b. .phtml
c. .php3
d. .phpRobert

3) PHP can run on different platforms (Ex. Windows, Linux, and Unix)?
Select one:
a. True
b. False

4)PHP scripts are executed on a server?
Select one:
a. True
b. False

5)How do you start the shorthand form PHP scripting block?
Select one:
a. <?php . . .  ?>
b. <? . . .  ?>
c. <? . . .  ?php>
d. <?php . . .  php?>

6) What does a semicolon signify at the end of a instruction or statement?
Select one:
a. the end of a PHP statement or instruction
b. the start of a PHP statement or instruciton
c. to ignore a PHP statement or instruciton

7) Which is the incorrect way to start a single line PHP comment?
Select one:
a. //
b. #
c. /* . . .  */

8) Writing comments is considered a bad programming practice?
Select one:
a. True
b. False

9) Look at the following code and determine what will be displayed in the browser:

<?php
echo "Hello World 1";
// echo "Hello World 2";
?>
Select one:
a. Hello World 1 Hello World 2
b. Hello World 2
c. Hello World 1
d. Hello World 2 Hello World 1

10) What data type will PHP automatically convert the following variable to:
$aVariable = "Robert";
Select one:
a. integer (a number variable)
b. string (a text variable)

11) PHP variables are case-sensitive?
Select one:
a. True
b. False

12) Are the following two variables the same:
$yValue = 7;
$YValue = 7;
Select one:
a. Yes
b. No

13) A numeric array stores each array element (numbers or text strings) with a numeric index?
Select one:
a. True
b. False

14) From the following php scripting block, what will be displayed in the browser:
<?php
$array[0] = "mall";
$array[1] = "Kate";
$array[2] = 9;
$array[3] = "brother";
$array[4] = "cup cakes";
$array[5] = "store";
$array[6] = "Linda";

echo "$array[1] went to the $array[0] to buy $array[2] $array[4] for her $array[3].";
?>
Select one:
a. Linda went to the mall to buy 9 cup cakes for her brother.
b. Kate went to the store to buy 9 cup cakes for her brother.
c. Linda went to the store to buy 9 cup cakes for her brother.
d. Kate went to the mall to buy 9 cup cakes for her brother.

15) It is best to use the GET method when users have to type in a password or private information?
Select one:
a. True
b. False

16) MySQL is a database system?
Select one:
a. True
b. False

17) A query is a request or a question?
Select one:
a. True
b. False

18) For most live web hosting accounts using CPanel, in order to carry out certain action on a databae like inserting/deleting records outside of PHPMyAdmin, a user needs to be created and assigned to the database?
Select one:
a. True
b. False

19) The "mysql_close()" function allows you to close a MySQL connection?
Select one:
a. True
b. False

20) The "mysql_fetch_array()" when used in a while loop will evalute to TRUE when it reaches the last record/row within a table?
Select one:
a. True
b. False

21) Assuming the table and fields below exists, what is wrong with the following mysql query example:
mysql_query("SELECT firstName lastName FROM contacts");
Select one:
a. There should be a comma after "lastName"
b. There should be a comma after "firstName"
c. Nothing, everything is fine

22) What does PHP stand for?
Select one:
a. Personal Home Page
b. PHP: Hypertext Preprocessor
c. Private Home Page
d. Personal Hypertext Processor

23) All variables in PHP start with which symbol?
Select one:
a. !
b. $
c. &

24) How do you get information from a form that is submitted using the "get" method?
Select one:
a. Request.QueryString;
b. $_GET[];
c. Request.Form;

25) Include files must have the file extension ".inc"
Select one:
a. False
b. True

26) What is the correct way to open the file "time.txt" as readable?
Select one:
a. open("time.txt","read");
b. fopen("time.txt","r+");
c. fopen("time.txt","r");
d. open("time.txt");

27) What is the correct way to add 1 to the $count variable?
Select one:
a. $count =+1
b. $count++;
c. ++count
d. count++;

28) In PHP, the die() and exit() functions do the exact same thing.
Select one:
a. True
b. False

4 Solution for Need PHP, SQL help with Questions
Title Price Category solution By purchased  
Answer PHP Quiz
$10.00 no category jordanblink 0 time(s)
All questions with correct answers, PHP & MY SQL
$18.26 no category aj001 0 time(s)
Checkout your inbox :)
$20.00 no category GEEKY_HUSTLER 0 time(s)
100% correct ans for Need PHP, SQL help with Questions
$15.00 no category expert_guide 0 time(s)
Please Login or Register to Submit the Solution for the Request