C++ Programming | MCQs

    Q11: In C programming, preprocessor directives start with _____ character.

    سی پروگرامنگ میں ، پری پروسیسر ہدایات _____ کردار سے شروع ہوتی ہیں۔
    • A. %
    • B. *
    • C. #
    • D. None of these
    • A. output("Hello");
    • B. printf("Hello");
    • C. print("Hello");
    • D. display("Hello");

    Q13: Which loop structure is not available in C programing?

    سی پروگرامنگ میں کون سا لوپ ڈھانچہ دستیاب نہیں ہے؟
    • A. Do-until
    • B. For
    • C. Do-while
    • D. While
    • A. String variable
    • B. Integer variable
    • C. None of these
    • D. Character variable
    • A. None of these
    • B. 4
    • C. 5
    • D. 3

    Q16: Which type of loop is commonly used to iterate through an array in C?

    کس قسم کا لوپ عام طور پر سی میں ایک صف کے ذریعے تکرار کرنے کے لیے استعمال ہوتا ہے؟
    • A. For loop
    • B. While loop
    • C. Switch loop
    • D. If loop
    • A. Both A & B
    • B. None of these
    • C. One
    • D. More
    • A. *ptr
    • B. ©ptr
    • C. None of these
    • D. ptr*
✅ Correct: 0 | ❌ Wrong: 0 | 📊 Total Attempted: 0