0% found this document useful (0 votes)
204 views

CS305-Web Systsem and Technology-Spring 2020-Mid Term Paper

The document contains a mid-term exam for a Web Systems and Technology course, with 10 multiple choice questions testing students' knowledge of HTML, CSS, and JavaScript. The questions cover topics like using iframes, manipulating HTML elements with JavaScript, applying CSS styles with JavaScript objects, and working with variables in JavaScript. Students are given 90 minutes to complete the 25 point exam.

Uploaded by

Athar Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
204 views

CS305-Web Systsem and Technology-Spring 2020-Mid Term Paper

The document contains a mid-term exam for a Web Systems and Technology course, with 10 multiple choice questions testing students' knowledge of HTML, CSS, and JavaScript. The questions cover topics like using iframes, manipulating HTML elements with JavaScript, applying CSS styles with JavaScript objects, and working with variables in JavaScript. Students are given 90 minutes to complete the 25 point exam.

Uploaded by

Athar Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

University of Gujrat

H afiz Hay at / Ma rg h za r Mo rning Ca mpu s

Department of Computer Science

CS-305 - Web System & Technology

Mid-Term Exam (Spring 2020)

Total Marks: 25 Time Allowed: 90 Minutes

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.6.Why CSS Box Model is Important? Please provide an example of it that


clearly depicts its usefulness? (3)

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)

You might also like