Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 11

Question 

1
Incorrect
Mark 0 out of 1

Flag question

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

Select one:

a.
window.print()

b.
document.print()

c.
None of the choices

d.
document,type()

Question 2
Correct
Mark 1 out of 1

Flag question

Question text
It is named value pairs that are stored in the browser and they're sent to the web server with each page request.

Select one:

a.
None of the Choices

b.
Session

c.
Functions

d.
Cookies

Feedback
Your answer is correct.

Question 3
Correct
Mark 1 out of 1

Flag question

Question text
It is a function in the PHP that converts the string into Upper case.

Select one:

a.
date()

b.
array()

c.
strtoupper()

d.
None of the Choices

Feedback
Your answer is correct.

Question 4
Incorrect
Mark 0 out of 1

Flag question

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

Select one:

a.
<?php include_once 'include/external.php'; ?>

b.
<?php require 'include/external.php'; ?>

c.
<?php include 'include/external.php'; ?>

d.
<?php include_all 'include/external.php' ?>

Feedback
Your answer is incorrect.

Question 5
Incorrect
Mark 0 out of 1

Flag question

Question text
Which of the following successfully prints a variable named name by adding it to a set of strings?

Select one:

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

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

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

d.
None of the choices

Question 6
Incorrect
Mark 0 out of 1

Flag question

Question text
It is the command used to incorporate an external page into your html.

Select one:

a.
None of the Choices

b.
post
c.
get

d.
include

Feedback
Your answer is incorrect.

Question 7
Incorrect
Mark 0 out of 1

Flag question

Question text
Which of the following successfully prints a variable named myhobby by adding it to a set of strings?

Select one:

a.
document.write("I like to " +myhobby+ " every weekend");

b.
None of the choices

c.
document.write("I like to myhobby every weekend");

d.
document.write("I like to +myhobby+ every weekend");

Question 8
Incorrect
Mark 0 out of 1

Flag question

Question text
It is a function in the PHP that get the date of the server.

Select one:

a.
date()
b.
strtoupper()

c.
array()

d.
None of the Choices

Feedback
Your answer is incorrect.

Question 9
Correct
Mark 1 out of 1

Flag question

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

Select one:

a.
None of the choices

b.
:

c.
+

Question 10
Correct
Mark 1 out of 1

Flag question

Question text
It is a PHP function wherein the data will be transmitted to the server in the http header when the form is
submitted for processing.

Select one:

a.
None of the Choices
b.
$_GET

c.
$_GET

d.
$_POST

Feedback
Your answer is correct.

Question 1
Correct
Mark 1 out of 1

Flag question

Question text
Which of the following variable declarations uses a variable with a valid variable name in JavaScript?

Select one:

a.
var default;

b.
var my dog;

c.
None of the choices

d.
var 2cats;

Question 2
Incorrect
Mark 0 out of 1

Flag question

Question text
Which of the following string declarations is invalid?

Select one:
a.
None of the choices

b.
var mytext=“Here is some text!”;

c.
var mytext= “Here is \n some text!”;

d.
var mytext=‘Here is some text!’;

Question 3
Incorrect
Mark 0 out of 1

Flag question

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

Select one:

a.
None of the choices

b.
document.write("John said, "Hi!"");

c.
document.write("John said, \"Hi!\"");

d.
document.write('John said, "Hi!"");

Question 4
Correct
Mark 1 out of 1

Flag question

Question text
Which of the following is not the file to access if you want to change your server's time?

Select one:

a.
user.ini

b.
index.php

c.
.htaccess

d.
php.ini

Feedback
Your answer is correct.

Question 5
Incorrect
Mark 0 out of 1

Flag question

Question text
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 URL.

Select one:

a.
$_POST

b.
$_GET

c.
None of the Choices

d.
ISSET()

Feedback
Your answer is incorrect.

Question 6
Incorrect
Mark 0 out of 1
Flag question

Question text
Variable names are not case sensitive.

Select one:

a.
False

b.
True

Question 7
Incorrect
Mark 0 out of 1

Flag question

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

Select one:

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 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 8
Incorrect
Mark 0 out of 1

Flag question
Question text
Which of the following declares a variable named pagenumber and gives it a value of 240?

Select one:

a.
pagenumber=220;

b.
None of the choices

c.
var PageNumber=240;

d.
var pagenumber=240;

Question 9
Incorrect
Mark 0 out of 1

Flag question

Question text
It is a function in the PHP that check whether the variable has been set.

Select one:

a.
None of the Choices

b.
isset()

c.
strtoupper()

d.
date()

Feedback
Your answer is incorrect.

Question 10
Incorrect
Mark 0 out of 1
Flag question

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

Select one:

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

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

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

d.
None of the choices

You might also like