GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Which is not a valid function call?

Which is not a valid function call?

Read Details

Which of the following should be used to make the code snipp…

Which of the following should be used to make the code snippet work for students who get any score between 0 – 100?      var grade = 0;                                                                                                                                var score = parseInt(“What’s the score?”);                                                                                                                            if (score < 70)                  grade = "F";                                                                                                                             else if ( ??? )                  grade = "C";                                                                                                                              else if (grade >= 85)                   grade = “A”;

Read Details

 Which code snippet is equivalent to:  var message = (y == 1…

 Which code snippet is equivalent to:  var message = (y == 10) ? “correct” : “incorrect”;

Read Details

  What will display after the following code is run if z = 3…

  What will display after the following code is run if z = 3?             switch(x)      {           case 1:               document.write(“one!”);           case 2:               document.write(“two!”);           case 3:               document.write(“three!”);           default:               document.write(“go!”);  

Read Details

What integer values of y would make the following statement…

What integer values of y would make the following statement true?             (y >= 4) || (y < 8)

Read Details

19.   The result of any test condition is always either true…

19.   The result of any test condition is always either true or false.

Read Details

  Given: a = 4 and b = 3, evaluate: (14 % a ) * a * b / 6 +…

  Given: a = 4 and b = 3, evaluate: (14 % a ) * a * b / 6 + (b * b)  

Read Details

What is the scope of the variable pen on line 6? var pen =…

What is the scope of the variable pen on line 6? var pen = “Bic”; var pencil = “0.7 mm lead”; function writeIt() { document.write(“I have a ” + pen + ” pen.”); pen = “Flair”; document.write(“You have a ” + pen + ” pen.”); var pencil = “0.5mm lead”; document.write(“I prefer pencils with ” + pencil); }     

Read Details

  Evaluate 8 % 7 

  Evaluate 8 % 7 

Read Details

How many elements are in an array created with the following…

How many elements are in an array created with the following loop?           var myArray = new Array;           for (k = 0; k , 8; k++)                 myArray[k] = k;

Read Details

Posts pagination

Newer posts 1 … 45,855 45,856 45,857 45,858 45,859 … 70,119 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top