String Concatenate - Computer Science - Quiz, Exercises of Computer Science

Main points of this past exam are: String Concatenate, Multiple Statements, Spreadsheet Formulas, Variables Declared, Concatenation, Absolute Column, Web Page

Typology: Exercises

2012/2013

Uploaded on 04/07/2013

shafiqul_877b
shafiqul_877b 🇮🇳

4.3

(47)

184 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Signature ____________________ Name _____________________
cs3x_____
Student ID ___________________ Score:
Quiz 3
CSE 3
Summer 2006
Fill in the blanks.
1. A random number generated by
Math.random()
in JavaScript is always between ______ and ______.
2. ___________________ is the term commonly used to refer to values represented in base 2.
3. To group multiple statements together to form a block (group of statements) associated with a
JavaScript if or for statement or a function you use _____________________.
4. Spreadsheet formulas start with ____________.
5. The equality operator/symbol in JavaScript is _________.
6. Variables declared inside a function are ____________ in scope.
Circle the correct answer.
7. Which of the following iterates 10 times?
A.
for (i = 1; i <= 11; i = i + 1)
B.
for (i = 10; i >= 0; i = i - 1)
C.
for (i = 0; i < 10; i = i + 1)
D. all of the above
8. In JavaScript, the plus sign always means:
A. add 1
B. addition
C. concatenation
D. B or C
9. Which of the following is the correct form to specify a range of cells in a spreadsheet like Excel:
A. 2B:5F
B. C3-E8
C. K9:N11
D. G4/J9
(Over)
pf2

Partial preview of the text

Download String Concatenate - Computer Science - Quiz and more Exercises Computer Science in PDF only on Docsity!

Signature ____________________ Name _____________________

cs3x_____

Student ID ___________________ Score:

Quiz 3

CSE 3

Summer 2006

Fill in the blanks.

  1. A random number generated by Math.random() in JavaScript is always between ______ and ______.
  2. ___________________ is the term commonly used to refer to values represented in base 2.
  3. To group multiple statements together to form a block (group of statements) associated with a JavaScript if or for statement or a function you use _____________________.
  4. Spreadsheet formulas start with ____________.
  5. The equality operator/symbol in JavaScript is _________.
  6. Variables declared inside a function are ____________ in scope.

Circle the correct answer.

  1. Which of the following iterates 10 times? A. for (i = 1; i <= 11; i = i + 1) B. for (i = 10; i >= 0; i = i - 1) C. for (i = 0; i < 10; i = i + 1) D. all of the above
  2. In JavaScript, the plus sign always means: A. add 1 B. addition C. concatenation D. B or C
  3. Which of the following is the correct form to specify a range of cells in a spreadsheet like Excel: A. 2B:5F B. C3-E C. K9:N D. G4/J

(Over)

  1. Which of the following is the correct form to specify absolute column F and relative row 4: A. F$ B. 4@F C. $F D. @4F
  2. i++ in JavaScript means: A. add 1 to i and store the result in i B. add the value of i to itself and store the result in i C. string concatenate with the plus sign D. check to see if i is positive
  3. Given the assignment document.X.Y.Z = 420; which of the following naming is correct: A. attribute X in form Y in input element Z on this document B. input element X in form Y with attribute Z on this document C. attribute document in input element X on form Y in table Z on this html page D. attribute Z in input element Y in form X on this document
  4. All of the following are illegal JavaScript identifiers (variable or function names) except: A. Nine_To_Five B. 9-To- C. 9_2_ D. Nine->Five
  5. In JavaScript, 18%5 is: A. the same as 18/ B. 18 percent times 5 C. 2 D. 3
  6. Output directly onto a Web page from JavaScript (as if it was HTML code typed in directly onto a Web page) is done with: A. document.alert() B. document.print() C. HTML tags like
    D. document.write()
  7. The question(s) you would most like to see on the Final Exam is: