You are on page 1of 23
Gas oC 84 ert rata revit oO FS SS So rr Faculsy of Engineering Aaasigh Als * Specialized Scientific Program Franadial) Ayala al yl Computer & Communication Department ea y qual pad ‘CSE102: Computer Crogramming qual Apay ; Baa June 2012 2012 sin ‘Time: 2 hours Feta? : oa Final Exam [h-6-201% Student Name: —— GROUP: 1-3-4-7 Total is 60 points. Calculator is NOT allowed. Program (8 pts) Write a program that reads the scores of N students then outputs the number of students in each of the following 5 score ranges: (90-100], [80-89], [70-79], [60-69], and [0-59]. Sample Run Enter the number of students: 10 Enter the score 1: 64 Enter the score 2: 80 Enter the score 3: 96 Enter the score 4: 12 Enter the score 5: 96 Enter the score 6: 76 Enter the score 7: 60 Enter the score 8: 56 Enter the score 9: 100 Enter the score 10: 70 Statistics: [90-100]: 3, [80-89]: 1, [70-79]: 2, (60-69]: 2, [0-59]: 2 Flowchart (8 pts) A gross of eggs is equal to 144 eggs. A dozen of eggs is equal to 12 eggs. Draw a flowchart that asks the user how many eggs she has and then tells the user how many gross, how many dozen, and how many left over eggs she has. For example, if the user says that she has 1342 eggs, then your program would respond with Your number of eggs is 9 gross, 3 dozen, and 10 since 1342 is equal to 9*144 + 3*12 + 10. Number systems ( 8 pts) Detail the following transformations a. 21.24 (base 5) (binary) b. 8f.2c (hexa) (octal) Dr. Sahar M. Ghanem 1 Page 1/7 MCQ: Answer only 36 of 40 (36 points) . 1. Today's fastest computers are called 3. mega computers b. terminals ©. supercomputers d. CPUs 2. Which of the following would not be considered hardware? a. anoperating system b. acpu © akeyboard 4 adisk 3. Computer programs are 2, sets of control instructions b. the information processed by the computer © the various devices (disks, memory, keyboard) that comprise a computer system 4, the people programming the computers 4, Programs or data not actively being used by the other units are placed on the a output unit, b. memory unit. ©. secondary storage unit, 4. central processing unit. 5. The compile stage is when a the object code is linked with code for functions in other files b. the C program is translated into machine language code © the program is executed one instruction at a time a. the program is placed in memory 6. What is bandwidth? a. information carrying capacity b. response time c. the set of networking protocols d. anerror-control technique 7. Which of the following does counter controlled repetition NOT require? a. aninitial value b. acondition that tests for the final value © an increment or decrement by which the control variable is modified each time through the loop 4d. counter controlled repetition requires all of the above 8. Which of the following is not specified by the following correct code segment: for (c= 1; ¢<=10; c++) a. initial value of the loop counter b. loop continuation test c.increment of the loop counter d._ body statement of the loop 9. The for statement header for (i= 451 < 100; i++) performs the body of the loop for a. values of the control variable from 1 to 100 in increments of 1. b. values of the control variable from 1 to 99 in increments of 1. values of the control variable from 0 to 100 in increments of 1. 4d. values of the control variable from 0 to 99 in increments of 1. Dr. Sahar M. Ghanem 1 Page 2/7 aoe HF He Ss = = aa Ce ‘10. What is the highest value assumed by the loop counter (i) in a correct for statement with the {allowing header? for (1= 751 <= 72;14=7) a7 b. 77 © 70 d. 72 11. In C, the condition 4>y>1 a. evaluates correctly b. does not evaluate correctly and should be replaced by (4>y &&y>1) ¢. does not evaluate correctly and should be replaced by (4>y &y>1) d. does not evaluate correctly and should be replaced by (4>y || y>1) 12. The expression If (num t= 65) can NOT be replaced by: a. if(num >65 || num <65) b. if (num == 65) c. if(num—65) 4. if (num —65) 13. Flowchart does not include a. definitions b. input/output ¢. action statements 4. control structures 14, The conditional operator (?:) a. isthe only ternary operator b. isaunary operator associates from left to right d. accepts two operands 15. _ Ina printf, a backslash(’V’) is printed by enclosing in quotes a \ bw oN ee 16. Which of the following is not a valid integer value? a3 bo c. 2134859 do 1a 17. Which statement is FALSE. a. Variables may be defined anywhere in the body of main. b, All variables must be defined. . All variable definitions must include the name and data type of each variable. d. Several variable of the same data type may be defined in one definition. 18. A(n) error is caused when the compiler can not recognize a statement. a. logic b. syntax c. linkage d. execution Dr. Sahar M. Ghanem 1 Page 3/7 19. Every variable has all the attributes below, except a. name b. value ©. alias d. type 20. (100101)tinay = a. (37 eect b. (45)oca © (25)rex 4. allthe above 21. What is the value of z after the following code is executed? int 2,x=5,y=-10,a=4,b=2; zextt--y*b/a; a5 bd 6 « 10 dat 22. What is the output of the following code? int x=0; for (x=15 xed; xt#) 5 "ds d. x4 23, What is the value of x after the following code is executed? int x=3; d. && 25. What is the output of the following code? int i= 4; int x= 6; float 2; zex/) printf("2=96.2F\n", 2); c a. ze: 00 Dr. Sahar M. Ghanem 1 Page 4/7 rife fa bs ns oS SS SSS mo 33. Which of the following is an example of a unary operator? nw b. 6 ce 34, Which of the followii a & b. && el del 35. What is the output of the following program? #include int main() { int a =500, b = 100, ¢; if (la >= 400) b = 300; is not a logical operator? 36, What is the output of the following program? #includecstdio.h> Int main() { Int a = 300, b, ¢; if{a >= 400) b = 300; ¢=200; printf("%d, %d, %d\n", a, b, c); return 0; } a. 300, 300, 200 b. Garbage, 300, 200 © 300, Garbage, 200 d. 300, 300, Garbage 37. Which of the following statements are correct about the below program? #include int main() { inti =10, j= 20; if{t = 5) 8.& if = 10) printf("Have a nice day"); return 0; } a. Output: Have a nice day b. No output Expression syntax error d. Run time error Dr. Sahar M. Ghanem 1 Page 6/7 26. Which of the following is NOT a valid variable name? a. go_cart . b. godit c. Aseason d. rund 27. What is the output of the following code? Hincludecstdio.h> void main() { inta=0, b= a=(b=75)+9; "\nséd, %d", a, b); a. 75,9 b. 75,84 84,75 d. 0,0 28, At what stage the division by zero error can be found? a. compilation b. syntax analysis run-time d. linking 29. How many times will the following code print Happy!? i=3; while ((i *= 2) <2000) printf("Happyl"); a 8 b. 9 «10 4. 100 30. Assume a = 6 and b=3, which of the following is true? a. (a>3) && (b> 12) b. (a* b> 10) && (a/b>a%b) c b-ar6 4. none of above 31. Which of the following is equivalent to if (n = 8)? a. ifl(n=8) b. if t(n-8) ©. if(n>8 || n<8) 4. none of above 32, From which function does every C program start? a. main b. include ecare d. Dr. Sahar M. Ghanem 1 Page 5/7 rer Ss SSO eS MS ON rr FP Fd eS 38. Which of the following statements correctly prints the larger number of iand j? @. printf("%6d\n", i>] 17, b. printf("S6d\n", ij2j i); d. none of the above 39, What is the output of the following program? Hinclude int main(){ int x=25; f(x) printt("36d",tx); else printf("%6d" x}; 5 a 40. What is the output of the following program? #includecstdio.h> int main() { float a=0.5,b =0.9; if(a&&b>0.9) printf{"Sachin"); else printf("Rahul return 0; Sachin Rahul Run time error Compilation error Dr. Sahar M. Ghanem 1 Page 7/7 g251033 ya | | HE | lh |: lisa} 8 bk be —- GROUP: 1- 3-4-7 000 ©000 ©6000 000 @O@O G00 000 000 ©0900 8 ©0060 Rall teh 2 3 Z| ra Multiple Ct ©0©©00HOOHOHOHOHOHOHOHOOOOOO ©OQOQOOOHOHOHOOHOHOHOOOOOOOO ©0009 OOOOHHOOOOOOOO® QOQOQOQOOLQLOOOOOSOOOOEOEOEO NNRARKARRSSASSBSESBS Q90OQ0OOOQHHOHOHOHOODOOOOOO QQOOOQOQHOHOOQOQOOOQOOOOOO ©00©00999OHOOHOHOOHOHOQOOHOOO QQOQQOQOQOQOLOOHOOOOOOOOS Hams nMonwoasStINyHyen2ao . 5 aaasgsaegees Sofa HM. Ghanenr Or. Alexandria University SSP Asal deal Faculty of Engineering Lasgh As Specialized Scientific Programs e Acanadial) Ayaledl geal pall June , 2012 . Principles of Industrial Health HS502b Prof. Dr. Amany M. Ahmed Time allowed:.... 2hours.. Final Exam ree SP ee ee ee eee [3x26] 2 Answer the following questions: I. Put (1) or (X) and correct the false 1- Airborne concentrations of chemical substances and conditions, under which it is believed that workers may be repeatedly exposed, over a working lifetime, without adverse health effects called PEL. 2- Contact between outer boundary of the human body (skin, nose, lungs, GI tract) and a pollutant or mixture of pollutant is a risk, 3+ The dct of comparing exposure measurements with exposure limits (TLVs, PELs, etc.) is a fundamental aspect of risk characterization. 4- The pH of urine can indicate whether a given chemicals is in a non ionic or ionic form, itis an important factor in determining how quickly'a material will be excreted by the lung. 5- The method evaluates and catalogs all the circumstances surrounding a person affected by a health event of interest is an absorbed dose. 6- Any sample taken in a few minute considered as integrated sampling: 7: The place that not designed for continuous worker occupancy is a confined space. 8- Safety is a shared responsibility between OSHA, workers and employers 9- Gases are substances that are in liquid state at room temperature. 10- A Fan is used if the exhaust air is hazardous to the general public or if the air is ‘to be re-circulated in some fashion. IL._Write on the following: = Laboratory-analysis of sample + Dermal irritation test. = Industrial hygiene concepts + Why we Need the Legislation in the workplace? = . Objective of toxicology _ In what ways are the threats of poisons at workplace different from those at me? ~ What is the difference between fumes and vapors? Crel oa 2 Ug 2 2 we ae b. Find the" relative risk" of association between exposure to hydrocarbons and liver cancer in the result of the following survey. Calculate number of healthy ‘workers. Explain the result. Liver cancer (@)___| Healthy ‘Number (N) Exposed 200 400 Unexposed | 100 400 What is meant by absorption? Write the differences between metabolism and distribution?” IV.b.A large underground storage tank has been used to store fuel oil for furnaces ina plant. It has a single manhole entry point and a narrow above ground vent. It is leaking, and require repair. The fuel is drained into other tanks, and a welder is to be sent into'the tank to weld the damaged seam. - What testing must be done before a worker may enter? - Suppose ventilation does not succeed in bringing the hydrocarbon level below the lower flammability level. What other alternative is possible? V.a. Choose the correct answer 1- Selection of the correct fan for a system is the function of - Industrial hygienists - ventilation engineer. 2- Efficiency of cleaner equal ~ amount collected/ amount entering cleaner - - amount entering cleaner/ amoiint collected 3- The results of acute toxicity testing provide basic information about a ~ material’s relative potential to cause acute toxicity - immediate toxic effects. 2 AlLof them 4- The easiest method for determining how faster material excreted is - pHofurine - Blood analysis 5- Filter masks are sometimes made of - Filter paper = Chemical substances - — Cross- sectional study - . Industrial hygiene ~- Risk assessment | i eo oe ee oe ee oe oe ee oe oe ee oe oe ed Engineering Economics HS-202 ‘Special Scientific Programs FINAL EXAMINATION EXAMINATION DURATION: 2 HOURS Loap: 50% OF TOTAL COURSE MARK 12h - Delp 2 2 ATTEMPT ALL QUESTIONS. ‘THE EXAM PAPER INCLUDES 5 PAGES AND 6 QUESTIONS. YOU ARE RESPONSIBLE FOR ENSURING THAT YOUR COPY OF THE PAPER IS COMPLETE. BRING ANY DISCREPANCY ‘TO THE ATTENTION OF YOUR INVIGILATOR. SPECIAL INSTRUCTIONS External-material External Material are not allowed into the exam. Load Final exam constitute 50% of the total course mark. Missing-data Assume any missing data and clearly state your assumptions in your solution. Answer For all questions draw the cash flow diagram Student Name: ... Student Number:... Formulae (F/Pjisn) = (1+)" (F/A,i,n) = G41 (payin) = GEO (P/Fisn) = cephaay (A/Fisn) = epdaey (A/Paisn) = copay {10 points] 1. Perform an Annual Worth (AW) analysis of two proposed methods to track fatigue development in aircrafts for a MARR is 12% per year. First Cost$ Annual Operating cost 8/year Salvage Value § Life, year Method A 40 000 60 000 110 000 5 Method B60 000 26 000 8.000 5 AWg: Tchoose method: [Ja []p Continued on next page Page 2 of 5 [20 points] 2. A quality system was purchased in 2010 for $550 000 with an estimated salvage value of $50 000 after 10 years. Currently the estimated remaining life is 7 years with an AOC of $27 000 per year and estimated salvage value of $40 000. It was recommended that the system would be replaced by a new one that costs $400 000, have an AOC of $50 000 per year, an economic service life of 12 years and a salvage value at the end of its life of $35 000. If the MARR of the company is 12% find the replacement value of the old system. ‘The replacement value = Continued on next page ... Page 3 of 5 re Fs rs SOM SKS CSV SB Se eee [20 points} 3. Compute the economic service life for a machine that has a purchase cost of $10 000 and an estimated AOC and market value as shown in the following table. Use a MARR of 10% ‘Years of usage n ids 4 Annual operating cost, +10° S/year 1.0 12 15 20 30 Salvage Value, 10° $ To) a ae Economic service life Continued on next page ... Page 4 of 5 [10 points] [10 points} 4. A hospital plans the installation of a new medical equipment. ‘The equipment cost is $150 000 to install and $55,000 annually for maintenance. It has an expected life of 5 years and a salvage value at the end ofits life of $20 000. ‘The revenue is estimated to be $60 000 per year. Determine if this decision is economically justified using PW analysis and a MARR of 20% per year. PW: 5. You purchased Mitsubishi Lancer for 130 000 LE it is estimated that you would like to replace Should we go ahead with the new plan? Yes No your car after 5 years. What is the annual depreciation and the book value of your car at the end a depreciation rate of 8%. of the 24 and 5* years using the declining balance method ~ The End - By= Good Luck Page 5 of 5 ioe rrr reo RS SS SSS SS Alexandria University SSP Assay daly Faculty of Engineering Lessig Ais Specialized Scientific Programs Hawaii Ayal gal yl June 2012 2012 Ly Course title: Numerical Methods Tse OE rt lly AT pal MP 314 Time allowed: 2 hours |- 6-20 Ney tetes p58 Byer duke Jb Sper JS Uly slr Answer the following questions (use four dé ial points during calculations} 1. By using the least square method, Fit a function for the form y = a x” to the following data, then find the correlation coefficient x 0.5 I 2 | 4 8 12 y 129.6 89.6 63.6 | 44.6 31.6 25.6 | 2, Use the Secant method to find a root for the equation xe" - 4 = 0 between using xo= 0, x; = 1 up to four decimal point (make only four iterations) 3. By using Gauss elimination with partial pivoting solve the system of equations, DAL x-4.21y +0921 2=2.01 4.01x+102y-1.122=-3,09 1.09 x +0,987y + 0.832 2= 4.21 > then find the residuals 2 4, Evaluate the following integral { where n = 8 by using Trapezoidal and 2 oVi+x ‘Simpson's 1/3 Rules, then find the error in Trapezoidal method. 5. Solve the following system of differential equations By using Euler method to get y(0.2) , x(0.2) given that h = 0.1 where y(0) =- 1, x (0) =1 and the equations dx dy Se sax 43y=3 3x+2y + 22 oe a Use the improved Euler to get better approximations = 20% 6. Apply Picard method, to find y;(x), for the differential equation y= y* + 1, y(0)= 0, find exact solution and RPE given that h=0.5 , then solve by using Runge-Kutta method to get y(0.5), compare Good Luck SS eo Alexandria University ssP Ay yatsuyt deal Faculty of Engineering Haasigh 46 Specialized Scientific Programs @ Awad Ayal Gal Tune 2012 2012 iss T echnical Writing: HS201 lowe: hours Answer The Following 4 Questions: (50 marks) Question (D) (16 marks) Answer the following: 1- “In writing technical reports, the subtitles in the discussion part differ apparently according to the type and the objective of the report”. Show how this rule is applied on three different types of technical reports you've studied. 2- How do feasibility and recommendation reports differ ? 3+ How do laboratory and project reports differ ? 4- Write a conceptual process for solving any simple mathematical problem you choose. 5- Explain how the best solution is selected in recommendation reports. 6- Why do engineers write technical reports ? 7- State four characteristic features that technical writers must have. 8. , what are the five important things that technical writers need to do when writing feasibility and recommendation reports? Question (11) (12 marks) (Correct the underlined word or phrase in the following statements: 1- A technical writer may use the ideas of others as long as he highlights them. 2- Inthe outline of a laboratory report, test and evaluation section is composed of theory and research. 3+ Inreal world, periodic payments may be contingent on the submitting of a clear project report. documents that identify and evaluate the 4- Project and progress reports are obj candidate solutions of problems. 5+ Recently, image alternations are increasingly growing as a result of the modern physics research puplished on internet, 6- In process and mechanism descriptions , the writer should give his contact information, 7- The technical documents that written to present the information relating to the controlled testing of a hypothesis are called feasibility reports, 8- Although their conclusions can be used to promote ideas and sell services, status reports should include unbiased evaluations. 9- Laboratory reports ate written to look at several approaches for solving a problem and recommend the most suitable one. 10-Data interpretation is a part of both project and laboratory reports. 11-In finishing a progress report, the conclusion part should be based on the cost and solutions. Dr, Alaa Helba Question (U1) (12 marks) Complete the following statements: 1+ Ethical behavior of a technical writer involves his moral duty and obligation to apply his power of technical communications tO ....... 2- The main three pats that should be writen inthe outline of any proposal or technical report 3+ Anti-plagiarism web search programs provide effective resources to help « 4- The simplest way to acknowledge image alternation is, 5+ Multiple solutions are evaluated according to .. 6- The periodic document written to show how well the work in a project is going may be called BS vesssoe co 7- Ifa technical term fas multiple meanings, . 8 ssseessseeeenis a form of extensions used when you need to show differences or similarities, 9- Sometimes, a technical writer may sacrifice the desired precision in his definitions to ... 10- Visuals in process descriptions should be referred to in the text ...........--- and they can be demonstrated by using 11-A technical volume in a formal proposal contains Question (LV) (10 marks) Considering the following table of results as part of a recommendation report, complete the following: Procedure ‘Accuracy Time of flight Speed change TB (Tangent burn) 55% 21 TU 0.56 DUTU AT (Alpha Transfer) 35% 25 TU 0.45 DU/TU 1- The numbers in table represent 2- AT and TB represent... 3+ Accuracy, time of flight and speed change represent . 4- The most possible conclusion of this report may be as follows: 5+ The most possible recommendation of this report may be as follows: : Dr. Alaa Helba Se eS SSS SS Alexandria University SSP Asay deal, Faculty of Engineering 1 Aang As Specialized Scientific Programs & Aaanaiil dusted eal yl June, 2012 2012 sigs Course title Number:Human Rights102 GaN Gola + Gs ay Al pal ‘Time allowed:2 hours Beka: Gait Final Term Exam lo-b -20\2 [40 Marks} 1-Briefly write what is meant by the following and give one example to support your answer whenever needed. (9 Marks) a-The right of every humanbeing to education. — Alexandria University isa ly Faculty of Engineering asp 46 Production Engineering Department ei aia ab June 2012 2012 ‘Management Information Systems ee First Year ol dat Time allowed: Two Hours, Bel: nit =2 abt ae a uestior Select the best definition. Some may be used more than once. Write down your answer in the table below Term 1. Cold roll welding 2. Drilling 3. Riveting 4. Draft 5. Lost-wax process 6. Shell molding 7. Cope 8. Drag 9. Plastic deformation processes 10. In reverse extrusion 11. Tuming. . Blanking . Milling 14, Reaming. 15, Composites 16. Ceramics Definite ‘The upper half of an enclosed mold. The lower half of an enclosed mold, ‘A reservoir used as a source of liquid metal to compensate for shrinkage. Is a process of producing round holes in a solid ‘material or enlarging existing holes with the use of ‘multi-tooth cutting tools. Aggregates of metals, polymers and or ceramics ‘Compounds of metallic or semi- metals and nonmetals A process of producing flat and complex shapes with the use of multi-tooth cutting tool. ‘Where a cutting tool is used to remove material from a rotating workpiece. Operations that induce shape changes on the workpiece by permanent deformation under forces applied by various tools and dies. J. Sheet metal cutting operations that involve cutting the shect metal aleng a closed outline. K. The slight tapering of mold walls so that a molded part can be removed, Not usually need for rubber parts. When a thick shell of plaster is slapped around a pattern, ‘Where the wax pattern vaporizes when molten metal hits it A process that requires no subsequent machining or processing. Solid-state joining process accomplished by applying high pressure by means of rolls between clean contacting surfaces at room temperature Einishing of drilled holes ‘Unthreaded, headed pin used to join two (or more) parts by passing the pin through holes in the parts, and then forming (upsetting) a second head in the pin on the opposite side. =O =m 9 OpD> os. en Answer Question one: 1 2 5 6 7] 3 9 10 ii 2 1B 14 15 16 PS SSS SS SSS PSS SS Soo OS Question tw ‘Most externally threaded fasteners are produced by which of the following processes (one best answer): (a) cutting the threads, (b) milling the threads, (c) tapping, (4) thread rolling, or (¢) turning the threads 2. The maximum possible reduction in a rolling operation depends on which of the following parameters (two correct answers): (a) coefficient of friction between roll and work, (b) roll diameter, (c) roll velocity, (4) stock thickness, (c) strength coefficient of the work metal? 3. Spring-back is the elastic recovery leading to the increase of the included angle when the bending pressure is I: (a) true or (b) false? 4. Which of the following are alternative names for indirect extrusion (two correct answers): (a) backward ‘extrusion, (b) direct extrusion, () forward extrusion, (4) impact extrusion, and (e) reverse extrusion? 5. Flash in impression die forging serves no useful purpose and is undesirable because it must be trimmed from the part after forming: (a) true or (b) false? 6. Which of the following processes are classified as fusion welding (three correct answers): (a) Oxyacetylene welding, (b) submerged are welding, (c) friction welding, (a) forge welding, (e) laser welding, and (1) ultrasonic welding? 7. Wire drawing is a process used to reduce the diameter of a hot wire, that means heat is always applied during this process (a) true or (b) false 8. Bulk Deformation Processes the cross-section of workpiece does not change—the material is only subjected to shape changes. (a) true or (b) false? Answer Question two: 1 aE 2 3 4 5 6 1 8g l Question three - ‘A. Write down and show on the each graph: a. Name of process b, Main cutting motion ¢. Feed motion inswer question three A. In the space below each graph and b & c on the same graph Examiners: Prof. Dr. G. Nasef, Prof Dr. R. Alkadeem Page 2 of 4 = FR SSeS SS ee ee eee B. Calculate the machining time required to drill a the feed is 0.2 mm and cutting spe ind hole diameter 15 mm with depth 40 mm. knowing that 25 m/min, and the distance between surface and twist drill is 3 mm. estion three a B.Question fos |. Write down the reading in the space to the right of each graph Graph Reading 1 2. |3 4 2. The required costs to produce a certain product are: fixed costs of $1,000 /moth, variable cost per unit of $ 50. ‘The maximum output of production line is 200,000 units per month and the selling price is $ 90 per unit. Calculate the following: 1. The current net profit of the company 2. The BEP 3.__Minimum demand that can be produced to achieve profit of $ 7,000 per month 3. Draw a break even chart, then show only four out of five of the following: 1, Loss area, 2. Profit area, 3. BEP, 4. Safety margin, 5. Total revenue when the price is decreased Examiners: Prof. Dr. G. Nasef, Prof. Dr. R. Alkadeem Page 4 of 4 Sa SB SS SS Ss SS TS eae eae eS ee eS eae eS

You might also like