Finals - Attempt Review PDF
Finals - Attempt Review PDF
Question 3 What property of the Array object will return the numeric value of the length of an array?
Correct
Select one:
a. None of the choices
b. Maria,Isabela,Georgina,Maria
c. Maria,Isabela,Georgina
d. Isabela,Georgina,Maria
Question 5 Active scripting is not a programing language instead it is a plain text interpreted to make a dynamic and
Correct interactive web pages.
Mark 1.00 out of
1.00 Select one:
a. True
b. False
b. ==
c. &&
Question 7 Which of the following is something you should have to use the JavaScript?
Correct
c. C++ compiler
d. Web browser
Question 8 What do you use to enclose the blocks of code in conditionals and loops?
Correct
b. Square brackets
c. Parentheses
d. Curly brackets
Question 9 What is the output of the script below?
Correct <script>
Mark 1.00 out of var str = "HELLO WORLD";
1.00 document.write(str.charAt(1));
</script>
Select one:
a. 69
b. H
d. E
b. Loops
c. Variable
d. Arrays
b. Conditional Statement
c. Functions
d. Loops
Question 12 All object collections are supported by all browsers or browser versions.
Correct
b. True
b. The viewer clicks the mouse while the cursor is over a button.
c. The viewer moves the mouse cursor over an element on the page.
d. The viewer clicks a link, linked image, or linked area of an image map.
Question 14 Which of the following is a Free PHP Editor?
Correct
b. Dreamweaver
c. Zend Studio
d. Komodo Edit
Question 15 Which of the following successfully prints a variable named name by adding it to a set of strings?
Correct
d. document.write("Hello name!");
b. Functions
c. Variable
d. Arrays
b. Functions
c. Conditional Statement
d. Loops
Question 18 It is a function in the PHP that check whether the variable has been set.
Correct
c. isset()
d. date()
b. msg(“Hello World”)
c. alert(“Hello World”)
Question 20 Which of the following declares a variable named pagenumber and gives it a value of 240?
Correct
b. pagenumber=220;
c. var PageNumber=240;
d. var pagenumber=240;
c. They can save you time in writing and updating your scripts, and they make it harder for noncoders to
understand the script.
d. They can save you time in writing and updating your scripts, and they can make the purpose of your code
clearer.
Question 22 Which of the following correctly assigns the result of a function named get_something () to a variable named
Correct shopping?
Mark 1.00 out of
1.00 Select one:
a. var Shopping=get_Something;
d. var shopping=“get_something”;
Question 23 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
Question 24 This are statements that performs repetitive tasks.
Correct
b. Conditional Statement
c. Functions
d. Variable
b. (3==3)&&(5<1)
c. !(17>=20)
d. (1==1)&&(2<0)
Question 26 What is the result of the script when the user input a small letter ‘a’?
Correct <head>
Mark 1.00 out of <script>
1.00 function myFunction() {
var x = document.getElementById("fname");
x.value = x.value.toUpperCase();
}
</script>
</head>
<body>
Enter your name: <input type="text" id="fname" onchange="myFunction()">
</body>
</html>
Select one:
a. c
c. 65
d. A
d. Performs a comparison
Question 28 What symbol is used as the assignment operator in JavaScript?
Correct
c. :
Question 29 The mousedown event uses what keyword as its event handler?
Correct
b. onmousedown
d. onmouseout
Question 30 The choice of a Web browser is up to you, as long it's compatible with _________.
Correct
b. VBScript
c. JavaScript
d. Flash MX
b. When the script is short or going to be used in only one HTML document
d. When the script is very long or needs to be placed in more than one HTML document
Question 32 Which of the following language is used to program the behavior of web pages?
Correct
b. CSS
c. HTML
d. Java
b. window.alert("This is text);
c. win.alt("This is text");
d. window.alert('This is text");
Question 34 Which of the following string declarations is invalid?
Correct
Question 35 Why should you use the type attribute in the opening script tag?
Correct
d. To be sure the browser does not interpret your JavaScript as another scripting language and to ensure the
Web page validates in XHTML
Question 36 Which of the following indicates that a single line of commentary will follow it within JavaScript code?
Correct
c. //
d. /*
Question 37 It is named value pairs that are stored in the browser and they're sent to the web server with each page request.
Correct
c. Cookies
d. Session
Question 38 It is a function in the PHP that converts the string into Upper case.
Correct
b. array()
c. strtoupper()
d. date()
c. (4>=4)&&(5<=2)
d. !(3<=1)
Question 40 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
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 send the PHP webpage to the PHP Engine for processing.
b. The Webserver will then interpret the PHP Webpage and send it back to the Database.
d. The Webserver will then interpret the PHP Webpage and send it back to the Database.
Question 42 Which of the following correctly calls myFunction() whenever a user clicks a button?
Correct
b. index.php
c. php.ini
d. user.ini
b. /* */
c. //
d. % %
Question 45 How many times can you nest a code block within another?
Correct
c. As many times as you like (though enough nesting could run the browser out of memory)
d. Once
Question 46 It is the command used to incorporate an external page into your html.
Correct
b. get
c. include
b. public_html
c. htdocs
d. www
b. colon
c. period
Question 50 The keydown event occurs when a viewer presses down a key on the keyboard.
Correct
b. True