Business Information Analysis Revision Questions The exam is 3 hours and contains 7 questions, from which you must answer 4. Questions shown here are a good indication of the style and type of questions that will occur. 1. (a) Appendix A contains a screenshot of a web page on the top selling games or toys for Christmas. Write semantic XHTML to display the page. (15 Marks) (b) Appendix B contains a screenshot of the facilities and feature sets of two offers by a typical Internet Service Provider. Using diagrams and examples where appropriate, explain the terms listed in the screen shot along with the differences between the two choices. (10 Marks) 2. (a) The XHTML and Cascading Style Sheet (CSS) shown in Appendix C are combined to produce the web design shown. Using these examples, explain how block elements, inline elements and the box model are used to display this document in a web browser. (12 Marks) (b) The web page shown in Appendix C is stored on a web server in California. Using appropriate diagrams, write a detailed explanation of the sequence of events, protocols and standards that are used to retrieve and display this page in a browser window. (13 Marks) 1 3. The following tables model information about Books and Authors a) Write SQL statements to satisfy the following i. Show the ISBN and Title for all books ii. Show all the book information for books that cost more than £20 iii. Show the book title, author name and phone number for all authors iv. Show the average cost of the books (10 marks) b) What is a primary key? Your answer should include a primary key for each table. (4 marks) c) Define the terms: selection, projection, cartesian product and join. (6 marks) d) A new record is added to the Author table with AuID 5, AuName Smith and AuPhone 0207-678-5050. Describe the difference between the outcomes of the following two queries. select auname, isbn from author left join book on author.auid=book.auid select auname, isbn from author, book where author.auid=book.auid (5 marks) 2 4. (a) For each of the following data sets state whether it is nominal data, ordinal data, interval data or ratio data. i. ages of students on this module (1 mark) ii. the temperature in four cities at 1:00pm on 20 March 2015 (1 mark) iii. number of siblings of students on this module (1 mark) iv. Kingston University system passwords of students on this module (1 mark) v. position in family by age of each student on this module (1 mark) (b) For which of the data sets in question 4a can you calculate the mean value? (2 marks) (c) Describe the characteristics of a data set for which the mean, median and mode are equal. (3 marks) (d) Figure Q4 is a frequency distribution of the number of siblings of students on a Business School module. Number of Siblings 0 1 2 3 5 Figure Q4 Number of Students 8 36 27 7 2 You are required to further summarize this data. You need to produce i. the relative frequency distribution ii. the cumulative frequency distribution iii. the median of the data iv. the mean of the data v. the variance of the data (1 mark) (1 mark) (2 marks) (2 marks) (3 marks) (e) Answer the following questions about the data in figure Q4. i. What percentage of the students have more siblings than the mean value? (2 marks) ii. Does the data have any outliers? (2 marks) iii. Two students with 1 sibling join the module. How does this affect the mean and median values? (2 marks) 3 5. (a) A probability function P has a range of values between 0 and 1. i. ii. iii. What does a probability of 0 imply? (1 mark) Can two different events have the same probability? Illustrate your answer with an example. (2 marks) If P(A) = 0.5 and P(B) = 0.5 does this imply that P(A U B) = 1? Give reasons for your answer. (2 marks) (b) Let P(A) = 0.4 and P(B) = 0.5 be two mutually exclusive events. i. ii. iii. Evaluate P(Bc). Evaluate P(A U B). Evaluate P(A|B). Give reasons for your answer. (1 mark) (1 mark) (3 marks) (c) 200 students were interviewed regarding their use of social media and StudySpace. 120 of the students were female. The numbers of students who agreed with various statements are presented in figure Q5. Figure Q5 Use social media at least once a day Use StudySpace at least once a day Use social media and StudySpace at least once a day Male 64 50 44 Female 100 80 70 Using the data presented in figure Q5 answer the following questions. i. ii. iii. iv. v. What is the probability that a randomly selected student does not use social media at least once a day? (2 marks) What is the probability that a randomly selected student uses social media at least once a day given the student is female? (2 marks) What is the probability that a randomly selected student is male given the student uses StudySpace at least once a day? (2 marks) What is the probability that a randomly selected student does not use social media or StudySpace at least once a day? (3 marks) Are using social media at least once a day and being male statistically independent events? Give reasons for your answer. (3 marks) (d) If two events M and N are statistically independent can they also be mutually exclusive? Give reasons for your answer. (3 marks) 4 6. (a) i. Write down, in tabular form, a discrete probability distribution which presents the random variable numberOfDaysInAMonth and its associated probabilities. You must use the months of a non-leap year as the domain of the random variable. (3 marks) ii. Explain why the distribution presented in 6(a)i is a valid distribution. (2 marks) iii. Is the distribution presented in 6a(i) a Bernoulli distribution? Give reasons for your answer. (2 marks) (b) Which discrete probability distribution (or distributions if there is more than one) describes the probability of each value of the following random variables? Give reasons for your answer. Note that if you cannot assign a named distribution to a random variable, then you should describe the shape of the distribution. Each part of this question is worth equal marks. i. the number of heads after one toss of a coin ii. the number of heads after 5 tosses of a coin iii. the total number after 1 roll of a dice iv. the total number after 2 rolls of a dice (8 marks) (c) For the random variable described in question 6(b)ii what is i. the probability of 2 heads ii. the probability of at least 2 heads iii. the expected number of heads iv. the probability of at most 4 heads 5 (2 marks) (3 marks) (2 marks) (3 marks) 7. (a) What is the difference between a proposition and a predicate? Provide illustrative examples of each. (4 marks) (b) Which of the following propositional expressions is a tautology for any propositions A and B? A or B A and B B => B A and not A B or not B (2 marks) (c) Let the domain be the students on this module. Three predicates are defined as follows: E(m) represents m is eighteen years old F(x) represents x is born in February A(p, q) represents p is the same age as q. Translate each of the following predicate logic expressions into English and in each case state whether it is True or False. i. ii. iii. iv. v. ∀𝑛 𝐹(𝑛) ∃𝑥 (𝐹(𝑥) 𝑎𝑛𝑑 𝑛𝑜𝑡 𝐹(𝑥)) ∃𝑦 𝐹(𝑦) 𝑜𝑟 ∃𝑧 𝑛𝑜𝑡 𝐹(𝑧) ∀𝑛 ((𝐸(𝑛) 𝑎𝑛𝑑 𝐹(𝑛)) => 𝐹(𝑛)) ∃𝑚∀𝑛 (𝑛𝑜𝑡 𝐴(𝑚, 𝑛)) (15 marks) (d) Explain how a truth table may be used to confirm that a propositional logic expression is a tautology contradiction (4 marks) 6 APPENDIX A This screenshot is for Question 1. Screenshot Note that the link is to www.amazon.co.uk and that the included image is hosted in the same location as the web page, in a file called helicopter.jpg 7 Continued… APPENDIX B This screenshot is for Question 1 Screenshot Continued… 8 APPENDIX C This HTML Code, CSS Listing and screenshot are for Question 2 HTML Code <html> <head> <title>Browsers</title> <link rel="stylesheet" href="cssforexam.css" type="text/css" /> </head> <body> <h1>Web browsers</h1> <h2>What they do</h2> <p>Web browsers allow users to ask for, receive and display pages that have been formatted (typically) in a <a href="http://www.w3.org/MarkUp/">markup language</a> such as HTML.<img src="firefox.png" width="25%" /> HTTP is the protocol that enables the request and transmission of web pages between browser to server and is currently at version 1.1.</p> <h2>Common browsers</h2> <p>There are a number of browsers in use (from a variety of different sources). IE is currently at version 7 after many years of very little development. Both Firefox and Safari are open source projects, which means that both the source and executable code are widely available. Firefox and Safari have best support for web standards, supporting more of CSS 2 than IE.</p> <ul> <li>Microsofts Internet Explorer 7</li> <li>Mozillas Firefox</li> <li>Apples Safari</li> </ul> <p>There are other browsers as well (Opera, Konquerer).</p> </body> </html> CSS Listing body {border: solid; border-color: black; border-width:1pt; margin:15pt; padding:5pt; font-family: Arial, Helvetica, sans-serif } img { display: block; float: right; margin: 3pt;} li { display:inline; padding-left: 5pt; padding-right: 5pt; margin: 5pt; border-style: solid; border-width: 1pt; } h1 { display: block; float: right; padding: 10pt; margin: 10pt; border-width: 1pt; } h2 { border-bottom: solid; width: 40%; border-width: 1pt } Continued… 9 10