Dashboard / Courses / BLENDED 1923T.
B / BL-CS-301-LEC-1923T / Week 8: Midterm Examination / Midterms
Started on Wednesday, 8 January 2020, 1:45 PM
State Finished
Completed on Wednesday, 8 January 2020, 1:55 PM
Time taken 9 mins 35 secs
Marks 50.00/50.00
Grade 100.00 out of 100.00
Question 1 Refers to an array of all objects of a particular type.
Correct
Mark 1.00 out of Select one:
1.00
a. object method
b. None of the choices
c. object collection
d. object properties
Question 2 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 = array();
c. None of the Choices
d. $Flowers = [];
Your answer is correct.
Question 3 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. None of the choices
c. var 2cats;
d. var my dog;
Question 4 Which of the following is not a JavaScript object?
Correct
Mark 1.00 out of Select one:
1.00
a. None of the choices
b. link
c. frame
d. window
Question 5 Which of the following is not the file to access if you want to change your server's time?
Correct
Mark 2.00 out of Select one:
2.00
a. [Link]
b. [Link]
c. [Link]
d. .htaccess
Your answer is correct.
Question 6 In JavaScript, you access object properties through the use of the
Correct
Mark 1.00 out of Select one:
1.00
a. addition operator
b. None of the choices
c. multiplication operator
d. You can't access the properties of an object
Question 7 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. [Link]("I like to myhobby every weekend");
b. [Link]("I like to " +myhobby+ " every weekend");
c. None of the choices
d. [Link]("I like to +myhobby+ every weekend");
Question 8 It is a function in the PHP that converts the string into Upper case.
Correct
Mark 2.00 out of Select one:
2.00
a. None of the Choices
b. strtoupper()
c. date()
d. array()
Your answer is correct.
Question 9 To write a string of text on a Web page, the _________ method is used.
Correct
Mark 2.00 out of Select one:
2.00
a. None of the choices
b. [Link]()
c. [Link]()
d. document,type()
Question 10 All object collections are supported by all browsers or browser versions.
Correct
Mark 2.00 out of Select one:
2.00
a. True
b. False
Question 11 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. None of the choices
d. <!--
Question 12 Each object in JavaScript has properties associated with it.
Correct
Mark 2.00 out of Select one:
2.00
a. False
b. True
Question 13 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. None of the Choices
c. Session
d. Functions
Your answer is correct.
Question 14 Is a property use to display document within the frame.
Correct
Mark 2.00 out of Select one:
2.00
a. document
b. None of the choices
c. method
d. name
Question 15 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. date()
b. None of the Choices
c. strtoupper()
d. array()
Your answer is correct.
Question 16 It is the command used to incorporate an external page into your html.
Correct
Mark 1.00 out of Select one:
1.00
a. post
b. get
c. None of the Choices
d. include
Your answer is correct.
Question 17 It is a function in the PHP that check whether the variable has been set.
Correct
Mark 2.00 out of Select one:
2.00
a. strtoupper()
b. date()
c. isset()
d. None of the Choices
Your answer is correct.
Question 18 Which of the following is a valid use of the [Link]() method?
Correct
Mark 1.00 out of Select one:
1.00
a. None of the choices
b. [Link]("This is text");
c. [Link]('This is text");
d. [Link]("This is text);
Question 19 Which of the following statements would be valid in JavaScript?
Correct
Mark 2.00 out of Select one:
2.00
a. [Link]('John said, "Hi!"");
b. [Link]("John said, \"Hi!\"");
c. [Link]("John said, "Hi!"");
d. None of the choices
Question 20 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. None of the Choices
b. $_GET
c. ISSET()
d. $_POST
Your answer is correct.
Question 21 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. pagenumber=220;
b. var PageNumber=240;
c. None of the choices
d. var pagenumber=240;
Question 22 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. $_GET
b. None of the Choices
c. $_POST
d. $_GET
Your answer is correct.
Question 23 Which of the following is not an include statement?
Correct
Mark 1.00 out of Select one:
1.00
a. <?php include 'include/[Link]'; ?>
b. <?php include_all 'include/[Link]' ?>
c. <?php include_once 'include/[Link]'; ?>
d. <?php require 'include/[Link]'; ?>
Your answer is correct.
Question 24 You should avoid using JavaScript reserved words as variable names.
Correct
Mark 2.00 out of Select one:
2.00
a. False
b. True
Question 25 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. var mytext=“Here is some text!”;
c. None of the choices
d. var mytext=‘Here is some text!’;
Question 26 Which of the following successfully prints a variable named name by adding it to a set of strings?
Correct
Mark 1.00 out of Select one:
1.00
a. None of the choices
b. [Link]("Hello name!");
c. [Link]("Hello " + name!);
d. [Link]("Hello" + "name" + "!");
Question 27 Which of the following string declarations is invalid?
Correct
Mark 1.00 out of Select one:
1.00
a. var mytext= “Here is \n some text!”;
b. var mytext=“Here is some text!”;
c. None of the choices
d. var mytext=‘Here is some text!’;
Question 28 What symbol is used as the assignment operator in JavaScript?
Correct
Mark 2.00 out of Select one:
2.00
a. None of the choices
b. +
c. :
Question 29 Is an object collection for all internal frames in the document.
Correct
Mark 2.00 out of Select one:
2.00
a. [Link]
b. [Link]
c. None of the choices
d. [Link]
Question 30 Is use to change the color of the web page to blue.
Correct
Mark 2.00 out of Select one:
2.00
a. None of the above
b. [Link] = blue
c. [Link] = blue
d. [Link]([Link])
Lesson 7: Math, Number and Date
◄ Quiz 004 Jump to...
Objects ►