Professional Documents
Culture Documents
Mid2 - 2018 PDF
Mid2 - 2018 PDF
Instructions ﺗﻌﻠﯿﻤﺎت
This exam consists 4 questions on 6 pages 6 اﺳﺌﻠﺔ ﻣﻮزﻋﺔ ﻋﻠﻰ4 ھﺬا اﻻﻣﺘﺤﺎن ﻣﺆﻟﻒ ﻣﻦ
All questions should be answered on the same ﺻﻔﺤﺎت
sheets
ﺟﺎوب ﻋﻠﻰ ﺟﻤﯿﻊ اﻷﺳﺌﻠﺔ ﻋﻠﻰ ﻧﻔﺲ اﻻوراق
Electronic devices that could have a memory
is not allowed ﯾﻤﻨﻊ اﺳﺘﻌﻤﺎل اﻻﺟﮭﺰة اﻻﻟﻜﺘﺮوﻧﯿﺔ اﻟﺘﻲ ﺗﺤﺘﻮي ﻋﻠﻰ
Traditional calculator is allowed ذاﻛﺮة
Examination rules must be adhered to. ﯾﻤﻨﻊ اﺳﺘﻌﻤﺎل اﻻﻟﺔ اﻟﺤﺎﺳﺒﺔ
Books or other related materials are NOT .ﯾﺠﺐ اﻻﻟﺘﺰام ﺑﺠﻤﯿﻊ ﻗﻮاﻧﯿﻦ وﻟﻮاﺋﺢ اﻻﻣﺘﺤﺎﻧﺎت
ﻻ ﯾﺴﻤﺢ ﺑﺎﻟﻜﺘﺐ أو اﻟﻤﻮاد ذات اﻟﺼﻠﺔ داﺧﻞ ﻏﺮﻓﺔ
allowed اﻻﻣﺘﺤﺎن
Exam Score =
Exam Score in words:
2. Which of the following configures a 1 pixel, solid black border for an element?
A. border-all: #000000;
B. border: 1px solid #000000;
C. border-style: 1px solid #000000;
D. border-top: 1px solid #000000;
3.The _______ is the area between the content and the border.
A. border
B. spacing
C. padding
D. margin
4.When configuring the background color of an element, the background color is applied to both the content
and ______ areas.
A. border
B. padding
C. margin
D. extra
5. The purpose of the ________ element is used for section of navigation of a web page.
A. header
B. nav
C. main
D. content
6. Select an advantage of displaying HTML5 video in a web page from the list below:
A. You need to create multiple video files in different formats.
B. No browser plug-in or player is needed.
C. All browsers play all video formats.
D. All of the above are advantages.
11. Which of the following PHP statements will output Hello World on the screen?
A. echo (“Hello World”);
B. println (“Hello World”);
C. scanf(“Hello World”);
D. sprintln(%s,”Hello World”);
Output: (figure 1 – b)
The name of the day with the use of the method write as shown in the following table.
1 Sunday
2 Monday
3 Tuesday
4 Wednesday
5 Thursday
6 Friday
7 Saturday
N not between 1 and 7 Invalid Weekday
<script type="text/javascript">
var N=prompt("Enter a number between 1 and 7"); (0.5 marks)
Figure 2
<?php
$EvenCounter++;0.5 marks
else
}
echo "<br>Number of Odd Elements ="; 0.25 marks
?>
Page 5 of 6 CS2301 – Web Applications Programming – Second Exam Semester 2 - 1438-39H
Q4: HTML5 program (1 marks)
Write a complete HTML5 code to display the following video as shown in the figure 3. The video source
named movie.mp4 with height="240" width="320". A massage “Your browser does not support the video
tag” will appear if the browser cannot support video.
Figure 3
<html>
<head>
</head>
<body>
Your browser does not support the video tag 0.25 marks
</video>
</body>
</html>