Questions · Page 2 of 9

MCQ

MCQ 511 Mark
Which of the following contains all the other objects of the browser object model within it?
  • A
    Link
  • B
    Form
  • Window
  • D
    Document
Answer
Correct option: C.
Window
Window
View full question & answer
MCQ 521 Mark
Which of the following is known as global object?
  • Window
  • B
    Document
  • C
    Form
  • D
    Link
Answer
Correct option: A.
Window
Window
View full question & answer
MCQ 531 Mark
Which of the following is created automatically by the browser?
  • A
    Form
  • B
    Document
  • Window
  • D
    Link
Answer
Correct option: C.
Window
Window
View full question & answer
MCQ 541 Mark
Which object of BOM represents the browser window or individual frame within the window?
  • A
    Document
  • Window
  • C
    Form
  • D
    Link
Answer
Correct option: B.
Window
Window
View full question & answer
MCQ 551 Mark
What do we not have to create in a browser object model as they are automatically created when the browser opens the Web page?
  • Object
  • B
    Variable
  • C
    Method
  • D
    All of these
Answer
Correct option: A.
Object
Object
View full question & answer
MCQ 561 Mark
What can be used in the browser object model to change the window or elements displayed in the browser?
  • A
    The properties
  • B
    Methods of objects
  • a and b both
  • D
    None of these
Answer
Correct option: C.
a and b both
a and b both
View full question & answer
MCQ 571 Mark
What is split into different parts or objects in BOM model?
  • Browser
  • B
    Web page
  • C
    Users
  • D
    Web site
Answer
Correct option: A.
Browser
Browser
View full question & answer
MCQ 581 Mark
What is used to control the web browsers window or web pages?
  • BOM
  • B
    DOM
  • C
    MOB
  • D
    OBM
Answer
Correct option: A.
BOM
BOM
View full question & answer
MCQ 591 Mark
What is used to control the web browser sometimes?
  • A
    HTML
  • B
    CSS
  • JavaScript
  • D
    JScript
Answer
Correct option: C.
JavaScript
JavaScript
View full question & answer
MCQ 601 Mark
Write a statement to check whether the variable x’ is having null value or not?
  • A
    if (x= null II x=” ”)
  • if (x=null II x = = ””)
  • C
    if= x=null II x==” ”
  • D
    if= x=not null
Answer
Correct option: B.
if (x=null II x = = ””)
if (x=null II x = = ””)
View full question & answer
MCQ 611 Mark
Why does ‘if’ statement check expressions?
  • To validate specific condition.
  • B
    To repeat specific expressions.
  • C
    a and b both
  • D
    None of these
Answer
Correct option: A.
To validate specific condition.
To validate specific condition.
View full question & answer
MCQ 621 Mark
Why ‘if” statement is used?
  • A
    To repeat statements of program.
  • To change the flow of program.
  • C
    a and b both
  • D
    None of these
Answer
Correct option: B.
To change the flow of program.
To change the flow of program.
View full question & answer
MCQ 631 Mark
Which statement is used to change the flow of the program?
  • A
    var
  • If
  • C
    For
  • D
    While
Answer
Correct option: B.
If
If
View full question & answer
MCQ 641 Mark
which kind of statement ‘if’ is?
  • Conditional
  • B
    Unconditional
  • C
    Loop
  • D
    File
Answer
Correct option: A.
Conditional
Conditional
View full question & answer
MCQ 651 Mark
Write a statement to give value of input text field which is in jsl form to the variable ‘x’?
  • A
    x document.js1.name.value;
  • B
    var x =js1.name.value;
  • var x= document.j1.name.value;
  • D
    var x = jsl.name;
Answer
Correct option: C.
var x= document.j1.name.value;
var x= document.j1.name.value;
View full question & answer
MCQ 661 Mark
Which statement is used to give value “Hello Students” for the variable ‘y’ in JavaScript?
  • var y = = “Hello Students”;
  • B
    ver y = Hello Students;
  • C
    var y = “Hello Students”;
  • D
    var y = ‘Hello Students’;
Answer
Correct option: A.
var y = = “Hello Students”;
var y = “Hello Students”;
View full question & answer
MCQ 671 Mark
Which statement is used to give value 3 for the variable ‘x’ in JavaScript?
  • var x = = 3;
  • B
    Var x = 3;
  • C
    x = 3
  • D
    _= 3
Answer
Correct option: A.
var x = = 3;
var x = = 3;
View full question & answer
MCQ 681 Mark
Which key word is used to declare a variable in JavaScript?
  • Var
  • B
    Function
  • C
    Variable
  • D
    Van
Answer
Correct option: A.
Var
Var
View full question & answer
MCQ 691 Mark
Which of the following can be stored in variable?
  • A
    Numbers
  • B
    String
  • C
    Texts
  • All of these
Answer
Correct option: D.
All of these
All of these
View full question & answer
MCQ 701 Mark
What can be said for variable ‘x’ and ‘X’?
  • A
    They are same.
  • They are different.
  • C
    It depends on script.
  • D
    It depends on version.
Answer
Correct option: B.
They are different.
They are different.
View full question & answer
MCQ 711 Mark
What can be said for the case of variable in JavaScript?
  • A
    They are case-sensitive.
  • They are not case-sensitive.
  • C
    Characters are not part of the variable.
  • D
    None of these
Answer
Correct option: B.
They are not case-sensitive.
They are not case-sensitive.
View full question & answer
MCQ 721 Mark
For which of the following a variable is a container?
  • A
    Table
  • Data
  • C
    Script
  • D
    Form
Answer
Correct option: B.
Data
Data
View full question & answer
MCQ 731 Mark
What is returned by validate Form0 function according to its statement when name field has a value?
  • A
    True
  • B
    False
  • C
    On
  • 1
Answer
Correct option: D.
1
1
View full question & answer
MCQ 741 Mark
Which of the following value validate Form function returns in the text book?
  • a Or b
  • B
    -1
  • C
    False
  • D
    True
Answer
Correct option: A.
a Or b
a Or b
View full question & answer
MCQ 751 Mark
The function validate Form0 will return a value either True or False depending upon which of the following fields in the text book?
  • Name
  • B
    Form
  • C
    Uname
  • D
    Frame
Answer
Correct option: A.
Name
Name
View full question & answer
MCQ 761 Mark
Which of the following functions is called by on submit0 event handler in text book ?
  • validateForm0
  • B
    validate0
  • C
    Form0
  • D
    vForm0
Answer
Correct option: A.
validateForm0
validateForm0
View full question & answer
MCQ 771 Mark
Which of the following event handler is used in exempla of Text book?
  • onsubmit0
  • B
    onclick0
  • C
    onreturn0
  • D
    onreset0
Answer
Correct option: A.
onsubmit0
onsubmit0
View full question & answer
MCQ 781 Mark
For which of the following events is onsubmit0 event handler used?
  • A
    Submit
  • B
    Click
  • Return
  • D
    On return
Answer
Correct option: C.
Return
Return
View full question & answer
MCQ 801 Mark
Which kind of names are and event?
  • A
    Different
  • Same
  • C
    Only numeric
  • D
    None of these
Answer
Correct option: B.
Same
Same
View full question & answer
MCQ 811 Mark
When an event occurs, a specific JavaScript code is executed in response to a given situation. What is known as this JavaScript code?
  • Event handler
  • B
    Event
  • C
    a Or b
  • D
    No of these
Answer
Correct option: A.
Event handler
Event handler
View full question & answer
MCQ 821 Mark
What takes place when the user dose something?
  • A
    Script
  • Event
  • C
    Code
  • D
    Program
Answer
Correct option: B.
Event
Event
View full question & answer
MCQ 831 Mark
The interaction between which of the following causes the browser to generate an event?
  • User and Web page
  • B
    User and Kernel
  • C
    Kernel and Web page
  • D
    None of these
Answer
Correct option: A.
User and Web page
User and Web page
View full question & answer
MCQ 841 Mark
What is useful in creating interactive web pages which responds to the action performed by the user?
  • A
    CSS
  • B
    Java
  • C
    FITML
  • JavaScript
Answer
Correct option: D.
JavaScript
JavaScript
View full question & answer
MCQ 851 Mark
What is known as when the user clicks on “Submit” button?
  • Event
  • B
    Event Handler
  • C
    a and b both
  • D
    None of these
Answer
Correct option: A.
Event
Event
View full question & answer
MCQ 861 Mark
Which function is called on the click event of the submit button in text book?
  • ValidateForm0
  • B
    Validate 0
  • C
    Form 0
  • D
    V Form 0
Answer
Correct option: A.
ValidateForm0
ValidateForm0
View full question & answer
MCQ 871 Mark
If the function returns a value, then which statement is used preceding a function?
  • A
    Not null
  • Return
  • C
    Value
  • D
    True
Answer
Correct option: B.
Return
Return
View full question & answer
MCQ 881 Mark
What is called the value passed to the function?
  • Parameter
  • B
    Variable
  • C
    Constant
  • D
    Value
Answer
Correct option: A.
Parameter
Parameter
View full question & answer
MCQ 891 Mark
I Values written in which of the following sent as a parameters of function?
  • A
    In single quotation (‘‘)
  • In bracket ()
  • C
    In double quotation (““)
  • D
    In curly brackets ({})
Answer
Correct option: B.
In bracket ()
In bracket ()
View full question & answer
MCQ 901 Mark
In which of the following ones does the function accept values?
  • A
    In single quotation (‘‘)
  • In bracket ()
  • C
    In double quotation (““)
  • D
    In curly brackets ({})
Answer
Correct option: B.
In bracket ()
In bracket ()
View full question & answer
MCQ 911 Mark
Which of the following is called by its name and it takes a value inside the parenthesis?
  • Function
  • B
    Script
  • C
    CSS
  • D
    All of these
Answer
Correct option: A.
Function
Function
View full question & answer
MCQ 921 Mark
In which of the following sections can the HTML function be defined?
  • A
    Head
  • B
    Body
  • a Or b
  • D
    Script
Answer
Correct option: C.
a Or b
a Or b
View full question & answer
MCQ 931 Mark
From where can the function be called from within the source code?
  • A
    Upper side
  • B
    Down side
  • Any where
  • D
    Cannot be called
Answer
Correct option: C.
Any where
Any where
View full question & answer
MCQ 941 Mark
When will the function be executed?
  • A
    By an event
  • B
    When it is called inside a source code.
  • a and b both
  • D
    None of these
Answer
Correct option: C.
a and b both
a and b both
View full question & answer
MCQ 951 Mark
What will be displayed when the function alert (”Hello Students”) is called ?
  • An alert box with the message “Hello Students”
  • B
    “Hello Students” message with animation
  • C
    “Hello Students” message will blink.
  • D
    None of these
Answer
Correct option: A.
An alert box with the message “Hello Students”
An alert box with the message “Hello Students”
View full question & answer
MCQ 961 Mark
Which of the following functions takes the text and displays it in an alert box?
  • Alert 0
  • B
    Prompt 0
  • C
    ftmction0
  • D
    form0
Answer
Correct option: A.
Alert 0
Alert 0
View full question & answer
MCQ 971 Mark
Which of the following is an inbuilt function?
  • A
    validateForm0
  • alert0
  • C
    a and b both
  • D
    None of these
Answer
Correct option: B.
alert0
alert0
View full question & answer
MCQ 981 Mark
Which of the following has the block of code written inside?
  • A
    Square bracket ([])
  • Curly bracket (Q)
  • C
    Round brackets ({})
  • D
    None of these
Answer
Correct option: B.
Curly bracket (Q)
Curly bracket (Q)
View full question & answer
MCQ 991 Mark
Which keyword is used to define a function?
  • A
    Script
  • B
    Junction
  • Function
  • D
    Java function
Answer
Correct option: C.
Function
Function
View full question & answer
MCQ 1001 Mark
What is a reusable block of code that performs a particular task?
  • A
    Function
  • B
    Routine
  • a Or b
  • D
    Script
Answer
Correct option: C.
a Or b
a Or b
View full question & answer
MCQ - Page 2 - Computer STD 12 Commerce Questions - Vidyadip