The javac compiler whines around one articulation. Which one and why? Right the code by embedding a
Question:
The javac compiler whines around one articulation. Which one and why? Right the code by embedding a proper cast. (c) With this remedy the program will order and run. Make sense of in frame what occurs at run-time and show what result is printed. [5 marks] (d) Small print in the Java documentation says that you "can't supersede a static technique however you can conceal it". If both test() strategies are made static the program will again order and run. Make sense of what happens this time and show what result is printed.
how to compose java program to peruse a rundown of non-negative whole numbers and show high, low, and normal? a Java program to peruse a record content line by line and afterward print the substance as control center
Most enormous projects that have been composed with significant consideration and completely checked still appear to contain bugs at a pace of north of one for every 3000 lines of source code. Frameworks including a huge number of lines of code can subsequently be anticipated to contain a huge number of possibly disastrous mistakes. (a) List a few sorts of programming blunders that can show up in programs and examine their relative significance corresponding to the drawn out dependability of a enormous application program. [7 marks] (b) Suggest expected ways by which developers might diminish the quantity of programming blunders they make, giving specific consideration to language highlights that could be useful, additional elements in program advancement frameworks and potential changes in generally speaking framework engineering. [8 marks] (c) In what ways would you anticipate that dialects a long time from now should vary from those that are as of now well known? [5 marks] 8 Databases (a) Define the center administrators of the social variable based math. [5 marks] (b) Describe two contrasts and two likenesses between the social polynomial math what's more, SQL. [4 marks] (c) Suppose that S(a, b, . . .) and R(a, . . .) are relations (the documentation demonstrates that trait an is in the mapping of both S and R, while property b is just in the blueprint of S). Assume that v is a worth; is the accompanying condition generally substantial? (a=v or b=v) (R ./S) = (a=v(R)) ./(b=v(S)) If indeed, give a short evidence. If no, give a counter-model. [2 marks] (d) Various ordinary structures are significant in social pattern plan. (I) Define Third Normal Form (3NF). [3 marks] (ii) Define Boyce-Codd Normal Form (BCNF). [3 marks] (iii) For information bases with numerous simultaneous update exchanges, make sense of why constructions in typical structure are significant for good execution.
(a) Explain the contrast among obligation and value supporting. [5 marks] (b) What is implied by a convertible debenture with coupon, and how does this vary from a redeemable inclination share? [5 marks] (c) A specific programming organization has resources esteemed at 1M and is making a net benefit of 100K on a turnover of 1M developing at 10% per annum. 1m offers, counting 100K staff choices, have been given. No profits have been paid. The organization wish to fund-raise so they can extend quicker, and are ready to sell up to 300K new offers. Value the issue. [5 marks] (d) Why in all actuality do investment reserves like to put resources into inclination shares?
Expect that the between appearance time dispersion and both assistance time circulations are remarkable, that there is no restriction on the line lengths and that the populace size is limitless. (a) Using Kendall documentation, depict the principal server and its line. Build a Markov-chain model for this piece of the framework. [2 marks] (b) Let qk,i mean the likelihood that there are by and large I things of work in server k and its line. By utilizing definite stream balance conditions or generally express qk,i as far as , pk and k. [6 marks] (c) Hence determine Tk, the mean reaction season of work things served at k. [6 marks] (d) Suppose that the framework head wishes to guarantee that work things get a similar mean reaction time regardless of which server they visit. Express p1 as far as , 1 and 2. Subjectively, when is it sensible to consider dispatching work to the two servers to keep an equivalent mean reaction time? How might the framework act at different times?
(a) Explain momentarily systems that product on a work station can involve to create secret keys for use in cryptographic conventions safely. [5 marks] (b) Give two distinct approaches to executing leftover data insurance in a working framework and make sense of the danger tended to by each. [5 marks] (c) Consider the standard POSIX document framework access control component: (I) Under which conditions can records and subdirectories be taken out from a parent index? [2 marks] (ii) Many Unix variations execute an expansion known as the "tacky piece". What is its capacity? [2 marks] (iii) On a POSIX framework that needs support for the "tacky piece", how is it that you could accomplish a comparable impact? [2 marks] (d) VerySafe Ltd offer two vaults with electronic locks. They open solely after the right decimal code has been placed. The VS100 - a minimal expense non military personnel model - expects a 6-digit code. After each of the six digits have been placed, it will either open or will flag that the code was off-base and request another attempt. The VS110 - an undeniably more costly government variant - expects a 40-digit code. Clients of a beta-test form of the VS110 grumbled about the trouble of entering such a long code accurately. The producer hence made a last-minute change. After each five digits, the VS110 currently either affirms that the code has been placed accurately up until this point, or it requests the past five digits once more. Think about the security of the VS100 and VS110.
TLBs and stores are instances of content-addressable recollections (CAMs). (a) What is the key contrast between a CAM and a RAM? [4 marks] (b) What is the contrast between completely acquainted, set affiliated and direct planned query? [6 marks] (c) Why are TLBs generally a lot more modest than reserves? [4 marks] (d) Which of the query components to a limited extent (b) is normally utilized for a TLB and for what reason aren't different systems generally utilized? [6 marks] 2 ECAD Consider the accompanying puzzling Verilog module. module mystery(c,r,a,s); input c,r,a; yield [2:0] s; reg [2:0] s; continuously @(posedge c or posedge r) if(r) s<=0; else start if(a && (s<7)) s<=s+1; else if(!a && (s>0)) s<=s-1; end endmodule (a) what number flip-failures will be expected to execute the secret module, and how might signals c and r be associated with these flip-flops? [5 marks] (b) What is the state change outline for this secret module? [5 marks] (c) If this module were blended to the base amount of items structure, what could the conditions be for next state bits s[0], s[1] and s[2]?
Computer Architecture A Quantitative Approach
ISBN: 978-0123704900
4th edition
Authors: John L. Hennessy, David A. Patterson