Your browser does not support JavaScript!

Web Systems Technologies

Showing 76-115 of 115 answers

When would it be a good idea to use an external JavaScript file?
  • When the script is very long or needs to be placed in more than one HTML document Correct
Which of the following comparisons will return false?
  • 4<=3 Correct
Which of the following comparisons will return true?
  • 4!=3 Correct
Which of the following correctly assigns the day of the week for an instance of the Date object named rightnow to a variable named weekday?
  • None of the above Correct
Which of the following correctly assigns the result of a function named get_something () to a variable named shopping?
  • var shopping=get_something (); Correct
Which of the following correctly calls a function named major_alert() inside the onfocus event handler?
  • <input type=“text” onFocus=‘major_alert()”> Correct
Which of the following correctly codes an alert on the click event?
  • <input type=“button” onClick=“windowalert(‘Hey there!”);”> Correct
Which of the following correctly points to an external JavaScript file named yourfile.js?
  • <script type= "text/javascript" src="yourfile.js"></script> Correct
Which of the following declares a variable named pagenumber and gives it a value of 240?
  • var pagenumber=240; Correct
Which of the following does not belong to the group?
  • \\AMA-PC1\user Correct
Which of the following does not correctly create an array?
  • var if= new Array[10]; Correct
Which of the following indicates that a single line of commentary will follow it within JavaScript code?
  • // Correct
Which of the following is a Free PHP Editor?
  • Komodo Edit Correct
Which of the following is a valid name for an array?
  • soap Correct
Which of the following is a valid use of the windowalert() method?
  • None of the choices Correct
Which of the following is not a commenting style?
  • %            % Correct
Which of the following is not a framework concepts?
  • Controller Correct
Which of the following is not a JavaScript object?
  • None of the choices Correct
Which of the following is not a JavaScript operator?
  • None of the choices Correct
Which of the following is not an include statement?
  • <?php include_all 'include/externalphp' ?> Correct
Which of the following is not recommended feature in choosing a script editor?
  • None of the Choices Correct
Which of the following is not the file to access if you want to change your server's time?
  • indexphp Correct
Which of the following is something you should have to use the JavaScript?
  • Web browser Correct
Which of the following is the open and closing tags of PHP?
  • <?php    ?> Correct
Which of the following language is used to program the behavior of web pages?
  • None of the choices Correct
Which of the following statements will return false?
  • (4>=4)&&(5<=2) Correct
Which of the following statements will return true?
  • !(17>=20) Correct
Which of the following statements would be valid in JavaScript?
  • documentwrite("John said, \"Hi!\""); Correct
Which of the following string declarations is invalid?
  • None of the choices Correct
Which of the following successfully prints a variable named myhobby by adding it to a set of strings?
  • documentwrite("I like to " +myhobby+ " every weekend"); Correct
Which of the following successfully prints a variable named name by adding it to a set of strings?
  • None of the choices Correct
Which of the following variable declarations uses a variable with a valid variable name in JavaScript?
  • None of the choices Correct
Which of the following will correctly access the fifth element of an array named "age"?
  • age[4]; Correct
Which of the following would be valid as the first line of an if/else statement?
  • None of the choices Correct
Which of the following would correctly generate a random number between 0 and 7?
  • var rand_int= Mathfloor(Mathrandom()*7); Correct
Which of the following would correctly write the value of pi on a Web page?
  • documentwrite(MathPI); Correct
Which of these would be valid as the first line of a for loop?
  • for (x=1;x<6;x+=1) Correct
Who developed the JavaScript?
  • None of the choices Correct
Why should you use the type attribute in the opening script tag?
  • To be sure the browser does not interpret your JavaScript as another scripting language and to ensure the Web page validates in XHTML Correct
You should avoid using JavaScript reserved words as variable names
  • True Correct
All courses