Page 1 :
Client Side Scripting Using JavaScript, Introduction to JavaScript, Q1. Fill in the blanks & Multiple Choice one Answer, 1. In Client-side scripting , the script resides on ----- computer [ Client ], 2. ----- scripting is used for data entry validations. [ Client ], 3. ------- language is a type of language that executes its instructions directly and freely without, compiling machine language instructions [ interpreted ], 4. ------ is an interpreted scripting language [ JavaScript ], 5. JavaScript is ----------- side scripting language [ Client ], 6. ------ script resides on server computer [ server side ], 7. When script is resides on server ,it it run on server known as -------- [ Server Side Script], , Switch Case & break keyword, Q1. Fill in the Blanks & Multiple Choice one answer, 1., 2., 3., 4., , , ------- Statement executes block of code depending upon different cases. [ Switch ], In JavaScript , ------ statement test the value of given expression against list of case values [ Switch], ------ keyword breaks out the switch block [ Break ] OR, ----- statement is used to jump out of the loop execution [ Break ], , DOM , Its Methods & Properties, , Q1. Fill in the Blanks & Multiple Choice Questions, 1., 2., 3., 4., 5., 6., , DOM stands for -------------- [ Document Object Model ], In JavaScript , ----------------- defines Logical structure of document [ Document object Model], In JavaScript , ----- is used to create new object [ New ], In JavaScript , ------ keyword is used to initialize the object [ New ], ------ object is top of the hierarchy in DOM [ Window ], ------ property of DOM is useful for getting HTML element & changing content [ innerHTML], , Window Object , Its properties & Methods [ Prepare all method & properties ], Q1. Fill in the Blanks & Multiple Choice one Answer, 1., 2., 3., 4., 5., 6., , ------- Object is parent object or top level object in DOM JavaScript [Window] ., ------- Object in JavaScript represent open window in a web browser. [ Window ], ------- property of window object return location of object in window [ Location ], ------- method of window object removes foucs from current window [ blur() ], ------- method of window object display confirm message box [ confirm() ], In JavaScript , closed is property of ------------ object [ Window ], [VIMP - Prepare all properties & methods from Notes ], , Q2. Multiple Choice Two & Three Answers, 1. Which of the following are valid properties of window object., a. Length b. status c. closed d. blur e. location f. confirm, 2. Which of the following are valid methods of window object., a. toUpperCase() b. print() c. lastIndexOf() d. confirm() e.indexOf(), [VIMP - Prepare all properties & methods from Notes ], , f. focus()
Page 2 :
String Object, Its Properties & Methods, Q1. Fill in the Blanks & Multiple Choice one Answer, 1. ------- property of string object returns number of characters in string [ length ], 2. ------- method of string object converts string into uppercase character [ toUpperCase()], 3. In javascript , var a=”information technology” , what is output of, document.write(“a.toUpperCase()); ---------------[ INFORMATION TECHNOLOGY ], 4. trace the output of following javascrpt code, var s=”information technology”, document.write(s.lastIndexOf(“o”)); Ans = ------- [ 19 ], 5. ------ method of string object returns character at specifies position in string [ charAt() ], 6. ------ method of string object extract or returns number of specifies characters from string, from, start index [ substr() ], [VIMP - Prepare all properties & methods from Notes ], Q2. Multiple Choice Two & Three Answer, 1. Select three correct methods of string objects, a. Close() b. charAt() c. focus() d.toLowerCase() e. setTimeOut() f. lastIndexOf(), 2. Select three correct methods of string objects, a. Print() b. toUpperCase() c. alert() d. indexOf() f. open() g. substr(), [VIMP - Prepare all properties & methods from Notes ], , Number object , its properties & methods, Q1. Fill in the Blanks & Multiple Choice one answer, 1., 2., 3., 4., 5., , ------ object in JavaScript work with numbers or numeric values [ Number ], ----- property of Number object returns maximum value in JavaScript [ MAX_VALUE], ----- property of Number object represents Not a Number value [ NaN ], ----- method of Number object returns number with exacts digits after decimal point [ isFixed()], ----- method of Number object determines whether given value is integer [ isInteger()], [VIMP - Prepare all properties & methods from Notes ], , Events in JavaScript, 1., 2., 3., 4., 5., 6., 7., 8., , ----- event occurs when user loses focus of element [ onBlur ], ----- event occurs when element get focus [ onFocus ], ----- event occurs when user changes content in textbox,password , textarea [ onChange ], ------ event occurs when user select some text of an element [ onSelect ], ----- events occurs when user clicks submit button [ onSubmit ], ---- -events occurs when user clicks reset button [ onReset ], ------ events occurs when webpage or image has been loaded [ onLoad ], ------ events occurs when webpage/document has been unloaded or closed [ onUnload ], , [VIMP --- All above events are asked in MCQ1ANSWER, MCQ2ANSWER, MCQ3ANSWER.]