JAVA SCRIPT
1) Java script is an easy-to-use programming language that can be __________ in the header of web
a) Linked b) Embedded c) Insert d) All
2) Java Script was developed by ___________ under the name ____________
a) Microsoft, VBScript b) Sun, JavaScript
c) Sun, Live Script d) Netscape, Live Script
3) _________ was used as a communication medium between HTML documents & Java applets
a) Java Script b) Live Script c) Live Script d) ALL
4) In December, 1995, Netscape & Sun joined hands and renamed ________ as JavaScript
a) VBScript b) LiveScript c) JScript d) None
5). Java Script cannot be used in the following situations .
a) Designing web design to respond to user interaction b)Import & export data from database
c) Processing data on the client side before submitting it to the server. d)None.
6) Web page document is ______________.
a) An Object b) property c) Method d) None
7) To specify a particular elements of form we must use the forms property of ____object
a) Window b) Form c) Document d) none
8) Document.forms[2].button.value refers to value of button within the ________form of the current document.
a) second b) frist c) third d) None
9) __________ are used to describe an object or its current state.
a) Methods b) Properties c) events d) All
10)The background color of the document is set by a property
a) document.backcolor b) document.color c) document.bgcolor d) none
11)A function associated with an object is called object’s ________
a) Method b) Property c) event d) None
12) A new document is opened with the method
a) Document.url() b) document.load() c) document.open() d) none
13) _________ is the state that triggers a specific action on the object
a) Event b) Method c) Property d) None
14) __________ event will run the function when the user clicks on the button.
a) ondblclick b) onclick c) onfocus d) onblur
15) _________ are embedded in HTML tags, typically used as part of forms
a) Event b) Methods c) Event handlers d) none
16) Java Scripts can be inserted in to HTML pages between
a) Head tag b) Body tag c) both a & b d) None
17) _____________ attribute allows us to load javascript from a separate file on the server.
a) target b) src c)language d) none
18) File extension for src attribute value to locate JavaScript is ____________
a) .java b) .src c) .js d) none
19) We can point to script file using
a) Relative URL b) Absolute URL c) both a & b d) none
20) ___________ tags are used to hide comments in HTML from the browser
a) < ---------- > b) c) < ! ----- > d) none
21) Java Script variable names are
a) Not case sensitive b) Case Sensitive c) Some time case sensitive d) none
22). Variable name can contain
a) alphabets b) numbers c) underscores d) all of the above
23). ___________ is a valid variable name
a) _abc b) .abc c) ,abc d) none
24) (a) Global variable can be accessed from anywhere in the current script
(b) by other scripts in the same HTML page.
a) Both a & b
b) None
25) Variable declared inside a function _________ be accessed outside the function if they are preceded by a var keyword.
a) can b) cannot c) Access sometimes d) none
26) Which of the following is not primary datatype.
a) Boolean b) string c) null d) none
27) Number with leading ___________ are considered to be octal.
a) 8 b) oct c) 0 d) None
28) Which of the following is not a number.
a) 045 b) 0*45 c) 45 d) none
29). Numbers with ________ are considered as hexadecimal.
a) OX b) 0 c) 16 d) none
30). The concatenation of one int & one string is
a) string b) int c) Error d) None
31) ____________ returns the number of characters in the string.
a) Len b) Length c) char d) None
32). ______________ returns the character at the 5th position in MyString.
a) MyString.chatat(5) b) MyString.charAt(5)
c) MyString.charat(4) d) MyString.charAt(4)
33) To find index position of first occurrence o characters within the string
a) Stringname.indexOf() b) stringname.charAt()
c) stringname.first() d) none
34) _________ splits the string using the delimiter character passed.
a) split b) divide c) Both a & b d) none
35) __________ changes all string in the text to lowercase.
a) Lower() b) Lcase() c) toLowerCase() d) None
36) Substring() returns the substring at the specified _________ & ___________ index position .
a) top, bottom b) first, last c) start, end d) None
37) __________ makes text big by associating the tag.
a) big() b) small() c) large() d) expand()
38) _______ makes text blink by associating the