Tag: web technology

Questions Related to web technology

In hibernate mapping file, The method is used to generate

  1. the Object for accessing the database

  2. the foreign key for the new record

  3. the primary key for the new record

  4. the Composite key for the new record


Correct Option: A

Which function accepts input from the user?

  1. accept()

  2. prompt()

  3. input()

  4. enter()


Correct Option: B

Which function identifies the data type of the operand?

  1. isNumber()

  2. isString()

  3. typeof()

  4. Option 1 & 2


Correct Option: C

What is the output for the below lines of code? x = 0/0; alert(x);

  1. undefined

  2. infinity

  3. NaN

  4. None of the above


Correct Option: C

What is the output of the alert function for the below lines of code? var sum, Sum; sum = 0; alert(Sum);

  1. 0

  2. undefined

  3. Exception(0365): object undefined!

  4. Javascript error in the browser


Correct Option: B
  1. Mode value is 1Mode value is 2Mode value is 3

  2. Mode value is 1

  3. JavaScript error in the browser

  4. None of the above


Correct Option: A

What is the output for the below lines of code? var myArray = new Array(); myArray[10] = "This is the only element in this array"; alert(myArray.length);

  1. 1

  2. 11

  3. undefined

  4. null


Correct Option: B

What is the output for the below lines of code? var main_string = "JavaScript is the best Web Programming language"; var sub_string = "Script"; alert(main_string.indexOf(sub_string));

  1. -1

  2. 4

  3. JavaScript error in the browser

  4. 5


Correct Option: B

Which of the following refers to the parent of a window object?

  1. window.opener

  2. parent

  3. window.parent

  4. All of the above


Correct Option: D

Which event is triggered when an element loses focus?

  1. onfocusout

  2. onblur

  3. onfocuslost

  4. All of the above


Correct Option: B