SlideShare a Scribd company logo
1 of 21
Question 1
2 / 2 pts
A reference to an external Javascript file is normally placed in the ____ section of an HTML document,
according to good design principles.
body
Correct!
head
title
paragraph
Question 2
3 / 3 pts
Before you use a variable in a JavaScript program, you should ____ it.
compile
concatenate
Correct!
declare
nullify
Question 3
3 / 3 pts
In naming a variable, the first character must be either a letter or a(n) ____.
Correct!
underscore
pound sign
number sign
ampersand
Question 4
3 / 3 pts
The number can be converted to a text string by enclosing it within ____.
slashes / ... /
single quotation marks ' ... '
double quotation marks " ... "
Correct!
either b or c
Question 5
3 / 3 pts
JavaScript ____ most occurrences of white space.
repeats
Correct!
ignores
comments
executes
Question 6
0 / 3 pts
The ____ symbol can be used to combine text strings.
Correct Answer
+
*
You Answered
++
~
Question 7
3 / 3 pts
What does the JavaScript command document.writeln("Hello" + "World"); print?
Hello World
Correct!
HelloWorld
World Hello
WorldHello
Question 8
3 / 3 pts
When calling a JavaScript function, you provide in your call ____.
the function name
the parameters
Correct!
both a and b
none of the above
Question 9
3 / 3 pts
A function may require ____, which are values used by the function.
terms
Correct!
parameters
ids
names
Question 10
3 / 3 pts
To add code that runs when content of an input field has been modified, you use the ____ event handler.
onload
Correct!
onchange
onfocus
onblur
Question 11
3 / 3 pts
The ____ event handler runs when the browser has completed unloading the document.
onload
onremove
onerror
Correct!
onunload
Question 12
3 / 3 pts
January is indicated by the number ____ in JavaScript.
Correct!
0
1
4
10
Question 13
3 / 3 pts
The ____ method extracts the year value from the date variable.
extractYear()
Correct!
getFullYear()
Year()
thisYear()
Question 14
0 / 3 pts
What does the following generic function called foo return?
function foo()
{
var y = 3;
var x = 4;
y = ++x;
x += y;
return x;
}
You Answered
7
4
Correct Answer
9
5
Question 15
0 / 3 pts
Which of the following calculates the difference in terms of days?
You Answered
days = (newYear - currentDate)/(1000*60*60);
days = (newYear - currentDate)/(1000*60*24);
days = (newYear - currentDate);
Correct Answer
days = (newYear - currentDate)/(1000*60*60*24);
Question 16
3 / 3 pts
Which function makes sure that a number is not greater than the largest numeric value supported by
JavaScript?
isNaN(value)
isNull(value)
isZero(value)
Correct!
isFinite(value)
Question 17
3 / 3 pts
____ converts a text string, myString, to a number with decimal places.
parseText
parseInt
parseNumber
Correct!
parseFloat
Question 18
3 / 3 pts
The ____ logical operator returns true when both expressions are true.
||
|
==
Correct!
&&
Question 19
3 / 3 pts
Which of the following assigns y a value of 15 if x is greater than 1 and less than 3 and 20 otherwise?
Correct!
y = (x > 1) && (x < 3) ? 15 : 20;
y = (x > 1) || (x < 3) ? 15 : 20;
y = (x > 1) && (x < 3) ? 20 : 15;
y = (x > 1) || (x < 3) ? 20 : 15;
Question 20
3 / 3 pts
The general format of the command to specify that a task occur once,after some time, is ____.
setTime("command", interval);
setDelay("command", interval)
Correct!
setTimeout("command", delay);
setInterval("command", delay);
Question 21
3 / 3 pts
To clear all commands set to repeat every n seconds,you use ____.
clearTimeout()
clearRepeat()
clearDelay()
Correct!
clearInterval()
Question 22
3 / 3 pts
The ____ property of an array indicates the total number of elements in an array.
counter
index
size
Correct!
length
Question 23
3 / 3 pts
The size of an array is always ____ the highest index number.
equal to
Correct!
one more than
one less than
none of the above
Question 24
0 / 3 pts
____ create(s) an array that could be used to hold five student names.
You Answered
var students =new Array(5);
var students =new Array("John","Julie", "Jacob","Janice", "Jackson");
var students =["Alice", "Max", "Tom", "Stan","Susan"];
Correct Answer
all the choices are correct
Question 25
3 / 3 pts
The ____ method removes and returns the first element from the beginning of an array.
split()
unshift()
Correct!
shift()
slice()
Question 26
3 / 3 pts
To sort elements of an array numerically, you use the ____ method.
arrange()
order()
Correct!
sort()
list()
Question 27
3 / 3 pts
Which of the following displays the contents ofarray grades separated by ", "?
grades.push(",");
grades.reverse();
Correct!
grades.join(", ");
grades.toString(",");
Question 28
3 / 3 pts
The process of executing all of the contained statements within a loop is called a(n) ____ of the loop.
Correct!
iteration
implementation
execution
processing
Question 29
0 / 3 pts
Which of the following can be used as a start expression in a For loop?
Correct Answer
i = 10;
i++;
You Answered
i <= j;
--j;
Question 30
3 / 3 pts
Given a For loop counterof "for (i = 0; i <= 360; i += 60)", the countervalues are ____.
60, 120, 180, 240, 300, and 360
Correct!
0, 60, 120, 180, 240, 300, and 360
0, 60, 120, 180, 240, and 300
0, 120, 240, and 360
Question 31
3 / 3 pts
Consider the following code:
var i = 0;
do {
document.write("<td>"+i+"</td>");
i = prompt("Enter a number");
}
while (i < 4);
The Do/While loop will execute at least ____ times.
0
Correct!
1
2
3
Question 32
0 / 3 pts
Which of the following loops print the numbers 1-10?
for (i = 1; i <= 10; i++){
document.write(i);
}
i = 0;
while (i < 10){
document.write(i+1);
i++;
}
You Answered
i = 0;
do {
j = i + 1;
document.write(j);
i++;
}
while (j <= 10);
Correct Answer
all of the above
Question 33
0 / 3 pts
The value returned by the function someValue (shown below) represents the ____ value found among all
the
values in the array.
function someValue(arr) {
var someVal = arr[0];
for (var i = 0; i < arr.length; i++) {
if (arr[i] > someVal) someVal=arr[i];
}
return someVal;
}
Correct Answer
largest
middle
You Answered
smallest
first
Question 34
3 / 3 pts
A common programming error is to use ____ instead of ____ to test if two items are equal.
Correct!
=, ==
==, =
++, --
%, *
Question 35
3 / 3 pts
Consider the following code:
for (var i = 0; i< names.length; i++) {
if (names[i] == "Valdez") {
document.write("Valdez is in the list");
}
}
What should be added to cause the loop to stop when Valdez is found?
halt;
Correct!
break;
stop;
continue;
Question 36
0 / 3 pts
Consider the following code:
num = 1;
for(i = 1; i < 4; i++) {
num += 2;
}
What will the value of num be after the loop has executed?
1
You Answered
3
5
Correct Answer
7
Question 37
3 / 3 pts
A series of if statements that are inside of each otherare also called a ____ statements.
n-alternative if
Correct!
nested if
case
loop
Question 38
3 / 3 pts
Which of the following if statements will write hours to the screen in a 12 hourformat (assuming hours
starts as a variable value between 0 and 23)?
if(hours==0) {
document.write(12); }
elseif(hours>13) {
document.write(hours-12);}
else {
document.write(hours); }
if(hours==0) {
document.write(12); }
elseif(hours>=12) {
document.write(hours-12);}
else {
document.write(hours); }
Correct!
if(hours==0) {
document.write(12); }
elseif(hours>=13) {
document.write(hours-12);}
else {
document.write(hours); }
if(hours==0) {
document.write(12);}
else if(hours>=0) {
document.write(hours);}
else if(hours > 12) {
document.write(hours-12);}
Question 39
3 / 3 pts
The topmost object in the object hierarchy is the ____ object, which represents the browser window.
document
browser
Correct!
window
location
Question 40
3 / 3 pts
To have a date field display the text string "6-23-2006" you would run the command ____.
form1.date.when = "6-23-2006";
Correct!
document.form1.date.value = "6-23-2006";
form1.date.value = "6-23-2006";
document.form1.date = "6-23-2006";
Question 41
3 / 3 pts
A return value of ____ causes a form to cancel submission.
Correct!
false
halt
true
continue
Question 42
3 / 3 pts
In JavaScript, you can use the ____ to display an information message to the user.
dialog window
info box
Correct!
alert box
user box
Question 43
3 / 3 pts
If a text input field is required on a form, you should validate it by making sure the number of characters in
the
field is ____.
Correct!
> 0
< 0
> null
none of the above
Question 44
3 / 3 pts
Given the example text= "GPS-ware Products",the method text.slice(4,8);// returns ____.
9
Prod
Correct!
ware
GPS
Question 45
3 / 3 pts
The ____ method of the String class extracts a part of a string and returns the extracted part as a new string.
getChars()
charAt()
Correct!
slice()
stringPart()
Question 46
3 / 3 pts
The ____ method converts a text string to lowercase.
toMinCase()
lowerCase()
Correct!
toLowerCase()
toUpperCase()
Question 47
3 / 3 pts
Given the following form:
<form name="myForm">
Submit your URL here:
<input type = "text" name="URL">
<input type="submit">
</form>
Which of the following is not a valid way to get the data entered in the textbox and store it in a varible?
var data =myForm.URL.value;
var data =myForm.elements[0].value;
Correct!
var data = forms[0].url.value;
All of the above are correct
Question 48
0 / 3 pts
The expression /ww/ matches ____.
$x
You Answered
A@
*
Correct Answer
go
Question 49
3 / 3 pts
____ matches 1 or more consecutive white space characters.
/s?/
Correct!
/s+/
/s&/
/s*/
Question 50
3 / 3 pts
To require a string to end with a specific regular expression pattern, you begin the regular expression
pattern with the ____ metacharacter (or special class).
Correct!
$
^
|
&
Question 51
3 / 3 pts
Text strings can be appended to any URL by adding the ____ character to the Web address followed by the
text
string.
^
&
*
Correct!
?
Question 52
3 / 3 pts
To make it possible to store state information beyond the current Web page session,Netscape created ____.
Correct!
cookies
scripts
hidden form fields
query strings
Question 53
3 / 3 pts
To view the name/value pair within a cookie, retrieve the content of the ____ object.
document.path
Correct!
document.cookie
cookie.path
cookie.document
Question 54
0 / 3 pts
Individual cookies in the document.cookie object are separated by ____.
You Answered
a semicolon
a space
Correct Answer
a semicolon and a space
none of the above
Question 55
3 / 3 pts
To replace a cookie's value, write a cookie with the same ____ but a new value.
Correct!
name
location
expiration date
timing delay
Question 56
3 / 3 pts
____ cookies remain available only for the current browser session.
Persistent
Correct!
Temporary
Local
Global
Question 57
3 / 3 pts
The ____ attribute of the cookie property determines how long a cookie can remain on a client system
before it
is deleted.
path
Correct!
expires
secure
domain
Question 58
3 / 3 pts
The ____ attribute determines the availability of a cookie to other Web pages on a server.
domain
secure
Correct!
path
expires
Question 59
0 / 3 pts
Which statement is true?
You Answered
To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and
Opera) have the jQuery library built in the browser
Th use jQuery the user needs to add a jQuery plugin to their browser
To use jQuery, you must buy the jQuery library at www.jquery.com
Correct Answer
To use jQuery, you can refer to a hosted jQuery library at Google
Question 60
3 / 3 pts
Which of the following is not a standard part of the jQuery UI?
accordion
dialog
Correct!
cycle
datepicker
Question 61
3 / 3 pts
With jQuery, look at the following selector: $("p.links"). What does it select?
The first p element with class="links"
All p elements with id="links"
Correct!
All p elements with class="links"
The first p element with id="links"
Question 62
3 / 3 pts
Which jQuery method is used to display selected elements?
display(block)
Correct!
show()
visible()
visible(true)
Question 63
3 / 3 pts
Which jQuery method is used to set add one or more css classes to selected elements?
css()
addCSS()
addStyle()
Correct!
addClass()
Question 64
3 / 3 pts
Which jQuery method is used to perform an asynchronous HTTP request?
ajaxRequest()
ajaxAsync()
Correct!
ajax()
ajaxSetup()
Question 65
3 / 3 pts
An important step in preparing to publish a Web site is to obtain a(n) __________ name.
Correct!
domain
index
AVI
ICANN
Question 66
0 / 3 pts
In an FTP application, a(n) __________ name specifies a particular connection to a server.
Correct Answer
site
streaming
You Answered
host
encoded
Question 67
3 / 3 pts
Which of the following is commony done as part of website compatibility testing?
Test with a variety of users
Verify that all of yourimages have alt attributes
Correct!
Use different devices when testing your site
Assess the numberof simultaneous users the website can support
Quiz Score: 164 out of 200

More Related Content

What's hot

Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...endokayle
Β 
Unit 7.5
Unit 7.5Unit 7.5
Unit 7.5Mark Ryder
Β 
Remainder & Factor Theorems
Remainder & Factor TheoremsRemainder & Factor Theorems
Remainder & Factor TheoremsLori Rapp
Β 
Unit 7.1
Unit 7.1Unit 7.1
Unit 7.1Mark Ryder
Β 
Unit 7.4
Unit 7.4Unit 7.4
Unit 7.4Mark Ryder
Β 
Sorting algorithms
Sorting algorithmsSorting algorithms
Sorting algorithmsZaid Hameed
Β 
2 1 addition and subtraction i
2 1 addition and subtraction i2 1 addition and subtraction i
2 1 addition and subtraction imath123b
Β 
Unit 2.7
Unit 2.7Unit 2.7
Unit 2.7Mark Ryder
Β 
Database Management System Review
Database Management System ReviewDatabase Management System Review
Database Management System ReviewKaya Ota
Β 
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)LiGhT ArOhL
Β 
0.7 Radical Expressions
0.7 Radical Expressions0.7 Radical Expressions
0.7 Radical Expressionssmiller5
Β 
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Q1-Q2)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Q1-Q2)K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Q1-Q2)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Q1-Q2)LiGhT ArOhL
Β 
Logarithmic function, equation and inequality
Logarithmic function, equation and inequalityLogarithmic function, equation and inequality
Logarithmic function, equation and inequalityFelina Victoria
Β 
Greek logic and mathematics
Greek logic and mathematicsGreek logic and mathematics
Greek logic and mathematicsBob Marcus
Β 
Mathematics 9 Radical Expressions (1)
Mathematics 9 Radical Expressions (1)Mathematics 9 Radical Expressions (1)
Mathematics 9 Radical Expressions (1)Juan Miguel Palero
Β 
Bioinformatica 10-11-2011-t5-database searching
Bioinformatica 10-11-2011-t5-database searchingBioinformatica 10-11-2011-t5-database searching
Bioinformatica 10-11-2011-t5-database searchingProf. Wim Van Criekinge
Β 
Synthetic division
Synthetic divisionSynthetic division
Synthetic divisionbaraly92
Β 

What's hot (20)

Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
Β 
Unit 7.5
Unit 7.5Unit 7.5
Unit 7.5
Β 
Remainder & Factor Theorems
Remainder & Factor TheoremsRemainder & Factor Theorems
Remainder & Factor Theorems
Β 
Unit 7.1
Unit 7.1Unit 7.1
Unit 7.1
Β 
Unit 7.4
Unit 7.4Unit 7.4
Unit 7.4
Β 
Sorting algorithms
Sorting algorithmsSorting algorithms
Sorting algorithms
Β 
2 1 addition and subtraction i
2 1 addition and subtraction i2 1 addition and subtraction i
2 1 addition and subtraction i
Β 
Unit 2.7
Unit 2.7Unit 2.7
Unit 2.7
Β 
Database Management System Review
Database Management System ReviewDatabase Management System Review
Database Management System Review
Β 
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Quarter 3)
Β 
0.7 Radical Expressions
0.7 Radical Expressions0.7 Radical Expressions
0.7 Radical Expressions
Β 
Web_Alg_Project
Web_Alg_ProjectWeb_Alg_Project
Web_Alg_Project
Β 
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Q1-Q2)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Q1-Q2)K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Q1-Q2)
K TO 12 GRADE 7 LEARNING MODULE IN MATHEMATICS (Q1-Q2)
Β 
Logarithmic function, equation and inequality
Logarithmic function, equation and inequalityLogarithmic function, equation and inequality
Logarithmic function, equation and inequality
Β 
Greek logic and mathematics
Greek logic and mathematicsGreek logic and mathematics
Greek logic and mathematics
Β 
Math grade 7 learner's module
Math grade 7 learner's moduleMath grade 7 learner's module
Math grade 7 learner's module
Β 
Mathematics 9 Radical Expressions (1)
Mathematics 9 Radical Expressions (1)Mathematics 9 Radical Expressions (1)
Mathematics 9 Radical Expressions (1)
Β 
Bioinformatica 10-11-2011-t5-database searching
Bioinformatica 10-11-2011-t5-database searchingBioinformatica 10-11-2011-t5-database searching
Bioinformatica 10-11-2011-t5-database searching
Β 
Synthetic division
Synthetic divisionSynthetic division
Synthetic division
Β 
3 handouts section2-4
3 handouts section2-43 handouts section2-4
3 handouts section2-4
Β 

Similar to ISMG 2800 123456789

Question 1 1 pts Skip to question text.As part of a bank account.docx
Question 1 1 pts Skip to question text.As part of a bank account.docxQuestion 1 1 pts Skip to question text.As part of a bank account.docx
Question 1 1 pts Skip to question text.As part of a bank account.docxamrit47
Β 
50 SDE Interview Questions.pdf
50 SDE Interview Questions.pdf50 SDE Interview Questions.pdf
50 SDE Interview Questions.pdfHeyCoach
Β 
Ch02 primitive-data-definite-loops
Ch02 primitive-data-definite-loopsCh02 primitive-data-definite-loops
Ch02 primitive-data-definite-loopsJames Brotsos
Β 
LeetCode Solutions In Java .pdf
LeetCode Solutions In Java .pdfLeetCode Solutions In Java .pdf
LeetCode Solutions In Java .pdfzupsezekno
Β 
Building Java Programas
Building Java ProgramasBuilding Java Programas
Building Java Programasssuser4df5ef
Β 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guidecritter13
Β 
Day 1c access, select ordering copy.pptx
Day 1c   access, select   ordering copy.pptxDay 1c   access, select   ordering copy.pptx
Day 1c access, select ordering copy.pptxAdrien Melquiond
Β 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guidemonsterr20
Β 
ch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptMahyuddin8
Β 
ch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptghoitsun
Β 
Oct27
Oct27Oct27
Oct27Tak Lee
Β 
C Programming Interview Questions
C Programming Interview QuestionsC Programming Interview Questions
C Programming Interview QuestionsGradeup
Β 
Lec 8 03_sept [compatibility mode]
Lec 8 03_sept [compatibility mode]Lec 8 03_sept [compatibility mode]
Lec 8 03_sept [compatibility mode]Palak Sanghani
Β 

Similar to ISMG 2800 123456789 (20)

Question 1 1 pts Skip to question text.As part of a bank account.docx
Question 1 1 pts Skip to question text.As part of a bank account.docxQuestion 1 1 pts Skip to question text.As part of a bank account.docx
Question 1 1 pts Skip to question text.As part of a bank account.docx
Β 
bobok
bobokbobok
bobok
Β 
50 SDE Interview Questions.pdf
50 SDE Interview Questions.pdf50 SDE Interview Questions.pdf
50 SDE Interview Questions.pdf
Β 
Ch02 primitive-data-definite-loops
Ch02 primitive-data-definite-loopsCh02 primitive-data-definite-loops
Ch02 primitive-data-definite-loops
Β 
LeetCode Solutions In Java .pdf
LeetCode Solutions In Java .pdfLeetCode Solutions In Java .pdf
LeetCode Solutions In Java .pdf
Β 
Chap 6 c++
Chap 6 c++Chap 6 c++
Chap 6 c++
Β 
Building Java Programas
Building Java ProgramasBuilding Java Programas
Building Java Programas
Β 
Chap 6 c++
Chap 6 c++Chap 6 c++
Chap 6 c++
Β 
Ansi c
Ansi cAnsi c
Ansi c
Β 
Gsp 125 final exam guide
Gsp 125 final exam guideGsp 125 final exam guide
Gsp 125 final exam guide
Β 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guide
Β 
Day 1c access, select ordering copy.pptx
Day 1c   access, select   ordering copy.pptxDay 1c   access, select   ordering copy.pptx
Day 1c access, select ordering copy.pptx
Β 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guide
Β 
ch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.ppt
Β 
ch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.pptch02-primitive-data-definite-loops.ppt
ch02-primitive-data-definite-loops.ppt
Β 
C# basics
C# basicsC# basics
C# basics
Β 
Oct27
Oct27Oct27
Oct27
Β 
C Programming Interview Questions
C Programming Interview QuestionsC Programming Interview Questions
C Programming Interview Questions
Β 
Lec 8 03_sept [compatibility mode]
Lec 8 03_sept [compatibility mode]Lec 8 03_sept [compatibility mode]
Lec 8 03_sept [compatibility mode]
Β 
Teacher Lecture
Teacher LectureTeacher Lecture
Teacher Lecture
Β 

Recently uploaded

Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
Β 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptDr. Soumendra Kumar Patra
Β 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
Β 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
Β 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
Β 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
Β 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
Β 
Call Girls Bannerghatta Road Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Ser...amitlee9823
Β 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
Β 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
Β 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
Β 
Delhi Call Girls Punjabi Bagh 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Callshivangimorya083
Β 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
Β 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
Β 
Call Girls Indiranagar Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service B...
Call Girls Indiranagar Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service B...Call Girls Indiranagar Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service B...
Call Girls Indiranagar Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service B...amitlee9823
Β 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
Β 
Delhi Call Girls CP 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Callshivangimorya083
Β 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
Β 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
Β 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
Β 

Recently uploaded (20)

Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
Β 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
Β 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
Β 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Β 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
Β 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
Β 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
Β 
Call Girls Bannerghatta Road Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Ser...
Β 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
Β 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Β 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
Β 
Delhi Call Girls Punjabi Bagh 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Β 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Β 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Β 
Call Girls Indiranagar Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service B...
Call Girls Indiranagar Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service B...Call Girls Indiranagar Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service B...
Call Girls Indiranagar Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service B...
Β 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
Β 
Delhi Call Girls CP 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 β˜Žβœ”πŸ‘Œβœ” Whatsapp Hard And Sexy Vip Call
Β 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
Β 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
Β 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
Β 

ISMG 2800 123456789

  • 1. Question 1 2 / 2 pts A reference to an external Javascript file is normally placed in the ____ section of an HTML document, according to good design principles. body Correct! head title paragraph Question 2 3 / 3 pts Before you use a variable in a JavaScript program, you should ____ it. compile concatenate Correct! declare nullify Question 3 3 / 3 pts In naming a variable, the first character must be either a letter or a(n) ____. Correct! underscore pound sign number sign ampersand Question 4 3 / 3 pts The number can be converted to a text string by enclosing it within ____. slashes / ... / single quotation marks ' ... '
  • 2. double quotation marks " ... " Correct! either b or c Question 5 3 / 3 pts JavaScript ____ most occurrences of white space. repeats Correct! ignores comments executes Question 6 0 / 3 pts The ____ symbol can be used to combine text strings. Correct Answer + * You Answered ++ ~ Question 7 3 / 3 pts What does the JavaScript command document.writeln("Hello" + "World"); print? Hello World Correct! HelloWorld World Hello WorldHello Question 8 3 / 3 pts
  • 3. When calling a JavaScript function, you provide in your call ____. the function name the parameters Correct! both a and b none of the above Question 9 3 / 3 pts A function may require ____, which are values used by the function. terms Correct! parameters ids names Question 10 3 / 3 pts To add code that runs when content of an input field has been modified, you use the ____ event handler. onload Correct! onchange onfocus onblur Question 11 3 / 3 pts The ____ event handler runs when the browser has completed unloading the document. onload onremove onerror Correct!
  • 4. onunload Question 12 3 / 3 pts January is indicated by the number ____ in JavaScript. Correct! 0 1 4 10 Question 13 3 / 3 pts The ____ method extracts the year value from the date variable. extractYear() Correct! getFullYear() Year() thisYear() Question 14 0 / 3 pts What does the following generic function called foo return? function foo() { var y = 3; var x = 4; y = ++x; x += y; return x; } You Answered 7 4 Correct Answer 9
  • 5. 5 Question 15 0 / 3 pts Which of the following calculates the difference in terms of days? You Answered days = (newYear - currentDate)/(1000*60*60); days = (newYear - currentDate)/(1000*60*24); days = (newYear - currentDate); Correct Answer days = (newYear - currentDate)/(1000*60*60*24); Question 16 3 / 3 pts Which function makes sure that a number is not greater than the largest numeric value supported by JavaScript? isNaN(value) isNull(value) isZero(value) Correct! isFinite(value) Question 17 3 / 3 pts ____ converts a text string, myString, to a number with decimal places. parseText parseInt parseNumber Correct! parseFloat Question 18 3 / 3 pts The ____ logical operator returns true when both expressions are true.
  • 6. || | == Correct! && Question 19 3 / 3 pts Which of the following assigns y a value of 15 if x is greater than 1 and less than 3 and 20 otherwise? Correct! y = (x > 1) && (x < 3) ? 15 : 20; y = (x > 1) || (x < 3) ? 15 : 20; y = (x > 1) && (x < 3) ? 20 : 15; y = (x > 1) || (x < 3) ? 20 : 15; Question 20 3 / 3 pts The general format of the command to specify that a task occur once,after some time, is ____. setTime("command", interval); setDelay("command", interval) Correct! setTimeout("command", delay); setInterval("command", delay); Question 21 3 / 3 pts To clear all commands set to repeat every n seconds,you use ____. clearTimeout() clearRepeat() clearDelay() Correct! clearInterval()
  • 7. Question 22 3 / 3 pts The ____ property of an array indicates the total number of elements in an array. counter index size Correct! length Question 23 3 / 3 pts The size of an array is always ____ the highest index number. equal to Correct! one more than one less than none of the above Question 24 0 / 3 pts ____ create(s) an array that could be used to hold five student names. You Answered var students =new Array(5); var students =new Array("John","Julie", "Jacob","Janice", "Jackson"); var students =["Alice", "Max", "Tom", "Stan","Susan"]; Correct Answer all the choices are correct Question 25 3 / 3 pts The ____ method removes and returns the first element from the beginning of an array. split() unshift()
  • 8. Correct! shift() slice() Question 26 3 / 3 pts To sort elements of an array numerically, you use the ____ method. arrange() order() Correct! sort() list() Question 27 3 / 3 pts Which of the following displays the contents ofarray grades separated by ", "? grades.push(","); grades.reverse(); Correct! grades.join(", "); grades.toString(","); Question 28 3 / 3 pts The process of executing all of the contained statements within a loop is called a(n) ____ of the loop. Correct! iteration implementation execution processing Question 29 0 / 3 pts Which of the following can be used as a start expression in a For loop?
  • 9. Correct Answer i = 10; i++; You Answered i <= j; --j; Question 30 3 / 3 pts Given a For loop counterof "for (i = 0; i <= 360; i += 60)", the countervalues are ____. 60, 120, 180, 240, 300, and 360 Correct! 0, 60, 120, 180, 240, 300, and 360 0, 60, 120, 180, 240, and 300 0, 120, 240, and 360 Question 31 3 / 3 pts Consider the following code: var i = 0; do { document.write("<td>"+i+"</td>"); i = prompt("Enter a number"); } while (i < 4); The Do/While loop will execute at least ____ times. 0 Correct! 1 2 3 Question 32 0 / 3 pts Which of the following loops print the numbers 1-10?
  • 10. for (i = 1; i <= 10; i++){ document.write(i); } i = 0; while (i < 10){ document.write(i+1); i++; } You Answered i = 0; do { j = i + 1; document.write(j); i++; } while (j <= 10); Correct Answer all of the above Question 33 0 / 3 pts The value returned by the function someValue (shown below) represents the ____ value found among all the values in the array. function someValue(arr) { var someVal = arr[0]; for (var i = 0; i < arr.length; i++) { if (arr[i] > someVal) someVal=arr[i]; } return someVal; } Correct Answer largest middle You Answered smallest first Question 34 3 / 3 pts A common programming error is to use ____ instead of ____ to test if two items are equal. Correct! =, ==
  • 11. ==, = ++, -- %, * Question 35 3 / 3 pts Consider the following code: for (var i = 0; i< names.length; i++) { if (names[i] == "Valdez") { document.write("Valdez is in the list"); } } What should be added to cause the loop to stop when Valdez is found? halt; Correct! break; stop; continue; Question 36 0 / 3 pts Consider the following code: num = 1; for(i = 1; i < 4; i++) { num += 2; } What will the value of num be after the loop has executed? 1 You Answered 3 5 Correct Answer 7 Question 37 3 / 3 pts A series of if statements that are inside of each otherare also called a ____ statements.
  • 12. n-alternative if Correct! nested if case loop Question 38 3 / 3 pts Which of the following if statements will write hours to the screen in a 12 hourformat (assuming hours starts as a variable value between 0 and 23)? if(hours==0) { document.write(12); } elseif(hours>13) { document.write(hours-12);} else { document.write(hours); } if(hours==0) { document.write(12); } elseif(hours>=12) { document.write(hours-12);} else { document.write(hours); } Correct! if(hours==0) { document.write(12); } elseif(hours>=13) { document.write(hours-12);} else { document.write(hours); } if(hours==0) { document.write(12);} else if(hours>=0) { document.write(hours);} else if(hours > 12) { document.write(hours-12);} Question 39 3 / 3 pts The topmost object in the object hierarchy is the ____ object, which represents the browser window. document browser Correct!
  • 13. window location Question 40 3 / 3 pts To have a date field display the text string "6-23-2006" you would run the command ____. form1.date.when = "6-23-2006"; Correct! document.form1.date.value = "6-23-2006"; form1.date.value = "6-23-2006"; document.form1.date = "6-23-2006"; Question 41 3 / 3 pts A return value of ____ causes a form to cancel submission. Correct! false halt true continue Question 42 3 / 3 pts In JavaScript, you can use the ____ to display an information message to the user. dialog window info box Correct! alert box user box Question 43 3 / 3 pts
  • 14. If a text input field is required on a form, you should validate it by making sure the number of characters in the field is ____. Correct! > 0 < 0 > null none of the above Question 44 3 / 3 pts Given the example text= "GPS-ware Products",the method text.slice(4,8);// returns ____. 9 Prod Correct! ware GPS Question 45 3 / 3 pts The ____ method of the String class extracts a part of a string and returns the extracted part as a new string. getChars() charAt() Correct! slice() stringPart() Question 46 3 / 3 pts The ____ method converts a text string to lowercase. toMinCase() lowerCase() Correct!
  • 15. toLowerCase() toUpperCase() Question 47 3 / 3 pts Given the following form: <form name="myForm"> Submit your URL here: <input type = "text" name="URL"> <input type="submit"> </form> Which of the following is not a valid way to get the data entered in the textbox and store it in a varible? var data =myForm.URL.value; var data =myForm.elements[0].value; Correct! var data = forms[0].url.value; All of the above are correct Question 48 0 / 3 pts The expression /ww/ matches ____. $x You Answered A@ * Correct Answer go Question 49 3 / 3 pts ____ matches 1 or more consecutive white space characters. /s?/ Correct! /s+/ /s&/
  • 16. /s*/ Question 50 3 / 3 pts To require a string to end with a specific regular expression pattern, you begin the regular expression pattern with the ____ metacharacter (or special class). Correct! $ ^ | & Question 51 3 / 3 pts Text strings can be appended to any URL by adding the ____ character to the Web address followed by the text string. ^ & * Correct! ? Question 52 3 / 3 pts To make it possible to store state information beyond the current Web page session,Netscape created ____. Correct! cookies scripts hidden form fields query strings Question 53 3 / 3 pts To view the name/value pair within a cookie, retrieve the content of the ____ object.
  • 17. document.path Correct! document.cookie cookie.path cookie.document Question 54 0 / 3 pts Individual cookies in the document.cookie object are separated by ____. You Answered a semicolon a space Correct Answer a semicolon and a space none of the above Question 55 3 / 3 pts To replace a cookie's value, write a cookie with the same ____ but a new value. Correct! name location expiration date timing delay Question 56 3 / 3 pts ____ cookies remain available only for the current browser session. Persistent Correct! Temporary Local
  • 18. Global Question 57 3 / 3 pts The ____ attribute of the cookie property determines how long a cookie can remain on a client system before it is deleted. path Correct! expires secure domain Question 58 3 / 3 pts The ____ attribute determines the availability of a cookie to other Web pages on a server. domain secure Correct! path expires Question 59 0 / 3 pts Which statement is true? You Answered To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser Th use jQuery the user needs to add a jQuery plugin to their browser To use jQuery, you must buy the jQuery library at www.jquery.com Correct Answer To use jQuery, you can refer to a hosted jQuery library at Google Question 60 3 / 3 pts
  • 19. Which of the following is not a standard part of the jQuery UI? accordion dialog Correct! cycle datepicker Question 61 3 / 3 pts With jQuery, look at the following selector: $("p.links"). What does it select? The first p element with class="links" All p elements with id="links" Correct! All p elements with class="links" The first p element with id="links" Question 62 3 / 3 pts Which jQuery method is used to display selected elements? display(block) Correct! show() visible() visible(true) Question 63 3 / 3 pts Which jQuery method is used to set add one or more css classes to selected elements? css() addCSS() addStyle() Correct!
  • 20. addClass() Question 64 3 / 3 pts Which jQuery method is used to perform an asynchronous HTTP request? ajaxRequest() ajaxAsync() Correct! ajax() ajaxSetup() Question 65 3 / 3 pts An important step in preparing to publish a Web site is to obtain a(n) __________ name. Correct! domain index AVI ICANN Question 66 0 / 3 pts In an FTP application, a(n) __________ name specifies a particular connection to a server. Correct Answer site streaming You Answered host encoded Question 67 3 / 3 pts Which of the following is commony done as part of website compatibility testing? Test with a variety of users
  • 21. Verify that all of yourimages have alt attributes Correct! Use different devices when testing your site Assess the numberof simultaneous users the website can support Quiz Score: 164 out of 200