Professional Documents
Culture Documents
Finals - Attempt Review PDF
Finals - Attempt Review PDF
b. Loops
c. Variable
d. Conditional Statement
b. 45
c. 36
Question 3 Which of the following indicates that a single line of commentary will follow it within JavaScript code?
Correct
c. /*
d. //
Question 4 It is a PHP function wherein the data will be transmitted to the server in the http header when the form is
Correct submitted for processing.
Mark 1.00 out of
1.00 Select one:
a. $_GET
c. $_POST
d. $_GET
c. win.alt("This is text");
d. window.alert('This is text");
Question 6 What property of the Array object will return the numeric value of the length of an array?
Correct
Question 7 Rather than executing every single line of code within the script, a conditional statement allows certain sections
Correct of the script to be executed only when a particular condition is met.
Mark 1.00 out of
1.00 Select one:
a. False
b. True
b. !(17>=20)
d. (1==1)&&(2<0)
b. @ (At Sign)
c. $ (Dollar Sign)
Question 11 Which of the following is the open and closing tags of PHP?
Correct
b. <? /php>
c. <?php /?>
b. Variable
c. Conditional Statement
d. Loops
Question 13 The external JavaScript file must contain the <script> tag.
Correct
b. False
Select one:
a. None of the choices
b. Good day
c. Good morning
d. Good evening
Question 16 In JavaScript, you access object properties through the use of the
Correct
c. addition operator
Question 17 Which of the following correctly codes an alert on the click event?
Incorrect
b. $_POST
d. ISSET()
Question 19 Which of the following successfully prints a variable named name by adding it to a set of strings?
Correct
b. document.write("Hello name!");
Question 20 The mousedown event uses what keyword as its event handler?
Incorrect
b. mousedown
d. onmouseout
Mark 1.00 out of 1st: The client browser sends a request to the Web Server
1.00
2nd: The Webserver will simply respond to the client if the page consist of HTML, CSS, Images and Javascript.
However, if the there is a PHP in the webpage, it will proceed to the 3rd step.
3rd: x x x x
4th: If there is a database involve the PHP engine will send the file to the database for processing.
5th: After the database have processed the file it will then return it to the PHP engine and the PHP Engine will
return it to the web server. The web server is the one responsible for sending it back to the client browser.
Select one:
a. The Webserver will then interpret the PHP Webpage and send it back to the Database.
b. The Webserver will then interpret the PHP Webpage and send it back to the Database.
d. The Webserver will send the PHP webpage to the PHP Engine for processing.
b. .htaccess
c. user.ini
d. php.ini
Question 23 Which of the following correctly assigns the day of the week for an instance of the Date object named rightnow
Correct to a variable named weekday?
Mark 1.00 out of
1.00 Select one:
a. None of the above
b. True
Question 25 What do the properties and methods of the Math object enable you to do?
Correct
b. Take the square roots and other such values of strings and return a number
Question 26 The choice of a Web browser is up to you, as long it's compatible with _________.
Correct
c. JavaScript
d. Flash MX
Question 27 Which of the following successfully prints a variable named myhobby by adding it to a set of strings?
Correct
b. Functions
c. Conditional Statement
d. Variable
b. The viewer clicks the mouse while the cursor is over a button.
d. The viewer moves the mouse cursor over an element on the page.
Select one:
a. None of the choices
b. 12
c. 1
d. 0
c. They provide a way to organize the various parts of the script into the different tasks that must be
accomplished, and they can be reused.
d. They make simple scripts more complex, and they can be reused.
b. When the script is very long or needs to be placed in more than one HTML document
c. When the script is short or going to be used in only one HTML document
c. print_r($Flowers);
d. $Flowers = [];
Question 34 This is the command to display the value stored in the variable.
Correct
b. Echo
c. Display
Question 35 Which of the following will correctly access the fifth element of an array named "age"?
Correct
b. age[5];
c. age[4];
d. age(5);
Question 36 JavaScript is a _________ language that doesn't require a program to be compiled before it is run.
Correct
server-side
scripting
b. True
b. :
b. Yes
Question 40 Which of the following language is used to program the behavior of web pages?
Correct
b. HTML
d. CSS
b. www
c. public_html
d. htdocs
c. =
d. ==
Question 43 What is the output of the script below? <script> var text1 = "Hello"; var text2 = "World!";
Incorrect document.write(text1.concat(" ",text2));
Mark 0.00 out of
1.00 Select one:
a. World
b. Hello" "World
d. Hello World
b. var
d. for
Question 45 Which of the following correctly calls myFunction() whenever a user clicks a button?
Incorrect
b. document.write(Math.PI);
c. document.write(Math.pi);
Question 47 The script tag's attribute that tells the browser the language of the script.
Correct
b. id
d. src
Question 48 Which of the following variable declarations uses a variable with a valid variable name in JavaScript?
Correct
b. var my dog;
c. var 2cats;
b. object collection
c. object properties
d. object method