CS305-Web Systsem and Technology-Spring 2020-Mid Term Paper
CS305-Web Systsem and Technology-Spring 2020-Mid Term Paper
Q.No.1. Write down the code for an Iframe for the given scenario?
There will be two Iframes in a single webpage in top and bottom manner? Top
Iframe will have “Admission” and “Academics” links. These links will open in the
bottom Iframe? (2)
Q.No.2.Write down the code for a paragraph that can change color when we hover a
mouse on it using JavaScript? (2)
Q.No.3.Consider a HTML table with one row and one column only. Write down the
code of CSS that can change the color of top and bottom border to Red while left
and right border to green? (2)
Q.No.4.Why we use HSL color in HTML? Please write the equivalent color in RGB
and Hexadecimal of following HSL code:
hsl(9, 100%, 64%) (2)
Q.No.5.How Alpha affects the HTML color when using it with <DIV>? (2)
Q.No.7.Create a Java Script array for five (5) elements. Store ten <Div> elements in
to it with different background colors? Pop out these <Div> elements using a loop
on a web page? (3)
Q.No.8.Write down code for CSS property and value using Java Script object. You
can use any property and its value for CSS <DIV> structure. Please apply that object
on some <DIV> structure? (3)
Q.No.9.Write down code for simple calculator using Java Script that can add,
subtract, multiply and divide two numbers? Take the input from two HTML <input>
form elements? (3)
Q.No.10. var X;
var lastName = "Johnson 18";
var x = {firstName:"John", lastName:"Doe"};
Please mention the type of variable in front of each line of code? (3)