[go: up one dir, main page]

0% found this document useful (0 votes)
64 views5 pages

Lesson3 Javascript MCQ &program

Uploaded by

Ayush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views5 pages

Lesson3 Javascript MCQ &program

Uploaded by

Ayush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Class :-12th Science Information Technology

Lesson No.3::Advanced Javascript

Q1 Fill in the blanks


1. In ___________scripting the script resides on web server.
2. JavaScript has a built-in multiway decision statement known as______
3. ________ refers to the execution of statement or a group of statements of
code for a fixed number of times.
4. __________ loop combines initialization,condition and loop
iteration in single statement.
5. __________ statement is used to jump out of loop.
6. When it is necessary to skip statement block and take the control at the
beginning for next iteration ____________ statement is used.
7. The __________keyword is used to create new object in JavaScript.
8. An ___________ can group data together with functions
needed to manipulate it.
9. All tangible things are known as __________
10. DOM stands for _________________
11. Using _____________ method id properly is used to find an
element.
12. __________ object is parent of all other objects.
13._______________ property of window object returns the location
object for the window.
14. The________________ property is useful for getting html element
and changing its content.
15. ______ method of window object removes focus from current
window. 16. _______event handler occures whenan element gets focus.
17. _______ event handler occures when user clicks submit button.
18. _______ method of string object returns the character at the
specified position.
19._______ method of string object returns the index of the first
occurance of specified character in given string
20. _________method of string object converts a string to

lower case.

Q2 True or false

1. Javascript cannot handle date and time


2. Javascript is an object oriented scripting language.
3. There should not be duplicity between the cases.
4. Loop will execute statement in statements block will the
condtion is false.
5. Break statement is used to jump out of loop.
6. Continue statement is used to make early exit from a loop.
7. Javascript is an entity having properties and objects.
8.Properties and method of object are accessed with “.” Operator.
9. onkeyPress,onKeyDown are keyboard events
10.onfocus event handler occurs which an element gets focus.
11.length property returns the number of characters in a string.
12. NaN property of number of object returns Not a Number value
Q3 .Multiple choice question – 1 correct option
1.​ Javascript has a built-in multiway decision statement
known as __________
a. condition b.switch c. break d. continue
2.​ __________refers to the execution of statement or a group of
statement or a group of statements of code for a fixed number of
times.
a. Statement b. Function c. Method d. Iteration
3.​ statement is used to jump out of loop.
a. Break b. Respond c. continue d. react
4.​ When it is necessary to skip statement block and take the control at
the beginning for next iteration _____ statement is used.
a. break b. react c. response d. continue
5.​ The……keyword is used to create new object in Javascript.
a. Next b.New c.Wend d. Loop
6.​ An_______can group data together with together with functions
needed to manipulate it.
a.​ Method b.Function c. Object d.Response
7.​ All tangible things are known as
a.​ Objects b.Method c.function d.variable
8. ________property of DOM object returns URL of the HTML
document
a.SRC b. HREF c. LINK d. URL
9. Using ……method id property is useful for getting html element and
changing its content.
a.​ Write b.URL c.innerHTML d.writeln
10. ________object represents an open window in browser
a.Window b.Math c.Array d.String
11. ________method of window object sets focus to the current window.
a.open() b.blur() c.close() d.focus()
12. ________event occurs when user leaves or looses
focus of an element.
a.​ onblur b. Onchange c. onfocus d. onchange
13. ________event occurs when user clicks submit button.
a.​ onblur b. Onchange c. onfocus d. onsubmit
14 _______event occurs when page/image has been loaded
a.​ Onblur b.onload c.onsubmit d. onunload

Q4 .Multiple choice question Select 2 correct options:::


1.​ Following are the properties of Document Object Model ……..
a. Src
b. head
c. URL
d. title
2.​ Following are the methods of window object
a. write()
b. body
c. URL
d.writeln()
6. Following are the event handlers in JavaScript
a. Onsubmit b. write()
c. writeln() d. onchange
7. Following properties of Number Object returns the largest minimum
and maximum value
a. MIN_VALUE b. MAX_VALUE
c. toLowerCase() d. toUpperCase()
8. Following are the methods of string objects
a)charAt() b)width
c)length d) trim()

Javascript Programs::

1. Program to display Even numbers from 25 to 50. Using


onclick event
2.Program to display cube of any number
3.DISPLAY MULTIPLICATION of two numbers, which were
ACCEPTED from user.
4 .DISPLAY Table of 5

You might also like