SOFT_CISC437
pdf
keyboard_arrow_up
School
Seneca College *
*We aren’t endorsed by this school
Course
SCH3U
Subject
Electrical Engineering
Date
Apr 3, 2024
Type
Pages
16
Uploaded by LieutenantGuineaPig2223
HAND IN Answers recorded on exam paper Page 1 of 16 pages QUEEN’S UNIVERSITY FINAL EXAMINATION FACULTY OF ENGINEERING DEPARTMENT OF ELECTRICAL & COMPUTER ENGINERRING SOFT / CISC 437 - PROFESSORS SAMIR MOHAMMAD April 18, 2022 INSTRUCTIONS TO STUDENTS: This examination is 3 HOURS in length. There are 4 sections to this examination. Please answer all questions in the exam papers The following aids are allowed: Casio FX-991 calculator STUDENT NUMBER Before you start, put your student number on top of all odd pages of all answer exam papers, including the front. Before you start, put your student number on top of all odd pages of all answer exam papers, including the front. « Keep your test papers stapled. + Thereis a blank spaces and/or page(s) provided in the quiz for rough work. + If you answer a question on a different page, write us a note telling us where to find your answer. « Comments are not required since you're writing under time pressure. + We will only mark one answer for each question. If you write a rough answer and then a final answer, cross out the rough work or circle the final answer to tell us which one you want us to mark. » You may write your answers in pen or pencil but do not write in red or pink or purple. PLEASE NOTE: Proctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written. This material is copyrighted and is for the sole use of students registered in SOFT/CISC437 and writing this exam. This material shall not be distributed or disseminated. Failure to abide by these conditions is a breach of copyright and may also constitute a breach of academic mtegrity under the University Senate's Academic Integrity Policy Statement. The following area is for marking purposes only: / 10 /10 /10 /20 Total /50 Page 1 of 16 oL
Question 1: True / False. Write your Answer at the provided space. (10 Points, 1 points cach, no partial point) 1.1) We manage performance in a software system after we build it according to a given specs and requirements. 1.2) SPE can be easily integrated into the software development processes, such as waterfall model, spiral model and rational unified process. 1.3) A use case is an instance of scenario. 1.4) Execution graphs are one type of software execution model with visual representation that helps to communicate execution behavior. 1.5) Closed QNM has external arrivals or departures. 1.6) Three reasons for supplementing the standard tools with instrumentation: convenience, data granularity, and control. 1.7) Patterns document common mistakes during development, also document solutions. 1.8) Parallel Processing Principle is related to execute processing in parallel (only) when the processing speedup offsets communication overhead and resource contention delay. 1.9) A refactoring is a correctness-preserving transformation that improves the quality of the software. 1.10) According to the One-Lane Bridge, one or only a few, processes may continue to execute concurrently. All other processes must wait. Page 2 of 16
Question 2: Multiple Choices. Circle the correct answer (A, B, C, or D). (10 Points, 1 points each, no partial point) 2.1) is the number of requests that can be processed in some specified time interval? A) Response time B) Throughput C) Responsiveness D) Scalability 2.2) Which of the given figures represents synchronous communications. A) : Client ] | : Server B) [MJ ! : Server I T ) [ | | C)I :Clien11 [ :Server] D) l :Clientj i :Ser\il T 1 | e ol > | I ! 2.3) A Pardo node represents: A) the steps that may be executed B) conditional execution of processing steps C) parallel execution within a scenario D) None of the above Page 3 of 16
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
2.4) The Figure below represents : Server Active - — ’._ ) Network Active | b — . . e LTI Client Active o tdle r.__ —_— T B i ' State A) Asynchronous Callbacks B) Deferred Synchronous Communication C) Synchronous Communication D) Asynchronous Communication 2.5) Factor(s) that may affect Software Performance Measurements is/are . A) Measurement Timing B) Reproducible Results C) System overhead D) All the above 2.6) You instrument software by inserting at key pomts to measure pertinent execution characteristics. A) Stubs B) Code Probes C) Application program interface (API) D) All the above Page 4 of 16
2.7) The primary consideration(s) when designing instrumentation is/are: A) Defining the events to be measured B) Choosing the granularity of the measurements C) Dynamically selecting the data to be recorded D) All the above 2.8) Which Principle(s) for Performance-Oriented Design that are concerned with improving the overall performance of a system via cooperation among processes competing for computer resources. A) Performance Control principles B) Independent principles C) Synergistic principles D) All the above identify the dominant workload functions and minimize their processing. A) Centering principle B) Fixing-Point principle C) Locality principle D) Processing versus Frequency Principle 2.10) To avoid corrupting the data, during an update of a bank account records, we require exclusive access until the record has been updated. There are many options to do so. Which option that leads to minimizing the scheduling time and minimizing holding time. A) Lock the entire database B) Lock only the individual records C) Lock a group of records D) None of the above Page 5 of 16
Question 3: Short answer Questions (10 points, 1 points each, possibility of partial mark) Please make your answers are brief, very precise to the point to get full mark. 3.1) Define SPE. 3.2) One of the steps of SPE process for Object-Oriented system is to verify and validate the models. What are model verification and validation. 3.3) The UML allows you to specify timing requirements through the use of timing marks, time expressions timing constraints. Write a UML expression to verify if the time elapsed between a “Question” is being asked online and a “Reply” is being sent back is less than 30 seconds. Page 6 of 16
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
3.4) Coregions exception on UML extend our abilities to deal with concurrency in sequence diagram. Can you elaborate on that and give an UML example that illustrate difference between “Coregion” and no Coregion. 3.5) Is the following figure is allowed in execution graph? If not what it suppose to be; that is, what is the correct form of this figure? Process Process Deposit Withdrawal TS Update Balance Page 7 of 16
3.6) What 1s Latency in distributed systems? 3.7) When to use open or closed QNM? 3.8) What is load drivers-Software? When it is recommended to be used? Hint: It is related to planning performance measurements. Page 8 of 16
3.9) Principles for Performance-Oriented Design includes 9 principles. One of them is Locality Principle. List without explanation three types of Locality that can be considered during measurement of software performance. 3.10) How Batching Performance Pattern affect the performance of a software system? Hint: describe the problem and the solution provided by batching pattern. Page 9 of 16
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Question 4: Miscellaneous questions (20 Points. Partial marks possible) (5 Points) 4.1) Consider an online store that sell fresh meet and fresh produce. Once an order is made, a dispatch wrapping packages is sent. The following algorithm describes the dispatch wrapping packages steps. You need to draw the extended Sequence Diagram. Meat need special packaging different than that of the produce. procedure dispatch foreach (order.lineitem) if (product.type == meat) meat.package else produce.package endif endfor Page 10 of 16
This page left blank intentionally Page 11 of 16
(12 points) 4.2) Consider an open QNM with system arrival rate A =3 jobs per second. Following is a list of hardware needed to implement software system which include number of visits for each resource along with mean service time. Number of Mean service visits, V time, S CPU 4 CPU 0.01 Disk 2 Disk 0.03 Fill in the table below with the values of metrics for the CPU and Disk; that is, 5 metrics (1-5) are needed for CPU and Disk and 2 metrics are needed for the whole system (metrics 6 and 7). metrics CPU Disk 1. X, throughput 2. S, mean service time 3. U, utilization 4. RT, residence time i . N, queue length N . Total jobs in system = ~J . System response time = Page 12 of 16
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
This page left blank intentionally Page 13 of 16
(3 Points) 4.3) Consider a database with an index of 3 levels and an estimated 67% hit rate. Find the estimated number of physical I/Os. Page 14 of 16
Memory Aid Sheet Performance metrics based on Execution Profile Charts T= Total Period, C= Completed jobs, B=Busy Time, Utilization U=B/T Throughput X=C/T Mean service time S =B/C Number of Jobs W =2Z (# of jobs) Residence time RT =W/C Queue length N =W/T Performance metrics based on Arrival Rate and Average Service Time Arrival rate, A Mean service time, S Throughput X= A Utilization U=XS Residence time RT =S/1-U Queue length N=X*RT Performance metrics based Queueing Network Model L System arrival rate Vi Number of visits to device Si Mean service time at device System throughput, X0=2X Throughput of device 1, Xi=XoxV; Utilization of device i, Ui = XixSi Residence time per visit at device i, RTi= Sv/(1-Ui) Queue length for device i, Ni = XxRT; System queue length, N= XN System response time, RT =N/Xo Estimate for Random Access of I/0 requirements I, = (it x(I-h) - I, is the number of physical 1/Os, - [ is the number of levels in the file index, and - h is an estimate of the hit ratio on the computer system. Sequential Access Estimate of a File I/O s number of physical I/Os is n/b - n is the number of records requested and - b is the block size or number of records that fit into one physical block of data. Page 15 of 16
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Estimate Input Network messages First consider the amount of data to be transferred in the request (or input). The number of messages for input is Mi=d/(m — h) - d is the amount of input data, - m 1s the message size, and - h is the message header size. Estimate Output Network messages The amount of data transferred for the result set. The number of output messages is Moo= (r x 8)/(m — h) - r1s the number of rows in the result set, - s1s the row size, m is the message size, and h is the message header size. The performance gain for the refactored solution Ts=M;x O — Tsis the processing time saved — M;is the number of messages saved — O s the overhead per message The cost of dynamic allocation, C. is C= N X Zgepth (Sc + Sa) — N is the number of calls — depth is the number of contained objects — Scand Sgare the service time to create and to destroy the object, respectively Page 16 of 16
Related Documents
Related Questions
I have a wooden toy train that runs on wooden tracks. I would like to place two ESP-WROOM-32 Boards on top of the train. Broadcast communication (which involves radio frequency, not Wi-Fi) would help communicate about the train's lateness to five other wooden trains on the same track. Local communication would help communicate to the train station about the train's lateness. I would also need radio frequency Tx-Rx Modules for discharging and undergoing the signal, and repeaters just in case the signal loses power due to long-distance traveling. My wooden train should be automated. It should run at 4 inches per second, keep a minimum distance of 30 seconds away from the other wooden trains, and make a 17-second-long stop every 500 seconds.
What's the procedure to connect the components?
What's the Arduino code (C++) for this project?
arrow_forward
how to memorize questions for a test
arrow_forward
The subject is Power Electronics and Smart Power System
Please send the answer by typing i don't want any handretten.
Also, don't copy past from net as plagiarism will be counted.
arrow_forward
DEGREE: ELECTRICAL ENGINEERING SUBJECT/COURSE: INDUSTRIAL ELECTRONICSTOPIC: FEEDBACK OSCILLATORS NOTE: Please solve in this way. 1. Please have a good handwriting, some of the answers are not readable. Thank you!2. GIVEN. (Include symbols and units)3. ILLUSTRATION (Required).4. Step-by-step SOLUTION with Formulas and Symbols. No Shortcut, no skipping, and detailed as possible5. FINAL ANSWERS must be rounded up to two decimal places with corresponding unit.
PROBLEM:An amplifier without feedback has an internal gain of -500 with a distortion of 10% and a normal input of 0.5-volt, negative feedback with β = 0.10 was added. Determine the following:A. Gain of amplifier when the feedback was addedB. Percent reduction in distortion when feedback was addedC. The voltage required in the input of the amplifier in order that output voltage is the same as the voltage without feedback
arrow_forward
answer number 1 plzzz
arrow_forward
No need for further computations. Just give me enough explanation. Thanks!
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

EBK ELECTRICAL WIRING RESIDENTIAL
Electrical Engineering
ISBN:9781337516549
Author:Simmons
Publisher:CENGAGE LEARNING - CONSIGNMENT
Related Questions
- I have a wooden toy train that runs on wooden tracks. I would like to place two ESP-WROOM-32 Boards on top of the train. Broadcast communication (which involves radio frequency, not Wi-Fi) would help communicate about the train's lateness to five other wooden trains on the same track. Local communication would help communicate to the train station about the train's lateness. I would also need radio frequency Tx-Rx Modules for discharging and undergoing the signal, and repeaters just in case the signal loses power due to long-distance traveling. My wooden train should be automated. It should run at 4 inches per second, keep a minimum distance of 30 seconds away from the other wooden trains, and make a 17-second-long stop every 500 seconds. What's the procedure to connect the components? What's the Arduino code (C++) for this project?arrow_forwardhow to memorize questions for a testarrow_forwardThe subject is Power Electronics and Smart Power System Please send the answer by typing i don't want any handretten. Also, don't copy past from net as plagiarism will be counted.arrow_forward
- DEGREE: ELECTRICAL ENGINEERING SUBJECT/COURSE: INDUSTRIAL ELECTRONICSTOPIC: FEEDBACK OSCILLATORS NOTE: Please solve in this way. 1. Please have a good handwriting, some of the answers are not readable. Thank you!2. GIVEN. (Include symbols and units)3. ILLUSTRATION (Required).4. Step-by-step SOLUTION with Formulas and Symbols. No Shortcut, no skipping, and detailed as possible5. FINAL ANSWERS must be rounded up to two decimal places with corresponding unit. PROBLEM:An amplifier without feedback has an internal gain of -500 with a distortion of 10% and a normal input of 0.5-volt, negative feedback with β = 0.10 was added. Determine the following:A. Gain of amplifier when the feedback was addedB. Percent reduction in distortion when feedback was addedC. The voltage required in the input of the amplifier in order that output voltage is the same as the voltage without feedbackarrow_forwardanswer number 1 plzzzarrow_forwardNo need for further computations. Just give me enough explanation. Thanks!arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- EBK ELECTRICAL WIRING RESIDENTIALElectrical EngineeringISBN:9781337516549Author:SimmonsPublisher:CENGAGE LEARNING - CONSIGNMENT

EBK ELECTRICAL WIRING RESIDENTIAL
Electrical Engineering
ISBN:9781337516549
Author:Simmons
Publisher:CENGAGE LEARNING - CONSIGNMENT