Const int SETSIZE = 30;



????? ????????? Philadelphia University ??? ???????: Paper Examination QFO-AP-FI-QA07????? ???????: ???? ????????? ????????? ??? ??????? :Revision) ) 1????? ???????: ????? ??????? ??????? ??? ????? ???????: 1 Lecturer: Dr. Samer Odeh Hanna Internal Examiner: Dr. Mohammad Taye First Semester of academic year: 2019-2020 Department of Software EngineeringCourse Name: Web Engineering 0721422 Date: 26th of January 2020Time: 2 hours Final ExamQ1. (10) marksChoose the most correct answer:Please answer here1. C2. D3. A4. B5. D6. A7. C8. B9. C10. BHTML usesUser defined tagsTags only for linkingFixed tags defined by the languageAll of the aboveWhat tag is used to display a picture in a HTML page?pictureimagesrcimgHTML web pages can be read and rendered by _________.Web BrowserCompilerServerInterpreterClient or browser side validation for a Web application is More secure than server-side validationFaster than server-side validationA and BNone of the above. To write client-side validation in Web applications we useXML SchemaCSSC#JavaScript???_________ keyword is used to declare variables in JavaScript.vardimStringNone of the above?Which HTML tag is used to define an internal style sheet?<script><css><style>None of theseWhere in an HTML document is the correct place to refer to an external style sheet?At the end of the documentIn the <head> sectionIn the <body> sectionAll of the aboveWhat is the correct JavaScript syntax to change the content of the HTML element below?<p id="demo">Change me please</p>#demo.innerHTML = "Hello World!";document.getElement("p").innerHTML = "Hello World!";document.getElementById("demo").innerHTML = "Hello World!";document.getElementByName("p").innerHTML = "Hello World!";How can you add a comment in a JavaScript?'This is a comment//This is a comment<!--This is a comment-->None of the aboveQ3. (8) marks Suppose that a Web page in HTML has the following user inputs:User name, email, birth date, password, repeat password.Write the following validations using validation controlsValidation to make sure that the user name is not empty.<asp:TextBox id = “txtName” runat=”server” /><asp:RequiredFieldValidator id=”rfvName” ControlToValidate=”txtName” ForColor=”Red”ErrorMessage = “You must insert your name”runat=”server”> </asp:RequiredFieldValidator>Validation to make sure that the two passwords are equal<asp:CompareValidator id =”cvPass” runat=”server” ControlToValidate = “txtPass1” ControlToCompare = “txtPass2” ErrorMessage = “the two passwords must be equal” ForColor=”Red” Operator = “Equal”></asp:CompareValidator>Validation to make sure that the user age is more than 16 years.<asp:RangeValidator id=”rvAge” runat = “server” ControlToValidate= “ txtAge” MinimumValue = “16” MaximumValue=”120” Type=”Integer” ForColor = “Red> </asp:RangeValidator>Validation to make sure that the inserted email ends with “.com” and includes “@” symbol.<asp:RegularExpressionValidator ID="revEmail" runat="server" ErrorMessage="Invalid email" ControlToValidate="txtEmail" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ></asp:RegularExpressionValidator>Q4. (6) marksSuppose that we want to build a Web application for a money exchange company; this application must contain two columns; the left column contains a table that contains different currencies with their convert ration while the right column contains the following inputs that is needed to make a transaction by a customer:Customer nameRequired currency Amount in Jordan Dinar (JD) the customer wants to exchangeTransaction dateWrite the needed HTML for this page. (4 marks)Write the needed CSS for this page. (2 marks)Q5. (4) marksIn Q4, add the following validationsJavaScript based validation to make sure that the amount in Jordan Dinar (JD) inserted by a customer is between 1 and 100,000. (2 marks)function validate ( ){ var amount = document.getElementById(“txtAmount”).value; if ((amount < 1) | | (amount>100000)) alert (“invalid amount”);}C# based validation to make sure that a customer name length is between 2 and 40 characters. (2 marks)if ((txtName.Text.Length<2) | | (txtName.Text.Length>40)) Response.Write(“invalid number of characters in customer name”); ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download