JavaScript/JavaScript MCQ Questions And Answers Set 2 Sample Test,Sample questions

Question:
 Scripting language are

1.High Level Programming language

2.Assembly Level programming language

3.Machine level programming language

4.None of the above


Question:
<script language="javascript">
function x()
{
document.write(2+5+"8");
}
</script>

1.258

2.Error

3.7

4.78


Question:
<script type="text/javascript">
var s = "9123456 or 80000?";
var pattern = /d{4}/;
var output = s.match(pattern);
document.write(output);
</script>

1.9123

2.91234

3.80000

4.None of the above


Question:
"<script type=""text/javascript""> x=4+""4""; document.write(x); </script>  Output------?"

1.44

2.8

3.4

4.Error output


Question:
Choose the client-side JavaScript object:

1.Database

2.Cursor

3.Client

4.FileUpLoad


Question:
What is mean by "this" keyword in javascript?

1.It refers current object

2.It referes previous object

3.It is variable which contains value

4.None of the above


Question:
Which best explains getSelection()?

1.Returns the VALUE of a selected OPTION.

2.Returns document.URL of the window in focus.

3.Returns the value of cursor-selected text

4. Returns the VALUE of a checked radio input.


More MCQS

  1. JavaScript MCQ Questions And Answers
  2. JavaScript MCQ Questions And Answers Set 2
  3. JavaScript MCQ Set 1
  4. JavaScript MCQ Set 2
  5. Javascript MCQ Questions Set 1
  6. Javascript Multiple Choice Questions
  7. JAVASCRIPT MCQ
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!