Docsity

Quiz Questions for CSE 3, Fall 2005, Exercises of Computer Science

Toggle sidebar
bg1
Signature ____________________ Name _____________________
cs3f_____
Student ID ___________________ Score:
Quiz 4
CSE 3
Fall 2005
Circle the correct answer.
1. In JavaScript, variable declarations are placed:
A. inside <head> </head> tags
B. in the parens ( ) of a function
C. anywhere in a program
D. inside <script> </script> tags
2. All of the following are illegal JavaScript identifiers (variable or function names) except:
A. Nine-Inch-Nails
B. 9" Nails
C. 9_Inch_Nails
D. N9_1nch_N8ls
3. In JavaScript, 17%5 is:
A. 17 percent times 5
B. 2
C. 3
D. the same as 17/5
4. In the if statement – if ( exp ) – the exp part must be:
A. an assignment statement
B. a boolean statement
C. a string
D. an arithmetic expression (an expression using arithmetic operators like +, -, *, /)
5. Input controls like buttons using the <input> tag are usually enclosed in
A. <script> </script> tags
B. if or if-else statements
C. <form> </form> tags
D. <p> </p> tags
6. Given the assignment document.A.B.C = 420; which of the following naming is correct:
A. attribute A in form B in input element C on this document
B. attribute C in input element B in form A on this document
C. input element A in form B with attribute C on this document
D. attribute document in input element A on form B in table C on this html page
(Over)
pf2

Partial preview of the text

Download Quiz Questions for CSE 3, Fall 2005 and more Exercises Computer Science in PDF only on Docsity!

Signature ____________________ Name _____________________

cs3f_____

Student ID ___________________ Score:

Quiz 4

CSE 3

Fall 2005

Circle the correct answer.

  1. In JavaScript, variable declarations are placed: A. inside tags B. in the parens ( ) of a function C. anywhere in a program D. inside tags
  2. All of the following are illegal JavaScript identifiers (variable or function names) except: A. Nine-Inch-Nails B. 9" Nails C. 9_Inch_Nails D. N9_1nch_N8ls
  3. In JavaScript, 17%5 is: A. 17 percent times 5 B. 2 C. 3 D. the same as 17/
  4. In the if statement – if ( exp ) – the exp part must be: A. an assignment statement B. a boolean statement C. a string D. an arithmetic expression (an expression using arithmetic operators like +, -, *, /)
  5. Input controls like buttons using the tag are usually enclosed in A. tags B. if or if-else statements C. tags D.

    tags
  6. Given the assignment document.A.B.C = 420; which of the following naming is correct: A. attribute A in form B in input element C on this document B. attribute C in input element B in form A on this document C. input element A in form B with attribute C on this document D. attribute document in input element A on form B in table C on this html page

(Over)

  1. SQL commonly stands for: A. Select Qualifying Language B. Select Query Lookup C. Structured Query Language D. Structured Qualifying Lookup
  2. Each of the following is an SQL keyword except: A. schema B. select C. where D. from
  3. To find all data in a database field that starts with the word "Hello", the criteria/condition would be: A. equal to 'Hello' B. = 'Hello' C. similar to 'Hello' D. like 'Hello'

Fill in the blanks.

  1. The logical OR operator/symbol in JavaScript is _________.
  2. The year 2400 _________(is/is not) a leap year.
  3. The anti-virus software provided by the ACS at no charge to UCSD people is _________.
  4. The equality operator/symbol in JavaScript is _________.
  5. To group multiple statements together to form a block (or compound statement) associated with a JavaScript if statement you use _____________________.
  6. In an tag, the code or actions associated with the onClick

attribute is called the ______________________________.