Which shortcut key is used to compile and run the program in C++?…

2023

Which shortcut key is used to compile and run the program in C++?

----------------------------------------

C++ में प्रोग्राम को कम्पाइल और रन करने के लिए कौन-सी शॉर्टकट कुंजी उपयोग की जाती है?

  1. A.

    Alt+F9

  2. B.

    Alt+F5

  3. C.

    Ctrl+F9

  4. D.

    More than one of the above / उपर्युक्त में से एक से अधिक

  5. E.

    None of the above / उपर्युक्त में से कोई नहीं

Attempted by 210 students.

Show answer & explanation

Correct answer: C

In C++, the shortcut key used to compile and run a program depends on the Integrated Development Environment (IDE) being used. For example, in Turbo C++, Ctrl+F9 is commonly used to both compile and execute the program. This makes it a valid shortcut for the task. Other options like Alt+F9 may compile but not run, while Alt+F5 only runs the program without compiling. Option D suggests more than one shortcut works, but this is not universally true across all IDEs. Option E claims none are correct, which is false since Ctrl+F9 is a standard shortcut in some environments. Therefore, the most accurate answer is the one that reflects the correct and commonly used shortcut.

हिन्दी उत्तर: C++ में प्रोग्राम को कम्पाइल और रन करने के लिए शॉर्टकट कुंजी उपयोग करने वाले इंटीग्रेटेड डेवलपमेंट एनवायरनमेंट (IDE) पर निर्भर करती है। उदाहरण के लिए, टर्बो सी++ में Ctrl+F9 का उपयोग प्रोग्राम को कम्पाइल और एक साथ रन करने के लिए किया जाता है। इसलिए यह एक मानक शॉर्टकट है। अन्य विकल्प जैसे Alt+F9 केवल कम्पाइल कर सकता है लेकिन रन नहीं करता, जबकि Alt+F5 केवल रन करता है। विकल्प D का दावा है कि एक से अधिक शॉर्टकट काम करते हैं, लेकिन यह सभी IDE में सही नहीं है। विकल्प E कहता है कि कोई भी शॉर्टकट सही नहीं है, जो गलत है क्योंकि Ctrl+F9 कुछ वातावरणों में एक मानक शॉर्टकट है। इसलिए, सबसे सटीक उत्तर वह है जो सही और आम तौर पर उपयोग किए जाने वाले शॉर्टकट को दर्शाता है।

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs