Chapter 2.Online Trial Exam. Advanced Javascript
Que.1.Fill in the Blanks [Marks 10]
1...is an interpreted scripting language.
Javascript
2.Programs in Javscript are called as.......
scripts
3.Javascript is ........oriented scripting language.
>object
4.Javascript is used for....purpose.
>validation
5.In Javascript a multiway decision statement is known as.....
switch
6.....will execute statements in statement block till the condition is true.
loop
7.An .....can group data together with functions needed to manipulate it.
object
8.The...keyword is used to craete new object in javascript.
new
9.DOM stands for .....
Document Object Model
10.In javscript using ....method id property is used to find an element.
getElementById()
Que.2.True/False [Marks 10]
False Javascript is case sensitive language.
False Break statement is used to make early exit from a loop.
True Javascript is an object based scripting.
False title property of DOM object sets or returns the title of the document.
False status property sets or returns the text in the status bar of window
True print() method of window object prints the content of current window.
True In Javascript onKeypress,onKeydown are the keyboard events.
False Javascript is known as universal client side scripting language.
False False In Javascript window is the parent object of all the other objects.
Que.3.Muliple Choice Single Answer [Marks 10]
1.An...language is a type of programming language that executes the instructions directly and without compiling machine language instructions in precious program.
- a.compile
- b.VB
- c.interpreted
- d.html
c.interpreted
2.In javascript function is declared by using .....keyword.
- a.funct()
- b.language
- c.function
- d.comment
c.function
3.The ....statement is not mandatory in switch.
- a.default
- b.branch
- c.function
- d.case
a.default
4.In Javascript,....loop executes statements as long as condition becomes true.
- a.default
- b.branch
- c.for
- d.case
c.for
5.In Javascript to jump out of loop ....statement is used.
- a.while
- b.for
- c.continue
- d.break
d.break
6.The way in which html document content is accessed and modified is called as ......
- a.variable
- b.object
- c.Document Object Model
- d.object model
c.Document Object Model
7.In javscript....object is at the top of the object hierarchy.
- a.date
- b.math
- c.document
- d.window
d.window
8.....object is used to store and manipulate character in a text.
- a.character
- b.string
- c.text
- d.letter
b.string
9.The index of the first occurence of specified character in given string returned by ....method of string.
- a.chartPos()
- b.charAt()
- c.indexOf()
- d.pos()
c.indexOf()
10.An ....is an object that can store a collection of items,in Javascript.
- a.string
- b.date
- c.window
- d.array
d.array
Que.4.Multiple Choice Two Correct Answer[Marks 20]
1.There are two types of scripting
- a.client side
- b.browser side
- c.server side
- d.base side
a.client side c.server side
2.The methods of Document Object Model are
- a.head()
- b.alert()
- c.write()
- d.writeln()
c.write() d.writeln()
3.The method confirm() of window object creates doalog box containing.....and .....button
- a.submit
- b.message
- c.reset
- d.ok
b.message d.ok
4.Javascript supports two types of objects....and...
- a.widow
- b.inner
- c.built in
- d.user defined
c.built in d.user defined
5.In Javascript,number object contains following properties
- a.MIN
- b.MIN_VALUE
- c.MAX
- d.MAX_VALUE
b.MIN_VALUE d.MAX_VALUE
6.isFixed method of number object returns the .....that represents a .....with exact digit after decimal point./p>
- a.string
- b.integer
- c.float
- d.number defined
a.string d.number
7.Following are built in objects in Javascript
- a.math
- b.array
- c.random
- d.month defined
a.math b.array
8.In Javascript,mouse events are
- a.onclick
- b.keypress
- c.onmouseover
- d.onchange
a.onclick c.onmouseover
9.In Javascript window object has following properties
- a.math
- b.document
- c.location
- d.month
b.documenth c.location
10.The valid methods of Array object are in Javascript are
- a.pop()
- b.push()
- c.isInteger()
- d.length()
a.pop() b.push()
Que.5.Multiple Choice Three Correct Answer[Marks 06]
1.In javscript client side scripting is used for following purposes
- a.for validation
- b.to hide code
- c.to check ranges and dates
- d.for animation
- e.perform data access
- f.for file security
2.Features of Javascript are
- a.Not create any new functions
- b.Need of special software installation
- c.It can Handles date and time effectively
- d.Javascript helps browser to perform input validation
- e.Software can not run on any hardware platform
- f.It can not supports event based programming
Que.6.Match The Following.[Marks 04] 1.Match the Pair
Sr.No | A | B |
---|---|---|
1 | HTML5 | a.Client Side Scripting Language |
2 | PHP | b.Programming Language |
3 | Javascript | c.Server Side Scripting |
4 | VB .net | d.Markup Language |
1-d 2-c 3-a 4-b
Please Comment and Share. ConversionConversion EmoticonEmoticon