Вы находитесь на странице: 1из 6

Dashboard / Courses / BLENDED 1923T.

B / BL-CS-301-LEC-1923T / Week 8: Midterm Examination / Midterms

Started on Wednesday, 8 January 2020, 1:32 PM


State Finished
Completed on Wednesday, 8 January 2020, 1:43 PM
Time taken 11 mins 19 secs
Marks 49.00/50.00
Grade 98.00 out of 100.00

Question 1 What symbol is used as the assignment operator in JavaScript?


Correct

Mark 2.00 out of Select one:


2.00
a. :

b. None of the choices 

c. +

Question 2 Each object in JavaScript has properties associated with it.


Correct

Mark 2.00 out of Select one:


2.00
a. False

b. True 

Question 3 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 4 It is the command used to incorporate an external page into your html.
Correct

Mark 1.00 out of Select one:


1.00
a. None of the Choices

b. get

c. post

d. include 

Your answer is correct.


Question 5 Refers to an array of all objects of a particular type.
Correct

Mark 2.00 out of Select one:


2.00
a. object method

b. object collection 

c. object properties

d. None of the choices

Question 6 Is an object collection for all internal frames in the document.


Correct

Mark 2.00 out of Select one:


2.00
a. document.form.elements

b. None of the choices

c. document.plugins

d. document.frames 

Question 7 Which of the following statements would be valid in JavaScript?


Correct

Mark 1.00 out of Select one:


1.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 8 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. addition operator

c. You can't access the properties of an object

d. None of the choices 

Question 9 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 10 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. window.print()

b. document,type()

c. None of the choices

d. document.print() 


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. None of the choices

c. <!--

d. // 

Question 12 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. None of the Choices

b. strtoupper()

c. isset() 

d. date()

Your answer is correct.

Question 13 Which of the following is not an include statement?


Correct

Mark 1.00 out of Select one:


1.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 14 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. $_POST 

c. $_GET

d. None of the Choices

Your answer is correct.

Question 15 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. array()

b. None of the Choices

c. strtoupper() 

d. date()

Your answer is correct. 


Question 16 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. Functions

b. None of the Choices

c. Session

d. Cookies 

Your answer is correct.

Question 17 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. var pagenumber=240; 

d. None of the choices

Question 18 What are two of the benefits of using variables?


Correct

Mark 1.00 out of Select one:


1.00
a. They can save you time in writing and updating your scripts, 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 make the purpose of your code clearer, and they make it harder for noncoders to understand the
script.

d. None of the choices

Question 19 It is a function that display the content of the array.


Correct

Mark 2.00 out of Select one:


2.00
a. None of the Choices

b. print_r($Flowers); 

c. $Flowers = array();

d. $Flowers = [];

Your answer is correct.

Question 20 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 21 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 22 Which of the following is not a JavaScript object?


Correct

Mark 2.00 out of Select one:


2.00
a. None of the choices 

b. frame

c. window

d. link

Question 23 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. document.write(color.blue)

c. document.fgcolor = blue

d. window.bgcolor = blue 

Question 24 Variable names are not case sensitive.


Correct

Mark 1.00 out of Select one:


1.00
a. False

b. True 

Question 25 It is a function in the PHP that get the date of the server.
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 26 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. None of the choices 

b. var my dog;

c. var default;

d. var 2cats;


Question 27 Which of the following is a valid use of the window.alert() method?
Correct

Mark 1.00 out of Select one:


1.00
a. window.alert('This is text");

b. window.alert("This is text);

c. None of the choices 

d. win.alt("This is text");

Question 28 You should avoid using JavaScript reserved words as variable names.
Incorrect

Mark 0.00 out of Select one:


1.00
a. True

b. False 

Question 29 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. None of the choices 

b. document.write("Hello " + name!);

c. document.write("Hello name!");

d. document.write("Hello" + "name" + "!");

Question 30 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. index.php 

b. php.ini

c. user.ini

d. .htaccess

Your answer is correct.

Lesson 7: Math, Number and Date


◄ Quiz 004 Jump to...
Objects ►

Вам также может понравиться