Anda di halaman 1dari 2

Page

No
St .Thomas College of Engineering & Technology ,
Kannur

Module
Question Bank
1) Describe briefly three major differences between Java and JavaScript
2) Describe briefly three major uses of JavaScript on the client side
3 )Describe briefly the basic process of event-driven computation
4 )What are the two categories of properties in JavaScript?
5) Why does JavaScript have two categories of data variables, namely, primitives and
objects?
6) Describe the two ways to embed a JavaScript script in an XHTML document
7) What are the two forms of JavaScript comments?
8) Why are JavaScript scripts sometimes hidden in XHTML documents by putting them into
XHTML comments?
9) What are the five primitive data types in JavaScript?
10) Do single-quoted string literals have any characteristics different from those of double-
quoted string literals?
11) In what circumstances would a variable have the value undefined?
12) If the value undefined is used as a Boolean expression, is it interpreted as true or false?
13) What purpose do rules of operator precedence serve in a programming language?
14) What purpose do rules of operator associativity serve in a programming language?
15) Describe the purpose and characteristics of NaN
16) Why is parseInt not used more often?
17) What value does typeof return for an object operand?
18) What is the usual end-of-line punctuation for the string operand passed to
documentwrite?
19) What is the usual end-of-line punctuation for the string operand passed to alert?
20) Describe the operation of the prompt method
21) What is a control construct?
22) What are the three possible forms of control expressions in JavaScript?
23) What is the difference between == and ===?
Page
No
St .Thomas College of Engineering & Technology ,
Kannur
24) Explain what short-circuit evaluation of an expression means
25) What is the semantics of a break statement?
26) What is the difference between a while statement and a do-while statement?
27) When is a JavaScript constructor called?
28) What is the difference between a constructor in Java and one in JavaScript?
29) What properties does an object created with a new operator and the Object constructor
have? 30 Describe the two ways the properties of an object can be referenced
31) How is a new property of an object created?
32) Describe the semantics of the for-in statement
33) Describe the two ways an Array object can be created
34) What relationship is there between the value of the length property of an Array object
and the actual number of existing elements in the object?
35) Describe the semantics of the join method of Array
36) Describe the semantics of the slice method when it is given just one parameter
37) What is the form of a nested array literal?
38) What value is returned by a function that contains no return statement?
39) Define the scope of a variable in a JavaScript script embedded in an XHTML document
when the variable is not declared in a function
40) Is it possible to reference global variables in a JavaScript function?
41) What is the advantage of using local variables in functions?
42) What parameter-passing method does JavaScript use?
43) Does JavaScript check the types of actual parameters against the types of their
corresponding formal parameters?
44)How can a function access actual parameter values for those actual parameters that do not
correspond to any formal parameter?
45) What is one way in which primitive variables can be passed by reference to a function?
46) In JavaScript, what exactly does a constructor do?

Anda mungkin juga menyukai