Exam 10: Javascript: Arrays
Exam 1: Introduction to Computers and the Internet31 Questions
Exam 2: Introduction to Html5: Part 120 Questions
Exam 4: Cascading Style Sheets Css29 Questions
Exam 5: Introduction to Cascading Style Sheets36 Questions
Exam 6: Javascript: Introduction to Scripting14 Questions
Exam 7: Javascript: Control Statements I29 Questions
Exam 8: Javascript: Control Statements II15 Questions
Exam 9: Javascript: Functions24 Questions
Exam 10: Javascript: Arrays18 Questions
Exam 11: Javascript: Objects16 Questions
Exam 12: Document Object Model Dom: Objects and Collections9 Questions
Exam 13: Javascript: Event Handling10 Questions
Exam 14: Html5: Introduction to Canvas36 Questions
Exam 15: Xml21 Questions
Exam 16: Ajax-Enabled Rich Internet Applications With Xml and Json10 Questions
Exam 17: Web Servers Iis and Apache7 Questions
Exam 18: Database: Sql, Mysql, Linq and Javadb12 Questions
Exam 19: Php15 Questions
Exam 20: Web App Development With Aspnet in C#37 Questions
Exam 21: Web App Development With Aspnet in C#: a Deeper Look7 Questions
Exam 22: Windows Communication Foundation Wcf Web Services in C#20 Questions
Exam 23: Web App Development With Aspnet in Visual Basic67 Questions
Exam 24: Web App Development With Aspnet in Vb, a Deeper Look6 Questions
Exam 25: Windows Communication Foundation Wcf Web Services in Vb20 Questions
Exam 26: Javaserver Faces Web Apps: Part 115 Questions
Exam 27: Javaserver Faces Web Apps: Part 27 Questions
Exam 28: Web Services in Java27 Questions
Select questions type
What is the effect of the join statement in the following code
Var theArray1 = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
Var theArray2 = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
Var value = theArray1.join( " " );
Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
C
Pass-by- ________ is the method of passing the argument's address in memory to a function.
Free
(Multiple Choice)
4.7/5
(31)
Correct Answer:
D
Which of the following is an illegal array initialization statement
Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
C
What would the browser output if the following script is executed
< script type = "text/javascript" >
< !--
Var array = [ [ 1, 2, 3 ], [ 1, 2, 3 ] ];
For ( var i in array )
{
For ( var j in array[ i ] )
Document.write( array[ i ][ j ] + " " );
Document.writeln("< br / >");
}
//-- >
< /script >
(Multiple Choice)
4.8/5
(34)
What does the following code do
For ( var col = 0; col < a[ 2 ].length; ++col )
A[ 2 ][ col ] = 0;
(Multiple Choice)
4.8/5
(41)
Which of the following is the proper method to dynamically allocate memory to an array of 100 elements
(Multiple Choice)
4.9/5
(30)
In JavaScript, numbers and boolean values are passed to functions by ________.
(Multiple Choice)
4.8/5
(34)
The first statement below ________ the array while the second statement ________ the array.
Var c;
C = new Array( 12 );
(Multiple Choice)
4.9/5
(32)
_________ are data structures consisting of related data items (sometimes called collections of data items).
(Multiple Choice)
4.8/5
(44)
Which of the following is the proper method to access the length of the array arr
(Multiple Choice)
4.9/5
(42)
By default, the JavaScript sort method uses ________ to sort the array passed to it.
(Multiple Choice)
4.8/5
(32)
The sort method can be given a function to use for the comparisons it makes, called a(n) ________ function.
(Multiple Choice)
4.9/5
(31)
What will the browser display if the following script is executed
< script type = "text/javascript" >
< !--
Var theArray = [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ];
ModifyArray( theArray[ 3 ] );
Document.write( theArray.join( " " ) );
Function modifyArray( i )
{
I = 11;
}
//-- >
< /script >
(Multiple Choice)
4.8/5
(35)
When working with data stored in arrays, it's often necessary to determine whether an array contains a value that matches a certain ________.
(Multiple Choice)
4.8/5
(38)
What is the value of num assuming that all 12 elements of array test are initialized to 3
++test[ 7 ];
Var num = test[ 7 ];
(Multiple Choice)
4.8/5
(33)
Pass-by- ________ is the method of passing a copy of the argument's value to a function.
(Multiple Choice)
4.9/5
(30)
To refer to a particular location or element in the array, we spec ify the name of the array and the ________ of the particular element in the array.
(Multiple Choice)
4.8/5
(38)
In JavaScript, all objects and arrays are passed to functions by ________.
(Multiple Choice)
4.8/5
(30)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)