Q1. <script
type="text/javascript">
x=4+"4";
document.write(x);
</script>
Output------?
|
a) 44
|
b) 8
|
c) 4
|
d) Error output
|
|
|
Q2. <script type="text/javascript"
language="javascript">
var qpt = "Qualiyt Point Technologies";
var result = qpt.split(" ");
document.write(result);
</script>
|
a) Quality
|
b) Q,u,a,l,i,t,y,P,o,i,n,t,T,e,c,h,n,o,l,o,g,i,e,s
|
c) Qualiyt,Point,Technologies
|
d) QualityPointTechnologies
|
|
|
Q3. Is it possible to nest functions in JavaScript?
|
a) True
|
b) False
|
|
|
Q4. <script>
document.write(navigator.appCodeName);
</script>
|
a) get code name of the browser of a visitor
|
b) set code name of the browser of a visitor
|
c) None of the above
|
|
|
Q5. Which of the following is true?
|
a) If onKeyDown returns false, the key-press event is
cancelled.
|
b) If onKeyPress returns false, the key-down event is
cancelled.
|
c) If onKeyDown returns false, the key-up event is
cancelled.
|
d) If onKeyPress returns false, the key-up event is
canceled.
|
|
|
Q6. Scripting language are
|
a) High Level Programming language
|
b) Assembly Level programming language
|
c) Machine level programming language
|
|
|
Q7. Which best explains getSelection()?
|
a) Returns the VALUE of a selected OPTION.
|
b) Returns document.URL of the window in focus.
|
c) Returns the value of cursor-selected text
|
d) Returns the VALUE of a checked radio input.
|
|
|
Q8. <script language="javascript">
function x()
{
var s= "Good 100%";
var pattern = /\D/g;
var output= s.match(pattern);
document.write(output);
}
</script>
|
a) Good %
|
b) 1,0,0
|
c) G,o,o,d,%
|
d) Error
|
|
|
Q9. <script language="javascript">
var qpt="QUALITY POINT TECHNOLOGIES";
alert(qpt.charAt(qpt.length-1));
</script>
|
a) P
|
b) E
|
c) S
|
d) Error
|
|
|
Q10. Choose the client-side JavaScript object:
|
a) Database
|
b) Cursor
|
c) Client
|
d) FileUpLoad
|
|
|
Q11. Are java and javascript the same?
|
a) NO
|
b) YES
|
|
|
Q12. Syntax for creating a RegExp object:
(a). var txt=new RegExp(pattern,attributes);
(b). var txt=/pattern/attributes;
Which of the above mentioned syntax will correct?
|
a) (a) only
|
b) (b) only
|
c) Both (a) and (b)
|
d) None of the above
|
|
|
Q13. <script language="javascript">
function x(z,t)
{
alert(x.length);
}
</script>
output:
?
|
a) Error
|
b) 2
|
c) 1
|
d) 3
|
|
|
Q14. What is mean by "this" keyword in
javascript?
|
a) It refers current object
|
b) It referes previous object
|
c) It is variable which contains value
|
d) None of the above
|
|
|
Q15. In JavaScript, Window.prompt() method return true
or false value ?
|
a) False
|
b) True
|
c) None of above
|
|
|
Q16. Math. round(-20.51)=?
|
a) 20
|
b) -21
|
c) 19
|
d) None
|
|
|
Q17. <script language="javascript">
function x()
{
var s = "Quality 100%!{[!!";
var pattern = /\w/g;
var output = s.match(pattern);
document.write(output);
}
</script>
|
a) %,!,{,[,!,!
|
b) Q,u,a,l,i,t,y,1,0,0
|
c) Quality 100
|
d) Error
|
|
|
Q18. <script type="text/javascript"
language="javascript">
var qpt= new Array();
qpt[0] = "WebDevelopment";
qpt[1]="ApplicationDevelopment"
qpt[2]="Testing"
qpt[3] = "QualityPointTechnologies";
document.write(qpt[0,1,2,3]);
</script>
|
a) Error
|
b) QualityPointTechnologies
|
c) WebDevelopment
|
d)
WebDevelopmnet,ApplicationDevelopment,Testing,QualityPointTechnologies
|
|
|
Q.19 Choose the server-side JavaScript object:
|
a) FileUpLoad
|
b) Function
|
c) File
|
d) Date
|
|
|
Q.20) parseFloat(9+10)=?
|
a) 19
|
b) 910
|
c) None
|
|
|
(1) a
|
(2) c
|
(3) a
|
(4) a
|
(5) a
|
(6) a
|
(7) c
|
(8) c
|
(9) c
|
(10) d
|
(11) a
|
(12) c
|
(13) b
|
(14) a
|
(15) a
|
(16) b
|
(17) b
|
(18) b
|
(19) c
|
(20) c
|
|
Very helpful information..thanks for sharing it guys...
ReplyDeleteSEO Company in India
The post is very nicely written and it contains many useful facts. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement. Thanks for sharing with us.
ReplyDeleteWebsite development company in bangalore
Website Design and Development Company in Bangalore
ECommerce Web Design Company in bangalore
Outsource magento ecommerce services india