JavaScript/JavaScript%20MCQ%20Questions%20And%20Answers%20Set%202 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

Posted Date:-2021-02-20 13:19:37


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

1.258

2.Error

3.7

4.78

Posted Date:-2021-02-20 13:19:37


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

Posted Date:-2021-02-20 13:19:37


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

1.44

2.8

3.4

4.Error output

Posted Date:-2021-02-20 13:19:37


Question:
Choose the client-side JavaScript object:

1.Database

2.Cursor

3.Client

4.FileUpLoad

Posted Date:-2021-02-20 13:19:37


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

Posted Date:-2021-02-20 13:19:37


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.

Posted Date:-2021-02-20 13:19:37


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
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website 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!