Tag: BIM 3rd sem
web 2015 Solution || BIM STUDY NOTES
year 2015 Q.no 11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<html> <head> <style> table{ border:1px solid black; border-collapse:collapse; </style> </head> <body> <table border="width: 50%"> <tr> <th>Actor</th> <th>Movies</th> </tr> <tr> <td rowspan="3">Tom Hanks</td> <td>Forest Camp</td> </tr> <tr> <td>Green Mile</td> </tr> <tr> <td>Philadephia</td> </tr> </table> </body> </html> |
Q.no 13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<html> <head> <title>javascript</title> <script language="javascript"> function addNumbers () { var vall = parseInt(document.getElementById("value1").value); var val2 = parseInt(document.getElementById("value2").value); var ansD = document.getElementById("answer"); ansD.value = vall + val2; } </script> </head> <body> valuel = <input type="text" id="valuel" name="value"/><br/> value2 = <input type="text" id="value2" name="value2"/><br/> <input type="button" name="Submit" value="Click here" onclick="javascript:addNumbers()"/><br/> Answer = <input type="text" id="answer" name="answer" value=""/> </body></html> |
Continue Reading
Web 2016 Old paper Solutions
2016 Old paper Q.no 12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
javascript function that checks password and retyped password of two different password fields are same or not. <html> <head> <title>web</title> <script type="text/javascript"> function validate(){ var mypwd=document.myform.pwd.value; var myrpwd=document.myform.rpwd.value; if(mypwd !=myrpwd) { alert("password doesn't match"); return false; } else{ alert("okay"); return true; } } </script> </head> <body> <form name="myform"> <fieldset> <legend>Confirm Password</legend> <label> Password: <input type="password" name="pwd"></label> <label> Retype-Password: <input type="password" name="rpwd"></label><button onclick="return validate();">Confirm</button> </fieldset> </form> </body> </html> |
14.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Write a JavaScript code to check if a number given by user is prime or not. <html><head> <title>Prime check</title> <script type="text/Javascript"> var a=prompt ("Enter a num: "); var i, flag1=0; for(i=2; i<a/2;i++) { if(a i==0) { flag1=1; break; } } if(flag1==0) { document.write (a+" is a a prime number"); } else { document.write (a+" is not a prime number"); 0} </script> </head> <body> </body> </html> |
Q.no 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Q.no 15 <head> <title>Form</title> </head> <link rel="stylesheet" type="text/css" href="div.css"> </head><body> <div id="a"> a</div> <div id="b"> b</div> <div id="c"> c</div> <div id="d">d</div> <body> </body> </html> #a{ width:100px; height:100px; background-color:red; position:relative; #b{ width:100px; height:100px; background-color:green; position:relative;right:-100px; top:-100px; #c{ width:100px; height:100px; background-color: white; position:relative;right: 0px;top:-100px; #d{ width:100px; height:100px; background-color: blue; position:relative;right:-100px;top:-200px; div { border-style:solid; border-width:0.05px } |
Web 2017 Old paper Solutions || BIM STUDY NOTES
Year 2017 checkout question in question paper section. //Q.no 11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
<html> <head> <style> table { border:1px solid black; border-collapse:collapse; } </style> </head> <body> <table border="width:50%"> <tr> <th colspan="2">Subject</th> <th> John Doe</th> <th>Mirim Luther</th> </tr> <td rowspan="2"><b>Biology</b></td> <td><b>Practical</b></td> <td> A</td> <td>A</td> </tr> <tr> <td><b> Theory</b></td> <td>A+</td> <td> A</td> </tr> <tr> <td rowspan="2"><b>Chemistry</b></td> <td><b>Practical</b></td> <td>B</td> <td>C</td> </tr> <tr> <td><b>Theory</b></td> <td>A</td> <td>C+</td> </tr> <tr> <td rowspan="2"><b>Physics</b></td> <td><b>Practicals</b></td> <td>A </td> <td>A</td> </tr> <tr> <td><b> Theory</b></td> <td>A-</td> <td>A-</td> </tr> </table> </body> </html> |
Q.no 12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<html> <head> <title>Divs</title> <style type="text/css"> .main{border:2px solid black; height:500px;width:1000px;} .fr{height:100px;width:1000px;border-bottom:2px solid black;} .fr1{height:100px;width:800px;border-right:2px solid black;float:left;} .fr2{height:100px;width:200px;float:right;} .sr{height:300px;width:1000px;border-bottom:2px solid black;} .sr1{height:300px;width:200px;border-right:2px solid black;float:left;} .sr2{height:300px;width:800px;float:right;} .tr{height:100px;width:1000px;} </style> </head> <body> <div class="main"> <div class="fr"> <div class="fr1"></div> <div class="fr2"></div> </div> <div class="sr"> <div class="sr1"></div> <div class="sr2"></div> </div> <div class="tr"></div> </div> </body> </html> |
Q.no 13 Write a JavaScript function that takes two strings as arguments and checks them for equality. If both the strings are equal then display the first string in uppercase else return “the two strings do not match”.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<html> <head> <title>String 4</title> </head> <body> <script type="text/Javascript" str1=new String("BIM Study Notes"); var a1=str1.length; str2=new String("BIM Study Notes"); var a2=str2.length; var i; var count=0; for(i=0;i<=a1;i++) { if(str1.charAt(i)!=str2.charAt(i)) { count++; break; } } if(count==0) { document.write("<br>Uppercase is: "+str1.toUpperCase()); } else document.write("<br>They are not equal"); </script> </body> </html> |
Q.no […]
Continue Reading