Sunteți pe pagina 1din 3

Dashboard / Courses / BLENDED 1923T.

B / BL-CS-301-LEC-1923T / Week 5: JavaScript Output / Quiz 003

Started on Wednesday, 30 October 2019, 3:59 PM


State Finished
Completed on Wednesday, 30 October 2019, 4:06 PM
Time taken 7 mins 39 secs
Marks 9/10
Grade 90 out of 100

Question 1 Variable names are not case sensitive.


Correct

Mark 1 out of 1 Select one:


a. True 

b. False

Question 2 Which of the following indicates that a single line of commentary will follow it within JavaScript code?
Correct

Mark 1 out of 1 Select one:


a. <!--

b. /*

c. None of the choices

d. // 

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


Correct

Mark 1 out of 1 Select one:


a. None of the choices 

b. +

c. :

Question 4 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
Incorrect URL.
Mark 0 out of 1
Select one:
a. $_GET

b. ISSET() 

c. None of the Choices

d. $_POST

Your answer is incorrect.


Question 5 To write a string of text on a Web page, the _________ method is used.
Correct

Mark 1 out of 1 Select one:


a. document.print() 

b. document,type()

c. window.print()

d. None of the choices

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


Correct

Mark 1 out of 1 Select one:


a. None of the choices 

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

c. window.alert('This is text");

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

Question 7 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 1 out of 1
Select one:
a. None of the Choices

b. $_GET

c. $_GET

d. $_POST 

Your answer is correct.

Question 8 Which of the following string declarations is invalid?


Correct

Mark 1 out of 1 Select one:


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 9 What are two of the benefits of using variables?


Correct

Mark 1 out of 1 Select one:


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 make the purpose of your code clearer, and they make it harder for noncoders to understand the
script.

c. None of the choices

d. They can save you time in writing and updating your scripts, and they can make the purpose of your code
clearer. 
Question 10 Which of the following successfully prints a variable named name by adding it to a set of strings?
Correct

Mark 1 out of 1 Select one:


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

b. None of the choices 

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

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

◄ Lesson 4: JavaScript Output Jump to... Lesson 5: Document Objects ►

S-ar putea să vă placă și