: 2013 2014 2014


: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

  1. a) Let A = {a, b, c} and B = {1, 2, 3, 4}. Determine whether each of the following is TRUE or FALSE:
  2. b) (124 mod 6 = 4) → (5 | 16). c) , domain is the set of integers.
  3. Q−2: [51 marks] Determine whether each of the following is TRUE or FALSE:
  4. b) Using the truth table, determine whether or not the proposition is a tautology.
  5. a) Find a proposition using only and the connective ˅ with the following truth table:
  6. M131: Discrete Mathematics
  7. c) Show that the first three column vectors are linearly independent. Explain.
  8. b) Determine whether the fourth column vector forms a linear combination with the first three column vectors.
  9. a) Find a matrix B that is row equivalent to A.
  10. Q−6:[2+1+1 marks]Consider a linear system whose augmented matrix is of the form: . For what values of a and b will the system have: a) No Solution; b) A unique solution; c) Infinitely many solutions.
  11. Q−6:[2+1+1 marks]Consider a linear system whose augmented matrix is of the form:
  12. c) Find the matrix B such that .
  13. b) Find a matrix C such that .
  14. a) Write the linear system in matrix form .
  15. Q−5:[1 + 2 + 2 marks]. Consider the linear system: .
  16. b) Solve the system by applying the Gaussian elimination method.
  17. a) Write the augmented matrix for the system.
  18. Q−3:[1+4 marks]Consider the linear system:
  19. c) Compute |-2A.AT.A-1|
  20. a) Write the coefficient matrix A of the system
  21. Q−2: [1+3+2 marks]For the system:
  22. e) The vectors form a linear combination with .
  23. d) The vectors are linearly independent.
  24. c) If AB = 0, thenA = B = 0.
  25. b) If (c1 , c2) is a solution of the 2 x 2 system , then, for any real number k, the ordered pair (kc1 , kc2) is a solution.
  26. a) If m1 ≠m2 in the system , where m1 , m2 , b1 , and b2 are constants, then the system has a unique solution.
  27. M132: Linear algebra
  28. e) Estimate the population in the year 2020.
  29. d) What was the population in 1960?
  30. c) What is the growth constant?
  31. b) What was the initial population (the population in 1950) ?
  32. a) Find the formula for P(t).
  33. Q−8: [51 Marks] Let P(t) be the population (in millions) of a certain city t years after 1950, and suppose that P(t) satisfies the differential equation P′(t) = 0.017 P(t), P(0)= 2560
  34. b) Use the logarithmic differentiation to differentiate the function
  35. a) Differentiate the function
  36. A window is being built and the bottom is a rectangle and the top is a semicircle. If there is 12 m of framing materials what must the dimensions of the window be to let in the most light
  37. e) Find the points of inflection, if any.
  38. d) Find the intervals on which the graph of f (x) is concave up or concave down.
  39. c) Find the local maximum and minimum of f (x), if any.
  40. b) Find the intervals on which f (x) is increasing or decreasing.
  41. Q−4: [2+3 Marks] Use the definition of the derivative to find f ′(x) if
  42. Use the definition of the derivative to find f ′(x) if
  43. Find the slope of the tangent line to the following curves at the designated points
  44. c) Describe the domains of f (x) and g(x).
  45. b) Find g (f (x)), and describe its domain
  46. a) Find f (g(x)) and describe its domain.
  47. Q−2: [2+2+1 Marks] Let .
  48. b) Find the points of intersection, if any, of the graphs of y = f (x) and y = -4 .
  49. a) Find the zeros of g(x) and h(x).
  50. Q−1: [4+1 Marks] let
  51. Find the probability of accident rain or no rain.
  52. Suppose that city records produced the following probability data on a driver being an accident on the last day of a Memorial Day Weekend
  53. A committee of 3 juniors and 3 seniors is to be formed from the members of a club having 18 juniors and 15 seniors. How many different committees are possible?
  54. How many permutations are there of the letters in the word BANANA?
  55. You are considering 10 different colleges. Before you decide to apply to the colleges, you want to visit some or all of them. In how many orders you can visit:
  56. Why might the range be an unhelpful measure of spread for these particular data?
  57. a) Find the range of the earnings.
  58. Calculate the standard deviation of the earnings.
  59. Calculate the lower and upper quartiles, and find the inter-quartile range.
  60. Calculate the mean, median and mode.
  61. Below are the earnings, for a particular week, of 15 staff (including the owner) working in a small business
  62. e) Find the cumulative distribution function.
  63. d) Find the mean and standard deviation.
  64. The density function for a random variable X is given by where k is a constant
  65. Q-6: [2+2+2+3+3Marks] The density function for a random variable X is given by where k is a constant
  66. e) Calculate the variance and standard deviation of the random variable X.
  67. d) Find the mean of the random variable X.
  68. b) Find the probability distribution and the cumulative distribution of the random variable X.
  69. a) List the possible elements of the sample space S for the three tosses of the coin and to each sample point assign a value x of X.
  70. Q-5: A coin is tossed three times. Let X be a random variable representing the number of heads in three tosses of a coin. The coin is unbalanced and a head has a 60% chance of occurrence.
  71. Q-5: [2+2+3+2+3Marks] A coin is tossed three times. Let X be a random variable representing the number of heads in three tosses of a coin. The coin is unbalanced and a head has a 60% chance of occurrence.
  72. d) If the product is not defective, what is the probability that it was made by machine ?
  73. c) If the product is defective, what is the probability it was made by machine ?
  74. b) What is the probability that it is not defective
  75. a) What is the probability that it is defective
  76. A manufacturer has 3 machines , make 20%, 30% and 50%, respectively, of the products. It is known from past experience that 2%, 3% and 4% of the products made by each machine respectively are defective. If a finished product is randomly selected
  77. Q-4: [2+2+3+3Marks] A manufacturer has 3 machines , make 20%, 30% and 50%, respectively, of the products. It is known from past experience that 2%, 3% and 4% of the products made by each machine respectively are defective. If a finished product is ra
  78. d) Find the probability of an accident, given rain.
  79. c) Find the probability of an accident and rain.
  80. b) Find the probability of rain, accident or no accident.
  81. a) Find the probability of accident rain or no rain.
  82. Accident (A) No accident (A) Total Rain (R) 0.025 0.335 0.360 No rain (R) 0.015 0.625 0.640 Total 0.040 0.960 1.00
  83. Q-3: [3+3+1+3Marks] Suppose that city records produced the following probability data on a driver being an accident on the last day of a Memorial Day Weekend.
  84. c) A committee of 3 juniors and 3 seniors is to be formed from the members of a club having 18 juniors and 15 seniors. How many different committees are possible?
  85. b) How many permutations are there of the letters in the word BANANA?
  86. i- 6 of the colleges ii- All ten colleges
  87. a) You are considering 10 different colleges. Before you decide to apply to the colleges, you want to visit some or all of them. In how many orders you can visit:
  88. e) Why might the range be an unhelpful measure of spread for these particular data?
  89. c) Calculate the standard deviation of the earnings.
  90. Calculate the lower and upper quartiles, and find the inter-quartile range.
  91. a) Calculate the mean, median and mode.
  92. Weekly earnings () 280 370 305 285 480 1,260 210 340 280 290 315 325 370 360 280
  93. Q−1: [2+3+3+1+1 Marks] Below are the earnings, for a particular week, of 15 staff (including the owner) working in a small business:
  94. Below are the earnings, for a particular week, of 15 staff (including the owner) working in a small business
  95. Microcontroller A: - The clock speed of the processor is 33.554432 MHz - 25-bit counter/timer. - 1024 bytes RAM. - 256 bytes non-volatile, read-write memory. - Watchdog timer
  96. Microcontroller B: - The clock speed of the processor is 131.072 KHz - 18-bit counter/timer. - 512 bytes RAM. - 128 bytes non-volatile, read-write memory. - Watchdog timer
  97. Which microcontroller would you choose from the above two if you need to generate clock pulse every 2 seconds? (Give reasons).
  98. Microcontroller A: - The clock speed of the processor is 33.554432 MHz - 25-bit counter/timer. - 1024 bytes RAM. - 256 bytes non-volatile, read-write memory. - Watchdog timer Microcontroller B: - The clock speed of the processor is 131.072 KHz - 18-b
  99. (ii) State if 2s complement overflow has occurred. Justify your answer.
  100. (i) Add these two numbers in binary. Show the carry bits in your working.
  101. (b) The following two 8-bit binary code words both represent 2s complement integers: 0101 1010 0110 1111
  102. (b) The following two 8-bit binary code words both represent 2s complement integers:
  103. (ii) Work out what this code word represents if it is instead the code for a signed integer using 2s complement representation. Show your work.
  104. (i) Write down what this code word represents if it is the code for a text character using 7-bit ASCII code with a zero inserted in the leftmost position. (2 marks)
  105. (a) This part relates to the 8-bit binary code word 0101 0001
  106. e. What does the loop do? Do not give a description on an instruction-by- instruction level; give the overall task of the loop in brief
  107. d. Why is the following instruction: add immediate rB 0000 used?
  108. c. The loop reads successive data items from a block of locations in data memory. What are the lowest and highest addresses (in hexadecimal) of the locations in this block?
  109. b. How many times in total will the set of instructions within the loop be executed?
  110. a. The subroutine includes a loop. Which register is being used as the loop counter?
  111. load immediate r1 0000 load immediate r3 0012 load immediate rA 0500 load register-indirect via rA rB add immediate rB 0000 jump if zero relative 0001 jump relative 0001 add immediate r1 0001 add immediate rA 0001 subtract immediate r3 0001 jump if z
  112. In this question, all numbers are in hexadecimal. This part of the question refers to the following subroutine for the T224 simulated processor:
  113. This question carries 25% of the assignment marks. It enables you to demonstrate your mastery of Learning Outcomes 4, 5, 10, 13 and 19 of Block 2.
  114. The processor needs to find out whether the patient has pressed a button to change the desired temperature. It does this examining the state of the two buttons. If one has been pressed, the stored value for the desired temperature is changed appropri
  115. Draw a flowchart for this part of the total task, assuming that a button will not have been pressed more than once
  116. b. The processor needs to find out whether the patient has pressed a button to change the desired temperature. It does this examining the state of the two buttons. If one has been pressed, the stored value for the desired temperature is changed appro
  117. Draw the flowchart that corresponds to the above list using appropriate shapes for the boxes and drawing appropriate linking lines. Note that the flowchart includes at least one loop.
  118. - Input actual temperature.
  119. - Output the valve settings.
  120. - Does actual temperature equal desired temperature?
  121. The new desired temperature will be shown on the display. - The processor in the computer will compare the temperature inside the lounge with the desired temperature
  122. - Switch fan off.
  123. - Switch fan on.
  124. and if they are not the same it will switch on a fan to supply air of an appropriate temperature to the interior of the lounge. The processor controls the temperature of this air supply by setting a valve to a hot air supply and a valve to a cool air
  125. - Workout the valve settings.
  126. a. The processors task in this climate-control system includes the following items:
  127. a. The processors task in this climate-control system includes the following items: - Workout the valve settings. - Switch fan on. - Switch fan off. - Does actual temperature equal desired temperature? - Output the valve settings. - Input actual te
  128. The processor controls the temperature of this air supply by setting a valve to a hot air supply and a valve to a cool air supply appropriately. Each of these valves has a number of settings, ranging from fully shut to fully open.
  129. button labeled UP will cause the desired temperature to increase by 1C and pressing the button labeled DOWN will cause the desired temperature to decrease by 1C
  130. The desired temperature will be factory pre-set to 25 C. The patient will be able to change this temperature by means of two buttons. Pressing the button labeled UP will cause the desired temperature to increase by 1C and pressing the button labele
  131. - There will be a small display to show the desired temperature. It will consist of two 7-segment displays showing the digits, plus a pre-set display showing the C.
  132. Some lounges in medical centers incorporate climate control, whereby a computer is used to maintain the temperature inside the lounge at a setting chosen by the patient. The climate control will be computer-controlled and will operate as follows
  133. T224: Computers and Processors
  134. :Apple iPhone 5S/5C+Apple iPad Air - Silver - 32GB
  135. 1. What is the function of the following: a. Control Unit. b. Main Memory. c. Compiler.
  136. Consider an image of size 1000 X 720 pixels which requires 2160000 bytes to be stored inside the computer. Find the number of bits used to represent each pixel, the pixel amplitude and the coloring system used for the image
  137. Show all the steps required to convert the decimal value 1980 to its octal representation
  138. Show all the steps required to convert the binary value 111000101 to its decimal representation
  139. Any feature of the analogue world can be taken inside the boundary of the computer using two-steps process. Mentions the two steps with brief explanation giving an example that illustrates the steps
  140. Explain the advantage of complex representations using the traffic signs as an example
  141. From your understanding of the term complex representation, briefly explain why traffic signs are considered to be complex representations
  142. Representations play a central role in facilitating communication by establishing a relationship between some form and some meaningful content subject to some convention; mention the two conditions for effective representation
  143. Define a search engine. Give examples on two search engines you use
  144. Explain the difference between the Internet and the Web
  145. b. How can you avoid plagiarism when writing your TMAs?
  146. a. Briefly define the term plagiarism.
  147. One showing the case when the user selected to buy a white laptop.
  148. One showing the case when the user selected to buy a black laptop.
  149. One showing the case when the user selected to buy a PC.
  150. Test your program and run it to make sure it works properly. In your Solution document insert three screenshots for the output
  151. Assume that all strings used in the program and entered by a user are in small letters.
  152. Print the user selection, price and discounted price in the output window
  153. Give the following discount on the price and calculate the discounted price as follows: - PC: 20%. - Black laptop: 15%. - White laptop: 10%.
  154. Calculate the price of the user selection as follows: - PC: 1700$. - Black laptop: 2500$. - White laptop: 3000$.
  155. If the user selected a "laptop" then ask the user to select which color he wants "white" or "black". Read the answer from the user and store it in a variable.
  156. Ask the user if he wants to buy a "pc" or a "laptop". Read the answer from the user and store it in a variable.
  157. a. Using nested if-else statement, write JavaScript program that works according to the following specifications:
  158. Calculate the area and volume of the cube using the following formulas: Area = 6 *(edge length)2 volume = (edge length)3
  159. Read the edge length of a cube
  160. a. Write JavaScript program to calculate area and volume of a cube. The program should work according to the following specifications: [
  161. What is the exact output after these instructions have been executed? You need to draw a simple tracing table that shows how you got your answer.
  162. How many times will the loop be executed
  163. The condition, the loop body, and any instruction(s) that is (are) not in the loop body
  164. The following flowchart diagram shows a loop structure program
  165. Not (a and not b) not a or b
  166. Use truth tables to show whether the following two Boolean expressions are equivalent or not
  167. c. Compiler.
  168. Main Memory.
  169. Control Unit
  170. What is the function of the following
  171. Consider an image of size 1000 X 720 pixels which requires 2160000 bytes to be stored inside the computer. Find the number of bits used to represent each pixel, the pixel amplitude and the coloring system used for the image.
  172. Show all the steps required to convert the decimal value 1980 to its octal representation
  173. Show all the steps required to convert the binary value 111000101 to its decimal representation.
  174. Any feature of the analogue world can be taken inside the boundary of the computer using two-steps process. Mentions the two steps with brief explanation giving an example that illustrates the steps
  175. Explain the advantage of complex representations using the traffic signs as an example
  176. From your understanding of the term complex representation, briefly explain why traffic signs are considered to be complex representations? Explain the advantage of complex representations using the traffic signs as an example.
  177. Representations play a central role in facilitating communication by establishing a relationship between some form and some meaningful content subject to some convention; mention the two conditions for effective representation
  178. Define a search engine. Give examples on two search engines you use
  179. Explain the difference between the Internet and the Web
  180. b. How can you avoid plagiarism when writing your TMAs?
  181. M150 Data, computing and information
  182. a. Briefly define the term plagiarism.
  183. Print the array elements in the output window
  184. Ask the user to enter any 10 numbers and fill them in the array
  185. Define JavaScript function occurrence(anArray,num), that takes an array anArray and a number num as arguments. The function returns the number of occurrences of num in anArray
  186. Declare an array of 10 elements
  187. Define a JavaScript function occurrence(anArray,num), that takes an array anArray and a number num as arguments. The function returns the number of occurrences of num in anArray
  188. In the context of UI design, define and briefly explain (using your own understanding) the terms: visibility, affordance, tolerance and consistency
  189. What is a user interface? Give two examples of user interfaces you use in your daily life.
  190. Briefly define the term HCI. What's the purpose of this kind of study?
  191. one showing the program prompting for the game name, with you having entered the name but not yet pressed OK
  192. Use an appropriate methods to: − Increment the game by two chances. − Print the game information
  193. Create a game instance and initialize its properties by the values entered by the user. Chance should be set to 1.
  194. Prompt the user for values of name and level of a game he wants to create
  195. Implement the methods getName(),getLevel (), getChance(), and displayInfo() according to the above specifications.
  196. Write the Game constructor function Game(aName, aLevel, aChance)
  197. displayInfo(): a method that displays the name, level and the chance of the game in an alert box, using the three methods: getName() and getLevel() and getChance().
  198. moveForward(): a method that gives the next chance (i.e. increments chance by 1) only if the chance is less than 6. Otherwise, set it to 1.
  199. getChance(): a method that returns the chance of playing the game
  200. getLevel(): a method that returns the level selected of the game
  201. getName(): a method that returns the name of the game
  202. The Game object type has the following methods
  203. The Game object can go forward to further chances, however, the maximum value of chance is 6.
  204. chance: a number (from 1 to 6) representing the chance of playing the game.
  205. level: a string representing the level of the game, such as easy, moderate, difficult.
  206. name: a string representing the name of the Game.
  207. You are required to model a new user-defined object type, Game. The Game object type has the following properties:
  208. What information do we usually find in function specifications?
  209. Provide a copy of the specifications of all the functions youve used in writing your program.
  210. Insert a screenshot that shows the resulted output of parts c and d.
  211. Change the state to be 30 December 2000. You should not create a new date. - Display the day name. - Display it in long form
  212. Display the day name. - Display it in long form.
  213. Change the state to be 30 December 2000. You should not create a new date.
  214. For the Date object you've created in a. do the following
  215. Calculate the difference in years between the two dates and print it in the output window
  216. Create another Date object representing the date 13 November 2013
  217. Create a Date object representing the date 2 June 1950.
  218. In unit9, page 21 you were introduced to the methods associated with Date object. In the same unit, section 4.2 you learned how to use functions from the "dateLibrary.js" in JavaScript programs. The specifications for all the functions in t
  219. Run your program two times: one where the number 0 is an element on the array and another time where the number 0 is not in the array. Provide two screenshots of the two required outputs of your program. This should also show the arrays elements
  220. Run your program two times: one where the number 0 is an element on the array and another time where the number 0 is not in the array
  221. Using the function occurrence(), display on the screen the number of occurrences of number 0 in the array. If the number 0 doesnt exist in the array, you should display a suitable message also
  222. Print the array elements in the output window.
  223. Ask the user to enter any 10 numbers and fill them in the array
  224. Declare an array of 10 elements
  225. Define a JavaScript function occurrence(anArray,num), that takes an array anArray and a number num as arguments. The function returns the number of occurrences of num in anArray.
  226. M150 Data, computing and information
  227. m256 tma answer assignment solution m256
  228. M256, Software development with Java Fall 2013 2014
  229. Consider the following use case for this system. List Departments Tutors The administrator identifies abranch, the system displays all departmentsof that branch, and then the administrator selects one of the displayed departments, the system display
  230. department20anddepartment2, assume that the object department20is selected which has the tutorsrepresented by the objectstutor7, tutor11, tutor20andtutor3
  231. the administrator selects one of the displayed departments, the system displays the tutors of that department
  232. For this question you should use a scenario based on a branch represented by an object branch4 which has a number of departments represented by the objects department3, department20anddepartment2, assume that the object department20is selected which
  233. List Departments Tutors The administrator identifies abranch, the system displays all departmentsof that branch, and then the administrator selects one of the displayed departments, the system displays the tutors of that department.
  234. Consider the following use case for this system.
  235. The following is a use case description and a class diagramfor the Arab Open University (AOU) system.
  236. Write the corresponding core code of the sequence diagram you drew in part(d).
  237. On the basis of cascading design, construct a walk-through and a sequence diagram for this scenario.
  238. Write down a specification for the coordinating method(s) for this use case.
  239. Draw a sequence diagram showing just the communication between the userinterfaceobjectand the coordinatingobject(aOUCoord)for this scenario. You should assume that the user interface has already identified the relevant branch object.
  240. Draw an object diagram illustrating the relevant objects and the links for this scenario.
  241. a. Draw an object diagram illustrating the relevant objects and the links for this scenario.
  242. b. Draw a sequence diagram showing just the communication between the userinterfaceobjectand the coordinatingobject(aOUCoord)for this scenario. You should assume that the user interface has already identified the relevant branch object.
  243. d. On the basis of cascading design, construct a walk-through and a sequence diagram for this scenario.
  244. e. Write the corresponding core code of the sequence diagram you drew in part(d).
  245. State an invariant mentioned explicitly in the requirements document which cant be implemented on the class diagram.
  246. State an invariant mentioned explicitly in the requirements documentwhich cant be implemented on the class diagram.
  247. Give the class descriptions, including a brief comment for each class and attribute.
  248. Construct a class diagram including all class diagram entities (classes, multiplicities and associations) and including any generalization relationship if needed.
  249. Classify the conceptual classes identified in part (a) as tangible entity, role, event, organizational unit, or abstract entity.
  250. Identify the conceptual classes of the Arab Open Universitysystem, and then write their names according to UML conventions.