Professional Documents
Culture Documents
Finals - Attempt Review2 PDF
Finals - Attempt Review2 PDF
Finals - Attempt Review2 PDF
b. function get_text ()
c. function my function ()
Select one:
a. Georgina
c. Maria
d. Isabella
Question 3 Which of the following correctly points to an external JavaScript file named yourfile.js?
Correct
d. <script language="yourfile.js"></script>
b. .jav
c. .html
d. .js
b. msgBox(“Hello World”)
c. alert(“Hello World”)
d. msg(“Hello World”)
Question 6 What is the result of the script when the user input a small letter ‘a’?
Incorrect <head>
Mark 0.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. None of the choices
b. c
c. 65
d. A
b. They can save you time in writing and updating your scripts, and they make it harder for noncoders to
understand the script.
c. They make the purpose of your code clearer, 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 8 It is a function in the PHP that get the date of the server.
Correct
c. array()
d. date()
Question 9 It is a function in the PHP that converts the string into Upper case.
Correct
b. strtoupper()
d. array()
c. document.fgcolor = blue
d. window.bgcolor = blue
b. Functions
c. Loops
d. Variable
b. Functions
c. Arrays
d. Variable
b. False
Question 14 All object collections are supported by all browsers or browser versions.
Correct
b. True
Question 16 JavaScript is a language that must be compiled while Java is a language that must be interpreted.
Correct
b. True
Question 17 How many times can you nest a code block within another?
Incorrect
c. None
d. As many times as you like (though enough nesting could run the browser out of memory)
c. Performs a comparison
Question 19 Which of the following declares a variable named pagenumber and gives it a value of 240?
Incorrect
c. pagenumber=220;
d. var PageNumber=240;
Question 20 Variable names are not case sensitive.
Incorrect
b. True
Question 21 It is a function in the PHP that check whether the variable has been set.
Correct
b. isset()
c. date()
c. window
d. link
b. inside a script
Question 24 It is the command used to incorporate an external page into your html.
Correct
b. get
c. include
d. post
Question 26 Which of the following correctly calls a function named major_alert() inside the onfocus event handler?
Incorrect
Question 27 In a regular array, access to an element is usually through the use of a(n) __________.
Correct
c. string
d. index number
Question 28 Which of these would be valid as the first line of a for loop?
Incorrect
b. for (x+=1;x<6;x=1)
c. for (x==1;x<6;x+=1)
Question 29 Which of the following is something you should have to use the JavaScript?
Incorrect
b. C++ compiler
b. False
Question 31 Which of the following correctly calls a function named some_alert () and sends it two string values as
Incorrect parameters?
Mark 0.00 out of
1.00 Select one:
a. some_alert("some","words);
c. some_alert ();
d. some_alert("some","words");
b. Mocha
c. LiveScript
b. Dennis Ritchie
c. Bill Gates
b. document.frames
d. document.form.elements
b. True
Question 38 It is a server side scripting language that is designed to be embedded because it is mixed in the HTML Markup.
Incorrect This Language can process and email contact forms, upload & file from online forms, generate thumbnails for
Mark 0.00 out of large images, watermark images, read and write files and communicate with a database.
1.00
Select one:
a. PHP
c. JAVA
d. CSS
Question 40 Which of the following would be valid as the first line of an if/else statement?
Incorrect
d. if (y ! 7)
b. PhpED
c. Dreamweaver
d. Zend Studio
Question 42 What do you use to enclose the blocks of code in conditionals and loops?
Incorrect
b. Parentheses
c. Square brackets
d. Curly brackets
Question 43 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. Functions
b. 2ndarray
c. my array
d. soap
Question 45 Part of the web browser that understands HTML and CSS.
Incorrect
b. JavaScript Interpreter
c. JavaScript Compiler
b. !(3<=1)
c. (4>=4)&&(5<=2)
Select one:
a. E
b. 69
c. H
Question 48 If str = "Jose, Enrique, Vicente" and res = str.slice(15,22), what will be the resulting value of res?
Incorrect
c. ,Vicent
d. Enrique
b. JavaScript Compiler
d. JavaScript Interpreter
c. name
d. document
◄ Quiz 006 Jump to...