1. Which of the following can be used to terminate a while loop and transfer control outside the loop? exit while continue exit statement break goto






Write Comment

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Tags
Show Similar Question And Answers
QA->The Indian woman dentist who died in Ireland from blood poisoning after doctors allegedly refused to terminate her 17-week-long pregnancy despite a miscarriage, telling her that "this is a Catholic country"?....
QA->The DMA transfer technique where the transfer of one word data at a time:....
QA->Who has resigned as Pakistan head coach following his side"s group-stage exit at the World Twenty20?....
QA->Telecommunications giant who will buy Yahoo’s core web and advertising business for $.83 billion and continue to operate them under the Yahoo name?....
QA->Which country has officially blocked Facebook, YouTube, Twitter and South Korean websites in April 2016 in a bid to further control access to outside information?....
MCQ->Which of the following can be used to terminate a while loop and transfer control outside the loop? exit while continue exit statement break goto....
MCQ->Which of the following statements are correct? The switch statement is a control statement that handles multiple selections and enumerations by passing control to one of the case statements within its body. The goto statement passes control to the next iteration of the enclosing iteration statement in which it appears. Branching is performed using jump statements which cause an immediate transfer of the program control. A common use of continue is to transfer control to a specific switch-case label or the default label in a switch statement. The do statement executes a statement or a block of statements enclosed in {} repeatedly until a specified expression evaluates to false.....
MCQ->Which of the following sentences are correct about a for loop in a C program? 1: for loop works faster than a while loop. 2: All things that can be done using a for loop can also be done using a while loop. 3: for(;;); implements an infinite loop. 4: for loop can be used if we want statements in a loop get executed at least once.....
MCQ-> Read the following passage carefully and answer the questions given at the end.The movement to expel the Austrians from Italy and unite Italy under a republican government had been gaining momentum while Garibaldi was away. There was a growing clamour, not just from Giuseppe Mazzini's republicans, but from moderates as well, for a General capable of leading Italy to independence. Even the King of Piedmont, for whom Garibaldi was still an outlaw under sentence of death, subscribed to an appeal for a sword for the returning hero. Meanwhile, the 'year of revolutions', 1848, had occurred in which Louis Philippe had been toppled from the French throne. In Austria, an uprising triggered off insurrections in Venice and Milan, and the Austrian garrisons were forced out. The King of Piedmont, Charles Albert ordered his troops to occupy these cities. There had also been insurrections in Sicily, causing the King Ferdinand II, to grant major constitutional freedoms in 1849, prompting both the Pope and Charles Albert to grant further concessions.Meanwhile, largely ignorant of these developments, Garibaldi was approaching Italy at a leisurely pace, arriving at Nice on 23 June 1848 to a tumultuous reception. The hero declared himself willing to fight and lay down his life for Charles Albert, who he now regarded as a bastion of Italian nationalism.Mazzini and the republicans were horrified, regarding this as outright betrayal: did it reflect Garibaldi's innate simple-mindedness, his patriotism in the war against Austria, or was it part of a deal with the monarchy? Charles Albert had pardoned Garibaldi, but to outward appearances he was still very wary of the General and the Italian Legion he had amassed of 150 'brigands'. The two men met near Mantua, and the King appeared to dislike him instantly. He suggested that Garibaldi's men should join his army and that Garibaldi should go to Venice and captain a ship as a privateer against the Austrians.Garibaldi, meanwhile, met his former hero Mazzini for the first time, and again the encounter was frosty. Seemingly rebuffed on all sides, Garibaldi considered going to Sicily to fight King Ferdinand II of Naples, but changed his mind when the Milanese offered him the post of General - something they badly needed when Charles Albert's Piedmontese army was defeated at Custoza by the Austrians. With around 1,000 men, Garibaldi marched into the mountains at Varese, commenting bitterly: 'The King of Sardinia may have a crown that he holds on to by dint of misdeeds and cowardice, but my comrades and I do not wish to hold on to our lives by shameful actions'.The King of Piedmont offered an armistice to the Austrians and all the gains in northern Italy were lost again. Garibaldi returned to Nice and then across to Genoa, where he learned that, in September 1848, Ferdinand II had bombed Messina as a prelude to invasion - an atrocity which caused him to be dubbed 'King Bomba'. Reaching Livorno he was diverted yet again and set off across the Italian peninsula with 350 men to come to Venice's assistance, but on the way, in Bologna, he learned that the Pope had taken refuge with King Bomba. Garibaldi promptly altered course southwards towards Rome where he was greeted once again as a hero. Rome proclaimed itself a Republic. Garibaldi's Legion had swollen to nearly 1,300 men, and the Grand Duke of Tuscany fled Florence before the advancing republican force.However, the Austrians marched southwards to place the Grand Duke of Tuscany back on his throne. Prince Louis Napoleon of France despatched an army of 7,000 men under General Charles Oudinot to the port of Civitavecchia to seize the city. Garibaldi was appointed as a General to defend Rome.The republicans had around 9,000 men, and Garibaldi was given control of more than 4,000 to defend the Janiculum Hill, which was crucial to the defence of Rome, as it commanded the city over the Tiber. Some 5,000 well-equipped French troops arrived on 30 April 1849 at Porta Cavallegeri in the old walls of Rome, but tailed to get through, and were attacked from behind by Garibaldi, who led a baton charge and was grazed by a bullet slightly on his side. The French lost 500 dead and wounded, along with some 350 prisoners, to the Italians, 200 dead and wounded. It was a famous victory, wildly celebrated by the Romans into the night, and the French signed a tactical truce.However, other armies were on the march: Bomba's 12,500-strong Neapolitan army was approaching from the south, while the Austrians had attacked Bologna in the north. Garibaldi too, a force out of Rome and engaged in a flanking movement across the Neapolitan army's rear at Castelli Romani; the Neapolitans attacked and were driven off leaving 50 dead. Garibaldi accompanied the Roman General, Piero Roselli, in an attack on the retreating Neapolitan army. Foolishly leading a patrol of his men right out in front of his forces, he tried to stop a group of his cavalry retreating and fell under their horses, with the enemy slashing at him with their sabres. He was rescued by his legionnaires, narrowly having avoided being killed, but Roselli had missed the chance to encircle the Neapolitan army.Garibaldi boldly wanted to carry the fight down into the Kingdom of Naples, but Mazzini, who by now was effectively in charge of Rome, ordered him back to the capital to face the danger of Austrian attack from the north. In fact, it was the French who arrived on the outskirts of Rome first, with an army now reinforced by 30,000. Mazzini realized that Rome could not resist and ordered a symbolic stand within the city itself, rather than surrender, for the purposes of international propaganda and to keep the struggle alive, whatever the cost. On 3 June the French arrived in force and seized the strategic country house, Villa Pamphili.Garibaldi rallied his forces and fought feverishly to retake the villa up narrow and steep city streets, capturing it, then losing it again. By the end of the day, the sides had 1,000 dead between them. Garibaldi once again had been in the thick of the fray, giving orders to his troops and - fighting, it was said, like a lion. Although beaten 'off for the moment, the French imposed a siege in the morning, starving the city of provisions and bombarding its beautiful centre.On 30 June the French attacked again in force, while Garibaldi, at the head of his troops, fought back ferociously. But there was no prospect of holding the French off indefinitely, and Garibaldi, decided to take his men out of the city to continue resistance in the mountains. Mazzini fled to Britain while Garibaldi remained to fight for the cause. He had just 4,000 men, divided into two legions, and faced some 17,000 Austrians and Tuscans in the north, 30,000 Neapolitans and Spanish in the south, and 40,000 French in the west. He was being directly pursued by 8,000 French and was approaching Neapolitan and Spanish divisions of some 18,000 men. He stood no chance whatever. The rugged hill country was ideal, however, for his style of irregular guerrilla warfare, and he manoeuvred skilfully, marching and counter-marching in different directions, confounding his pursuers before finally aiming for Arezzo in the north. But his men were deserting in droves and local people were hostile to his army: he was soon reduced to 1500 men who struggled across the high mountain passes to San Marino where he found temporary. refuge.The Austrians, now approaching, demanded that he go into exile in America. He was determined to fight on and urged the ill and pregnant Anita, his wife, to stay behind in San Marino, but she would not hear of it. The pair set off with 200 loyal soldiers along the mountain tracks to the Adriatic coast, from where Garibaldi intended to embark for Venice which was still valiantly holding out against the Austrians. They embarked aboard 13 fishing boats and managed to sail to within 50 miles of the Venetian lagoon before being spotted by an Austrian flotilla and fired upon.Only two of Garibaldi's boats escaped. He carried Anita through the shallows to a beach and they moved further inland. The ailing Anita was placed in a cart and they reached a farmhouse, where she died. Her husband broke down into inconsolable wailing and she was buried in a shallow grave near the farmhouse, but was transferred to a churchyard a few days later. Garibaldi had no time to lose; he and his faithful companion Leggero escaped across the Po towards Ravenna.At last Garibaldi was persuaded to abandon his insane attempts to reach Venice by sea and to return along less guarded routes on the perilous mountain paths across the Apennines towards the western coast of Italy. He visited his family in Nice for an emotional reunion with his mother and his three children - but lacked the courage to tell them what had happened to their mother.Find the correct statement:
 ....
MCQ-> Read the following passage carefully and answer the questions given below it. Certain words/phrases have been printed in bold tohelp you locate them while answering some of the questions. During the last few years, a lot of hype has been heaped on the BRICS (Brazil, Russia, India, China, and South Africa). With their large populations and rapid growth, these countries, so the argument goes, will soon become some of the largest economies in the world and, in the case of China, the largest of all by as early as 2020. But the BRICS, as well as many other emerging-market economieshave recently experienced a sharp economic slowdown. So, is the honeymoon over? Brazil’s GDP grew by only 1% last year, and may not grow by more than 2% this year, with its potential growth barely above 3%. Russia’s economy may grow by barely 2% this year, with potential growth also at around 3%, despite oil prices being around $100 a barrel. India had a couple of years of strong growth recently (11.2% in 2010 and 7.7% in 2011) but slowed to 4% in 2012. China’s economy grew by 10% a year for the last three decades, but slowed to 7.8% last year and risks a hard landing. And South Africa grew by only 2.5% last year and may not grow faster than 2% this year. Many other previously fast-growing emerging-market economies – for example, Turkey, Argentina, Poland, Hungary, and many in Central and Eastern Europe are experiencing a similar slowdown. So, what is ailing the BRICS and other emerging markets? First, most emerging-market economies were overheating in 2010-2011, with growth above potential and inflation rising and exceeding targets. Many of them thus tightened monetary policy in 2011, with consequences for growth in 2012 that have carried over into this year. Second, the idea that emerging-market economies could fully decouple from economic weakness in advanced economies was farfetched : recession in the eurozone, near-recession in the United Kingdom and Japan in 2011-2012, and slow economic growth in the United States were always likely to affect emerging market performance negatively – via trade, financial links, and investor confidence. For example, the ongoing euro zone downturn has hurt Turkey and emergingmarket economies in Central and Eastern Europe, owing to trade links. Third, most BRICS and a few other emerging markets have moved toward a variant of state capitalism. This implies a slowdown in reforms that increase the private sector’s productivity and economic share, together with a greater economic role for state-owned enterprises (and for state-owned banks in the allocation of credit and savings), as well as resource nationalism, trade protectionism, import substitution industrialization policies, and imposition of capital controls. This approach may have worked at earlier stages of development and when the global financial crisis caused private spending to fall; but it is now distorting economic activity and depressing potential growth. Indeed, China’s slowdown reflects an economic model that is, as former Premier Wen Jiabao put it, “unstable, unbalanced, uncoordinated, and unsustainable,” and that now is adversely affecting growth in emerging Asia and in commodity-exporting emerging markets from Asia to Latin America and Africa. The risk that China will experience a hard landing in the next two years may further hurt many emerging economies. Fourth, the commodity super-cycle that helped Brazil, Russia, South Africa, and many other commodity-exporting emerging markets may be over. Indeed, a boom would be difficult to sustain, given China’s slowdown, higher investment in energysaving technologies, less emphasis on capital-and resource-oriented growth models around the world, and the delayed increase in supply that high prices induced. The fifth, and most recent, factor is the US Federal Reserve’s signals that it might end its policy of quantitative easing earlier than expected, and its hints of an even tual exit from zero interest rates. both of which have caused turbulence in emerging economies’ financial markets. Even before the Fed’s signals, emergingmarket equities and commodities had underperformed this year, owing to China’s slowdown. Since then, emerging-market currencies and fixed-income securities (government and corporate bonds) have taken a hit. The era of cheap or zerointerest money that led to a wall of liquidity chasing high yields and assets equities, bonds, currencies, and commodities – in emerging markets is drawing to a close. Finally, while many emerging-market economies tend to run current-account surpluses, a growing number of them – including Turkey, South Africa, Brazil, and India – are running deficits. And these deficits are now being financed in riskier ways: more debt than equity; more short-term debt than longterm debt; more foreign-currency debt than local-currency debt; and more financing from fickle cross-border interbank flows. These countries share other weaknesses as well: excessive fiscal deficits, abovetarget inflation, and stability risk (reflected not only in the recent political turmoil in Brazil and Turkey, but also in South Africa’s labour strife and India’s political and electoral uncertainties). The need to finance the external deficit and to avoid excessive depreciation (and even higher inflation) calls for raising policy rates or keeping them on hold at high levels. But monetary tightening would weaken already-slow growth. Thus, emerging economies with large twin deficits and other macroeconomic fragilities may experience further downward pressure on their financial markets and growth rates. These factors explain why growth in most BRICS and many other emerging markets has slowed sharply. Some factors are cyclical, but others – state capitalism, the risk of a hard landing in China, the end of the commodity supercycle -are more structural. Thus, many emerging markets’ growth rates in the next decade may be lower than in the last – as may the outsize returns that investors realised from these economies’ financial assets (currencies, equities. bonds, and commodities). Of course, some of the better-managed emerging-market economies will continue to experitnce rapid growth and asset outperformance. But many of the BRICS, along with some other emerging economies, may hit a thick wall, with growth and financial markets taking a serious beating.Which of the following statement(s) is/are true as per the given information in the passage ? A. Brazil’s GDP grew by only 1% last year, and is expected to grow by approximately 2% this year. B. China’s economy grew by 10% a year for the last three decades but slowed to 7.8% last year. C. BRICS is a group of nations — Barzil, Russia, India China and South Africa.....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions