JavaScript Practical & Ecommerce Quiz By Prof. Abhijeetsinh Jadeja

25 Questions | Total Attempts: 288

SettingsSettingsSettings
Please wait...
JavaScript Quizzes & Trivia

It is exploring about some practical concept of javascript and some of the topic of E-commerce. . . . Best of luck by Prof. Abhijeetsinh Jadeja ( KSV university , Gandhinagar , Gujarat )


Questions and Answers
  • 1. 
    var value = Math.pow(0, 10); document.write("<br />Fourth Test Value : " + value ); Type question here
    • A. 

      Fourth Test Value : 0

    • B. 

      Fourth Test Value : 1

    • C. 

      Fourth Test Value : 10

    • D. 

      None of above

  • 2. 
    var value = Math.min(100); document.write("<br />Fourth Test Value : " + value ); 
    • A. 

      Fourth Test Value : 100

    • B. 

      Fourth Test Value : 1

    • C. 

      Fourth Test Value : 0

    • D. 

      None of above

  • 3. 
    var value = Math.ceil(-45.95); document.write("<br />Third Test Value : " + value );
    • A. 

      Third Test Value : -46

    • B. 

      Third Test Value : -45

    • C. 

      Third Test Value : -44

    • D. 

      None of above

  • 4. 
    <html> <head> <title>JavaScript String indexOf() Method</title> </head> <body> <script type="text/javascript"> var str1 = new String( "This is string one" ); var index = str1.indexOf( "string" ); document.write("indexOf found String :" + index );
    • A. 

      IndexOf found String :15

    • B. 

      IndexOf found String :8

    • C. 

      IndexOf found String :11

    • D. 

      None of above

  • 5. 
    <html> <head> <title>JavaScript String charCodeAt() Method</title> </head> <body> <script type="text/javascript"> var str = new String( "This is string" ); document.write("str.charCodeAt(0) is:" + str.charCodeAt(0)); document.write("<br />str.charCodeAt(1) is:" + str.charCodeAt(1)); </script> </body> </html>
    • A. 

      Str.charCodeAt(0) is:84

    • B. 

      Str.charCodeAt(0) is: 91

    • C. 

      Str.charCodeAt(0) is:104

    • D. 

      Str.charCodeAt(0) is:110

    • E. 

      Str.charCodeAt(0) is:93

    • F. 

      Str.charCodeAt(0) is:90

  • 6. 
    <html> <head> <title>JavaScript String charAt() Method</title> </head> <body> <script type="text/javascript">    var str = new String( "This is string" );    document.writeln("str.charAt(0) is:" + str.charAt(0));    document.writeln("<br />str.charAt(1) is:" + str.charAt(1));
    • A. 

      Str.charAt(0) is:T

    • B. 

      Str.charAt(0) is:i

    • C. 

      Str.charAt(1) is:h

    • D. 

      Str.charAt(1) is:s

  • 7. 
    <script> eval("x=10;y=20; document.write(x*y)");
    • A. 

      200

    • B. 

      20

    • C. 

      10

    • D. 

      None of above

  • 8. 
    <script> document.write("<br>" + eval("2+2"));
    • A. 

      2

    • B. 

      4

    • C. 

      2+2

    • D. 

      None of above

  • 9. 
    <script> var x=10; document.write("<br>" + eval(x+17));
    • A. 

      17

    • B. 

      X+17

    • C. 

      27

    • D. 

      None of abve

  • 10. 
    <script type="text/javascript"> var username = "someAgent"; if(username == "SomeAgent")                document.write("Welcome special agent"); else        document.write("Access Denied!");               
    • A. 

      Error

    • B. 

      Welcome special agent

    • C. 

      Access Denied!

    • D. 

      None of above

  • 11. 
    <script type="text/javascript"> var username = "someAgent"; if(username == "SomeAgent")                document.write("Welcome special agent"); else                document.write("Access Denied!"); for getting output"Welcome special agent" can we use .toUpperCase () or .toLowerCase () ??
    • A. 

      True

    • B. 

      False

  • 12. 
    <script type="text/javascript"> var aURL = "http://www.tizag.com/www.html"; var aPosition = aURL.indexOf("www");   document.write("The position of www  =  " + aPosition);
    • A. 

      The position of www = 7

    • B. 

      The position of www = 8

    • C. 

      The position of www = 6

    • D. 

      None of above

  • 13. 
    <script type="text/javascript"> var visitorName = "Chuck"; var myOldString = "Hello username! I hope you enjoy your stay username."; var myNewString = myOldString.replace(/username/g, visitorName);   document.write("<br />New string = " + myNewString);
  • 14. 
    <script type="text/javascript"> var myRegExp = /Alex|John/; var string1 = "Today John went to the store and talked with Alex."; var matchPos1 = string1.search(myRegExp);   if(matchPos1 != -1)                document.write("There was a match at position " + matchPos1); else                document.write("There was no match in the first string");
    • A. 

      There was no match in the first string

    • B. 

      There was a match at position 6

    • C. 

      There was a match at position 7

    • D. 

      None of above

  • 15. 
    Following are the example of E-governance
    • A. 

      C2G

    • B. 

      B2B

    • C. 

      B2G

    • D. 

      C2C

  • 16. 
    Www.olx.in is example of 
    • A. 

      B2G

    • B. 

      B2B

    • C. 

      C2C

    • D. 

      B2C

  • 17. 
    In Traditional commerce consumer can get world level choice of product ?
    • A. 

      True

    • B. 

      False

  • 18. 
    In which firewall setting needs maximum as well as more server required 
  • 19. 
    In market hierarchy model what are the major risk 
    • A. 

      Intermediators

    • B. 

      Transportation cost

    • C. 

      Custoers

    • D. 

      Raw material & suppliers

    • E. 

      High investment behind an industry

    • F. 

      Shop

  • 20. 
    EDI stands for 
    • A. 

      Electronic Date Interchange

    • B. 

      Electronic Disk Inetraction

    • C. 

      Electronic Date Interaction

    • D. 

      Electronic Damage Interuapption

  • 21. 
    Check the example of Database EDI in E-commerce
    • A. 

      User login

    • B. 

      Receive E-mail

    • C. 

      Produce out of order

    • D. 

      Debit card number

    • E. 

      Our shipping address

  • 22. 
    Select the product which is suitable for Traditional Business form
    • A. 

      Vegitable

    • B. 

      Belt

    • C. 

      Branded shoes

    • D. 

      Gold

    • E. 

      Petrol

    • F. 

      Branded camera