Dashboard / Courses / BLENDED 1923T.
B / BL-CS-301-LEC-1923T / Week 8: Midterm Examination / Midterms
Started on Wednesday, 30 October 2019, 4:10 PM
State Finished
Completed on Wednesday, 30 October 2019, 4:23 PM
Time taken 12 mins 43 secs
Marks 48.00/50.00
Grade 96.00 out of 100.00
Question 1 It is the command used to incorporate an external page into your html.
Correct
Mark 2.00 out of Select one:
2.00
a. include
b. get
c. None of the Choices
d. post
Your answer is correct.
Question 2 Which of the following is a valid use of the window.alert() method?
Correct
Mark 1.00 out of Select one:
1.00
a. None of the choices
b. window.alert('This is text");
c. win.alt("This is text");
d. window.alert("This is text);
Question 3 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 2.00 out of
2.00 Select one:
a. $_POST
b. $_GET
c. None of the Choices
d. $_GET
Your answer is correct.
Question 4 Which of the following statements would be valid in JavaScript?
Correct
Mark 2.00 out of Select one:
2.00
a. document.write("John said, "Hi!"");
b. document.write("John said, \"Hi!\"");
c. None of the choices
d. document.write('John said, "Hi!"");
Question 5 It is a function in the PHP that get the date of the server.
Correct
Mark 1.00 out of Select one:
1.00
a. None of the Choices
b. array()
c. date()
d. strtoupper()
Your answer is correct.
Question 6 Which of the following variable declarations uses a variable with a valid variable name in JavaScript?
Correct
Mark 2.00 out of Select one:
2.00
a. var default;
b. var my dog;
c. var 2cats;
d. None of the choices
Question 7 Which of the following successfully prints a variable named name by adding it to a set of strings?
Correct
Mark 2.00 out of Select one:
2.00
a. document.write("Hello" + "name" + "!");
b. None of the choices
c. document.write("Hello " + name!);
d. document.write("Hello name!");
Question 8 Variable names are not case sensitive.
Correct
Mark 2.00 out of Select one:
2.00
a. False
b. True
Question 9 Refers to an array of all objects of a particular type.
Correct
Mark 1.00 out of Select one:
1.00
a. object properties
b. None of the choices
c. object method
d. object collection
Question 10 Which of the following indicates that a single line of commentary will follow it within JavaScript code?
Correct
Mark 1.00 out of Select one:
1.00
a. /*
b. //
c. <!--
d. None of the choices
Question 11 Is a property use to display document within the frame.
Correct
Mark 2.00 out of Select one:
2.00
a. None of the choices
b. document
c. method
d. name
Question 12 Which of the following successfully prints a variable named myhobby by adding it to a set of strings?
Correct
Mark 2.00 out of Select one:
2.00
a. document.write("I like to +myhobby+ every weekend");
b. document.write("I like to " +myhobby+ " every weekend");
c. document.write("I like to myhobby every weekend");
d. None of the choices
Question 13 In JavaScript, you access object properties through the use of the
Correct
Mark 2.00 out of Select one:
2.00
a. multiplication operator
b. You can't access the properties of an object
c. None of the choices
d. addition operator
Question 14 To write a string of text on a Web page, the _________ method is used.
Correct
Mark 1.00 out of Select one:
1.00
a. None of the choices
b. document.print()
c. document,type()
d. window.print()
Question 15 Which of the following is not an include statement?
Correct
Mark 2.00 out of Select one:
2.00
a. <?php include 'include/external.php'; ?>
b. <?php require 'include/external.php'; ?>
c. <?php include_all 'include/external.php' ?>
d. <?php include_once 'include/external.php'; ?>
Your answer is correct.
Question 16 It is a PHP function wherein it adds the input data as series of name value pairs in a query string at the end of the
Correct URL.
Mark 2.00 out of
2.00 Select one:
a. ISSET()
b. $_POST
c. $_GET
d. None of the Choices
Your answer is correct.
Question 17 Which of the following is not a JavaScript object?
Correct
Mark 1.00 out of Select one:
1.00
a. window
b. link
c. frame
d. None of the choices
Question 18 Which of the following declares a variable named pagenumber and gives it a value of 240?
Correct
Mark 2.00 out of Select one:
2.00
a. var PageNumber=240;
b. pagenumber=220;
c. None of the choices
d. var pagenumber=240;
Question 19 Is an object collection for all internal frames in the document.
Correct
Mark 1.00 out of Select one:
1.00
a. document.form.elements
b. None of the choices
c. document.frames
d. document.plugins
Question 20 All object collections are supported by all browsers or browser versions.
Correct
Mark 2.00 out of Select one:
2.00
a. False
b. True
Question 21 It is a function that display the content of the array.
Correct
Mark 2.00 out of Select one:
2.00
a. print_r($Flowers);
b. $Flowers = [];
c. $Flowers = array();
d. None of the Choices
Your answer is correct.
Question 22 What symbol is used as the assignment operator in JavaScript?
Correct
Mark 1.00 out of Select one:
1.00
a. None of the choices
b. :
c. +
Question 23 Each object in JavaScript has properties associated with it.
Correct
Mark 2.00 out of Select one:
2.00
a. False
b. True
Question 24 Which of the following string declarations is invalid?
Correct
Mark 2.00 out of Select one:
2.00
a. var mytext= “Here is \n some text!”;
b. None of the choices
c. var mytext=‘Here is some text!’;
d. var mytext=“Here is some text!”;
Question 25 Which of the following string declarations is invalid?
Correct
Mark 1.00 out of Select one:
1.00
a. None of the choices
b. var mytext= “Here is \n some text!”;
c. var mytext=“Here is some text!”;
d. var mytext=‘Here is some text!’;
Question 26 What are two of the benefits of using variables?
Correct
Mark 2.00 out of Select one:
2.00
a. They make the purpose of your code clearer, and they make it harder for noncoders to understand the
script.
b. They can save you time in writing and updating your scripts, and they can make the purpose of your code
clearer.
c. They can save you time in writing and updating your scripts, and they make it harder for noncoders to
understand the script.
d. None of the choices
Question 27 It is named value pairs that are stored in the browser and they're sent to the web server with each page request.
Correct
Mark 2.00 out of Select one:
2.00
a. Cookies
b. Session
c. None of the Choices
d. Functions
Your answer is correct.
Question 28 Which of the following statements would be valid in JavaScript?
Correct
Mark 2.00 out of Select one:
2.00
a. document.write("John said, "Hi!"");
b. document.write("John said, \"Hi!\"");
c. document.write('John said, "Hi!"");
d. None of the choices
Question 29 You should avoid using JavaScript reserved words as variable names.
Incorrect
Mark 0.00 out of Select one:
2.00
a. False
b. True
Question 30 Which of the following is not the file to access if you want to change your server's time?
Correct
Mark 1.00 out of Select one:
1.00
a. user.ini
b. index.php
c. .htaccess
d. php.ini
Your answer is correct.
Lesson 7: Math, Number and Date
◄ Quiz 004 Jump to...
Objects ►