The finally block is executed:
a) Only when a checked exception is thrown
b) Only when a unchecked exception is thrown
c) Only when an exception is thrown
d) Irrespective of whether an exception is thrown or not
e) None of The Above

1 Answer

Answer :

d) Irrespective of whether an exception is thrown or not

Related questions

Description : Will the finally block get executed if an exception has not occurred?

Last Answer : Yes.  

Description : Will the finally block get executed if an exception has not occurred?

Last Answer : Yes. 

Description : What is checked { } and unchecked { }?

Last Answer : By default C# does not check for overflow (unless using constants), we can use checked to raise an exception. E.g.: static short x = 32767; // Max short value static short y = 32767; // Using a checked ... myMethodUnch() { int z = unchecked((short)(x + y)); return z; // Returns -2 }

Description : Difference between Checked and Unchecked exceptions ?

Last Answer : Ans. Checked exceptions and the exceptions for which compiler throws an errors if they are not checked whereas unchecked exceptions and caught during run time only and hence can't be checked.

Description : Suppose d = { john :40, peter :45}, what happens when we try to retrieve a value using the expression d[ susan ]? a) Since susan is not a value in the set, Python raises a KeyError ... Python raises a KeyError exception d) Since susan is not a key in the set, Python raises a syntax error

Last Answer : c) Since “susan” is not a key in the set, Python raises a KeyError exception

Description : A job has four pages A, B, C, D and the main memory has two page frames only. The job needs to process its pages in following order: ABACABDBACD Assuming that a page interrupt occurs when a new page is brought in the main ... replacement algorithms are (A) 9 and 7 (B) 7 and 6 (C) 9 and 8 (D) 8 and 6

Last Answer : (C) 9 and 8

Description : In profit center revenue represents a monetary measure of output emanating from a profit center in a given period irrespective whether A. The revenue is realized or not B. The output is sold or not C. Both a and b D. None of the above

Last Answer : C. Both a and b

Description : I've accidentally blocked YouTube. Have gone to Adblock and unchecked all YouTube listings, but YouTube is still black?

Last Answer : answer:if you are running xp or vista go to the contorl panel find “add/remove programs”. find “adblock” and uninstall it. To fix you adware problem then download spybot and run it. p.s. spybot will clear all adware and malware…so you can uninstall the many other programs you have installed. :)

Description : Will our bloodlust for Arab dictators continue unchecked into our own hemisphere where other dictatorial regimes trample the human rights of their people?

Last Answer : Yes… You just need a riot to get out of hand and organize itself into something bigger. It looks like every G20 meeting or Stanley Cup Playoff Final has the spark.

Description : In an HTML web form, how to create a checkbox that will block submission of the form unless checked?

Last Answer : It's easily circumventable (is that actually a word?) (see the Tamper Data Firefox extension), but I suppose you can convince your client you've done it using Javascript (not sure how to do that though) ... as well, because, as I said, it's easy to work around (you can just disable Javascript).

Description : statement block is executed atleast once for any value of the condition. a. For statement b. Do-while statement c. While statement d. None of these

Last Answer : b. Do-while statement

Description : Does this clarification finally put to rest the debate over whether Atheism is a religion?

Last Answer : Seems like a no-brainer to me.

Description : Banks can not generally accept interest-free deposits. which of the following is an exception to this rule? A. Current Account B. Savings Account of Minors C. Deposit from Minority groups D. BSBDA E. None of the Above

Last Answer : A. Current Account Explanation: Banks cannot accept interest free deposits other than in current account.

Description : Which of the following does not have a super class: a) System b) Lang c) Exception d) Object e) None of The Above

Last Answer : d) Object

Description : The law of conservation of mechanical energy is valid a.Irrespective of the nature of force field b.Only in gravitational field c.Only if the total work done by the particle in moving around in a closed trajectory is zero d.Only if the force is tangential to the trajectory e.None of the above

Last Answer : c. Only if the total work done by the particle in moving around in a closed trajectory is zero

Description : The earth's gravitational force field is said to be conservative force field because a.The work acted by the earth's gravitational field on a particle is independent on the path traced out by ... directional component always acting normal to a body e.The value of gravitational force rise is fixed

Last Answer : a. The work acted by the earth's gravitational field on a particle is independent on the path traced out by the particle

Description : The National Agricultural Insurance Scheme in its first two years of operation envisaged to cover...... (A) all crops-grown by small and marginal farmers only (B) all crops-cultivated with ... of farmers (D) only horticultural crops (E) only seven commercial crops-grown under contract farming system

Last Answer : (B) all crops-cultivated with the help of crop loans only irrespective of the size of holding of the borrowers

Description : In latest generation computers, the instructions are executed A) Parallel only B) Sequentially only C) Both sequentially and parallel D) All of above

Last Answer : Answer : C

Description : Can Continue exit a finally block?

Last Answer : No

Description : Can break exit a finally block?

Last Answer : No

Description : Do we get an error while executing the “finally” block in C#?

Last Answer : Yes. We may get an error in finally block.

Description : Why use “finally” block in C#?

Last Answer : Finally block will be executed irrespective of exception. So while executing the code in try block when an exception occurs, control is returned to catch block and at last finally block will be ... the closing connection to database / releasing the file handlers can be kept in finally block.

Description : What is finally block?

Last Answer : A: finally block contains statements which are to be executed irrespective of any errors. It is used along with the try-catch block.

Description : Bronchodilators are useful in cough (a) Only when cough is non-productive (b) Only when cough is associated with thick sticky secretions (c) Only when reflex bronchoconstriction is associated (d) ... Rise in blood pressure (b) Muscle tremor (c) Hyperglycaemia (d) Central nervous system stimulation

Last Answer : Ans: B

Description : Choose the correct statement about the role of opioid antimotility drugs in the management of diarrhoeas (a) They are used to control diarrhoea irrespective of its etiology (b) They should be ... therapy of diarrhoea (d) They are the drugs of choice in irritable bowel syndrome diarrhoea

Last Answer : Ans: B

Description : The normal stress is same in all directions at a point in a fluid (A) Only when the fluid is frictionless (B) Only when the fluid is incompressible and has zero viscosity (C) When there ... to an adjacent layer (D) Irrespective of the motion of one fluid layer relative to an adjacent layer

Last Answer : Answer: Option C

Description : A patient suffers a blow to his maxillary central incisor without resulting in fracture. The pulp may: A. Show immediate necrosis B. Become non-vital but only if treatment is delayed too long C. Become non vital irrespective of treatment D. No changes are seen later if fracture does not occur

Last Answer : C. Become non vital irrespective of treatment

Description : Bronchodilators are useful in cough: A. Only when cough is nonproductive B. Only when cough is associated with thick sticky secretions C. Only when reflex bronchoconstriction is associated D. Irrespective of nature of cough or associated features

Last Answer : C. Only when reflex bronchoconstriction is associated

Description : Disease modifying antirheumatic drugs are indicated in rheumatoid arthritis: A. In place of NSAIDs in patients who donot tolerate the latter B. Along with NSAIDs in patients with progressive ... to afford symptomatic relief D. In all patients irrespective of disease status/ concurrent medication

Last Answer : B. Along with NSAIDs in patients with progressive disease

Description : What is/are the characteristics of Hot Money ? A. The term is used for fresh currency notes issued by RBI B. It is the fund which inflows in the market to take advantage of high interest rates C. It ... in the market to create imbalance in the stock markets D. All of the Above E. None of the Above

Last Answer : B. It is the fund which inflows in the market to take advantage of high interest rates Explanation: Hot money is currency that moves regularly, and quickly, between financial markets so investors ensure they are getting the highest short-term interest rates available.

Description : Programs are executed on the basis of a priority number in a: a) Batch processing system b) Multi-Programming c) Time sharing d) Real Time e) None of these

Last Answer : a) Batch processing system

Description : In case of cantilever, irrespective of the type of loading the maximum bendry moment and maximum shear force occur at a.107 dynes b.Free end c.2/3 of the length, from the free end d.Centre of the beam e.Fixed end

Last Answer : e. Fixed end

Description : The tension in the wire rope supporting a lift moving with a uniform velocity a.Is more when the lift is moving upwards b.Is more when the lift is moving downwards c.Is less when the lift ... down-wards d.Is less when the lift is moving upwards e.Remains constant irrespective of the lift movement

Last Answer : e. Remains constant irrespective of the lift movement

Description : The advantage of following the IEEE Standard for drawing up a Project Management Plan (SPMP) - see IEEE Standard 1059.1 1987 - is a) It is drawn up by representatives from major  ... each organisation for a  particular applicationarea, development team or  technique. e) All of the above.

Last Answer : e) All of the above.

Description : Programs are executed on the basis of a priority number in a A) Batch processing system B) Multiprogramming C) Time sharing D) None of these

Last Answer : Answer : B

Description : The ___________ contains the address of the next instruction to be executed. a) IR b) PC c) Accumulator d) System counter

Last Answer : Answer: b Explanation: PC stands for program counter (It contains the address of the next instruction to be executed)

Description : The operation executed on data stored in registers is called_______ A. Macro-operation B. Micro-operation C. Bit-operation D. None of the Above

Last Answer : B. Micro-operation

Description : _______ is a programming language that is interpreted & executed directly by the computer: a) Machine Language b) Assembly Language c) HTML d) None of These

Last Answer : a) Machine Language

Description : Concurrent Process are: a) process that do not overlap in time b) process that overlap in time c) process that are executed by a processor at the same time d) None of The Above

Last Answer : b) process that overlap in time

Description : The register which keeps track of the execution of a program and which contains the memory address of the instruction currently being executed is known as: a) Index Register b) Memory Address Register c) Program Counter d) None of The Above

Last Answer : c) Program Counter

Description : ..... is a set of Keywords, s symbols, and a system of rules for constructing statements by which humans can communicate the instructions to be executed by a computer... 1) A Computer Program 2) A Programming Language 3) An Assembler 4) Syntax

Last Answer : 2) A Programming Language

Description : When a computer is first turned on or restarted, a special type of absolute loader called____ is executed 1) Compile and Go loader 2) Boot loader 3) Bootstrap loader 4) Relating loader

Last Answer : 3) Bootstrap loader

Description : If the value of basic = 1500, what will be the value of tax after the following statement is executed tax = basic > 1200 ? 200 : 100

Last Answer : Ans. 200

Description : When a computer is first turned on or restarted, a special type of absolute loader called____ is executed 1 Compile and Go loader 2 Boot loader 3 Bootstrap loader 4 Relating loader

Last Answer : 3 Bootstrap loader

Description : What is the output when following statement is executed ? >>>"a"+"bc" a) a b) bc c) bca d) abc

Last Answer : b) bc

Description : Which of the following is the operation executed on data stored in registers? (1) Bitoperation (2) Macrooperation (3) Microoperation (4) Byteoperation 

Last Answer : Microoperation

Description : What data does a sample of pure water irrespective of its source contains 11.1 hydrogen and 88.9 oxygen support?

Last Answer : It might have supported Proust's law or the law of definitecomposition, or law of constant composition. But unfortunately thedata used are not accurate. The correct proportions, based onrelative atomic masses of hydrogen and oxygen being 1.008 and15.999 give the results as 11.2% and 88.8%.

Description : When earth fault occurs: a) voltage potential at the earth mat increases due to grounding b) voltage potential at the earth mat decreases due to grounding c) voltage potential at the earth mat remains zero irrespective of fault d) none of the above

Last Answer : Ans: A