1. Which of the following statements are correct about an if-else statements in a C-program? 1: Every if-else statement can be replaced by an equivalent statements using ?: operators 2: Nested if-else statements are allowed. 3: Multiple statements in an if block are allowed. 4: Multiple statements in an else block are allowed.





Write Comment

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

Comments

Tags
Show Similar Question And Answers
QA->In a Program Graph, ‘X’ is an if-then-else node. If the number of paths from start node to X is ‘p’ number of paths from if part to end node is ‘q’ and from else part to end node is ’r’, the total number of possible paths through X is :....
QA->Consider a Program Graph (PG) with statements as nodes and control as edges. Which of the following is not true for any PG?....
QA->A program Graph has ‘start’ and ‘end’ nodes. The total number of paths from start to end is equivalent to the -----------set of test data required to test the software.....
QA->A computer has 8 MB in main memory, 128 KB cache with block size of 4KB. If direct mapping scheme is used, how many different main memory blocks can map into a given physical cache block?....
QA->…………….means the annual financial statements and other statements prescribed under Rule 65 of Kerala Panchayat Raj (Accounts) Rules, 2011?....
MCQ->Which of the following statements are correct about an if-else statements in a C-program? 1: Every if-else statement can be replaced by an equivalent statements using ?: operators 2: Nested if-else statements are allowed. 3: Multiple statements in an if block are allowed. 4: Multiple statements in an else block are allowed.....
MCQ-> Questions are based on a set of conditions. In answering some of the questions, it may be useful to draw a rough diagram. Choose the response that most accurately and completely answers each question. A BPO has assigned duty to nine operators - Abdulla, Ballal, Chandan, Dogra, Eshita, Falguni, Ganguli, Henri and Indra - on Monday, January 05, 2009 from 00:00 hours. Each operator commences duty at any of the following hours: 00:00 hrs, 04:00 hrs, 08:00 hrs, 12:00 hrs, 16:00 hrs and 20:00 hrs. At any point in time, at least one operator is required, to take clients' calls. Each operator works continuously for eight hours. All operators located at any single location start work simultaneously. The operators took training in five different colleges -Abhiman College, Sutanama College, Gutakal College, Barala College and Khatanama College. These colleges are located in the cities Jamshedpur, Pune, Noida, Hyderabad and Mangalore, not necessarily in that order. The operators operate from the cities where their respective colleges are located. Indra operates alone from a city other than Mangalore and Jamshedpur. Operator(s) trained in Abhiman College will start working at 12:00 hrs. Only Dogra and Falguni operate from Pune, but they are not trained in Gutakal College. Three of the operators took training from Sutanama College, and they operate from Noida. The operator(s) from Jamshedpur will start working at 0:00 hrs. Abdulla and Henri operate together as a two member team from a single location. They do not operate from Mangalore. No operator(s) will join at 20:00 hrs. Ballal, who alone operates from his location, was not trained in Barala College, and will commence his duty four hours after the operator(s) trained in Gutakal College. The operator(s) trained in Barala College operate from Hyderabad. The number of operator(s) trained in Khatanama College is same as the number of operator(s) trained in Barala College.Which of the following statements must be true?
 ....
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-> I think that it would be wrong to ask whether 50 years of India's Independence are an achievement or a failure. It would be better to see things as evolving. It's not an either-or question. My idea of the history of India is slightly contrary to the Indian idea.India is a country that, in the north, outside Rajasthan, was ravaged and intellectually destroyed to a large extent by the invasions that began in about AD 1000 by forces and religions that India had no means of understanding.The invasions are in all the schoolbooks. But I don't think that people understand that every invasion, every war, every campaign, was accompanied by slaughter, a slaughter always of the most talented people in the country. So these wars, apart from everything else led to a tremendous intellectual depletion of the country.I think that in the British period, and in the 50 years after the British period, there has been a kind of regrouping or recovery, a very slow revival of energy and intellect. This isn't an idea that goes with the vision of the grandeur of old India and all that sort of rubbish. That idea is a great simplification and it occurs because it is intellectually, philosophically easier for Indians to manage.What they cannot manage, and what they have not yet come to terms with, is that ravaging of all the north of India by various conquerors. That was ruined not by the act of nature, but by the hand of man. It is so painful that few Indians have begun to deal with it. It is much easier to deal with British imperialism. That is a familiar topic, in India and Britain. What is much less familiar is the ravaging of India before the British.What happened from AD 1000 onwards, really, is such a wound that it is almost impossible to face. Certain wounds are so bad that they can't be written about. You deal with that kind of pain by hiding from it. You retreat from reality. I do not think, for example, that the Incas of Peru or the native people of Mexico have ever got over their defeat by the Spaniards. In both places the head was cut off. I think the pre-British ravaging of India was as bad as that.In the place of knowledge of history, you have various fantasies about the village republic and the Old Glory. There is one big fantasy that Indians have always found solace in: about India having the capacity for absorbing its conquerors. This is not so. India was laid low by its conquerors.I feel the past 150 years have been years of every kind of growth. I see the British period and what has continued after that as one period. In that time, there has been a very slow intellectual recruitment. I think every Indian should make the pilgrimage to the site of the capital of the Vijayanagar empire, just to see what the invasion of India led to. They will see a totally destroyed town. Religious wars are like that. People who see that might understand what the centuries of slaughter and plunder meant. War isn't a game. When you lost that kind of war, your town was destroyed, the people who built the towns were destroyed. You are left with a headless population.That's where modern India starts from. The Vijayanagar capital was destroyed in 1565. It is only now that the surrounding region has begun to revive. A great chance has been given to India to start up again, and I feel it has started up again. The questions about whether 50 years of India since Independence have been a failure or an achievement are not the questions to ask. In fact, I think India is developing quite marvelously, people thought — even Mr Nehru thought — that development and new institutions in a place like Bihar, for instance, would immediately lead to beauty. But it doesn't happen like that. When a country as ravaged as India, with all its layers of cruelty, begins to extend justice to people lower down, it's a very messy business. It's not beautiful, it's extremely messy. And that's what you have now, all these small politicians with small reputations and small parties. But this is part of growth, this is part of development. You must remember that these people, and the people they represent, have never had rights before.When the oppressed have the power to assert themselves, they will behave badly. It will need a couple of generations of security, and knowledge of institutions, and the knowledge that you can trust institutions — it will take at least a couple of generations before people in that situation begin to behave well. People in India have known only tyranny. The very idea of liberty is a new idea. The rulers were tyrants. The tyrants were foreigners. And they were proud of being foreign. There's a story that anybody could run and pull a bell and the emperor would appear at his window and give justice. This is a child's idea of history — the slave's idea of the ruler's mercy. When the people at the bottom discover that they hold justice in their own hands, the earth moves a little. You have to expect these earth movements in India. It will be like this for a hundred years. But it is the only way. It's painful and messy and primitive and petty, but it’s better that it should begin. It has to begin. If we were to rule people according to what we think fit, that takes us back to the past when people had no voices. With self-awareness all else follows. People begin to make new demands on their leaders, their fellows, on themselves.They ask for more in everything. They have a higher idea of human possibilities. They are not content with what they did before or what their fathers did before. They want to move. That is marvellous. That is as it should be. I think that within every kind of disorder now in India there is a larger positive movement. But the future will be fairly chaotic. Politics will have to be at the level of the people now. People like Nehru were colonial — style politicians. They were to a large extent created and protected by the colonial order. They did not begin with the people. Politicians now have to begin with the people. They cannot be too far above the level of the people. They are very much part of the people. It is important that self-criticism does not stop. The mind has to work, the mind has to be active, there has to be an exercise of the mind. I think it's almost a definition of a living country that it looks at itself, analyses itself at all times. Only countries that have ceased to live can say it's all wonderful.The central thrust of the passage is that
 ....
MCQ->Which of the following statements are correct? All operators in C#.NET can be overloaded. We can use the new modifier to modify a nested type if the nested type is hiding another type. In case of operator overloading all parameters must be of the different type than the class or struct that declares the operator. Method overloading is used to create several methods with the same name that performs similar tasks on similar data types. Operator overloading permits the use of symbols to represent computations for a type.....
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