OLevel M2R5 Practical Questions

OLevel M2R5 Practical Questions 

Hello Student welcome in careersknowlege.in.In this blog you will learn 3 OLevel M2R5 Practical Questions in details.

Question 1- Write a HTML code to divide browser window into two horizontal frames and play different video in each frame.
Ans-

main.html Coding

<html>
<frameset rows=”*,*”>
<frame src=”TopSection.html”>
<frame src=”Bottom.html”>
</frameset>
</html>

TopSection.html Coding

<html>
<body bgcolor=”pink”>
<h1>Video1</h1>
<video src=”pract5.mp4″ width=”400″ height=”200″ preload controls loop> </video>
</body>
</html>

Bottom.html coding

<html>
<body bgcolor=”Gray”>
<h1>Video2 </h1>
<video src=”pract4.mp4″ width=”400″ height=”200″ preload controls loop> </video>
</body>
</html>                                                                                                     OUTPUT SCREEN




Question 2- Using JavaScript create an html page for accepting the values of two numeric variables sa N1 and N2 and to display the result of following arithmetic calculator.
1. N1+N2=
2. N1-N2=
3. N1*N2=
4. N1/N2=

Ans

calculator.html Coding

<html>
<head>
<script>
var N1,N2,res,temp;
function fun()
{
N1=parseInt(document.getElementById(“one”).value);
N2=parseInt(document.getElementById(“two”).value);
if(N1 && N2)
{
res=N1+N2;
document.getElementById(“add”).value=res;
res=N1-N2;
document.getElementById(“subtract”).value=res;
res=N1*N2;
document.getElementById(“multiply”).value=res;
res=N1/N2;
document.getElementById(“divide”).value = res;
}
}
</script>
</head>
<body>
<p id=”input”>Enter First Number(N1):
<input id=”one”>
<br/><br/>
Enter Second Number(N2): <input id=”two”></p>
<p><button onclick=”fun()”>Add, Subtract, Multiply, Divide</button></p>
<br><br><hr>
<h1>Arithmetic Calculator</h1>
<table cellspacing=”20″>
<tr><td>1.</td><td>
N1+N2=<input id=”add”></td><td>3.</td><td>N1*N2=
<input id=”multiply”></td></tr>
<tr><td>2.</td><td>
N1-N2=<input id=”subtract”></td><td>4.</td><td>
N1/N2=<input id=”divide”></td></tr>
</table>
</body>
</html>                                                                                                         OUTPUT SCREEN

OLevel M2R5 Practical Questions

Questions 3- Create a web page, divide the web page into four frame. In one frame create three links.

Answer

Frame.html

<html>
<head>
<title>HTML Frames</title>
</head>
<frameset rows=”30%, 40%, 30%”>
<frame name=”top” src=”Frame1.html”>

<frameset cols=”50%, 50%”>
<frame name=”left” src=”Frame2.html”>
<frame name=”Right” src=”Frame3.html”>
</frameset>

<frame name=”bottom” src=”Frame4.html”>
</frameset>
<noframes>
<body> Your browser does not support frame </body>
</noframes>
</frameset>
</html>

Frame1.html Coding

<html>
<body bgcolor=”orange”>
<h1 align=”center”>Frame 1</h1>
</body>
</html>

Frame2.html Coding

<html>
<body bgcolor=”gray”>
<h1 align=”center”>Frame2</h1>
<a href=”ALEVEL.html”>A LEVEL</a><br>
<a href=”OLEVEL.html”>0 LEVEL</a><br>
<a href=”CCC.html”>ccc</a>
</body>
</html>

Frame3.html Coding

<html>
<body bgcolor=”gray”>
<h1 align=”center”>Frame 3</h1>
</body>
</html>

Frame4.html Coding

<html>
<body bgcolor=”yellow”>
<h1 align=”center”>Frame 4</h1>
</body>
</html>

 



Thanks For Reading the Artical. if want to watch full Video Class Click on the below link

 

Also Check the below link

OLevel It Tools Practical Question

Join On    Youtube

 

1 thought on “OLevel M2R5 Practical Questions”

  1. I am glad i got to find your THIS site. I have been examining out a few of your articles and its pretty stuff to read. I will surely bookmark your blog to make sure I could get an up to date post. You can find more info here 🙂
    regards

    Reply

Leave a Comment