Quiz-1

Q 1. What does a default headers file contain? / डिफ़ॉल्ट हेडर फ़ाइल में क्या होता है

  1. prototype
  2. implementations
  3. declarations
  4. pointing
View Answer Watch Solution Video

Q 2. A programmer can create custom header files that must be end with / एक प्रोग्रामर कस्टम हेडर फाइल बना सकता है जिसे समाप्त होना चाहिए

  1. .h extension
  2. .i extension
  3. ios extension
  4. .a extension
View Answer Watch Solution Video

Q 3. What is the output of C Program.? / सी प्रोग्राम का आउटपुट क्या होता है?
int main()
{
int a=0;
a = printf("4");
printf("%d",a);
return 0;
}

  1. 04
  2. compiler error
  3. 40
  4. 41
View Answer Watch Solution Video

Q 4. Which of the following comment is correct when a macro definition includes arguments? / मैक्रो परिभाषा में तर्क शामिल होने पर निम्नलिखित में से कौन सी टिप्पणी सही है?

  1. The opening parenthesis should immediately follow the macro name.
  2. There should be at least one blank between the macro name and the opening parenthesis.
  3. There should be only one blank between the macro name and the opening parenthesis.
  4. All the above comments are correct.
View Answer Watch Solution Video

Q 5. What is the control character for "a single character". / "एकल वर्ण" के लिए नियंत्रण वर्ण क्या है।

  1. %c
  2. %d
  3. %i
  4. %p
View Answer Watch Solution Video

Q 6. Which is more appropriate for reading in a multi-word string? / बहु-शब्द स्ट्रिंग में पढ़ने के लिए कौन सा अधिक उपयुक्त है?

  1. gets( )
  2. printf( )
  3. scanf( )
  4. puts ( ).
View Answer Watch Solution Video

Q 7. malloc() function used in dynamic allocation is available in which header file? / डायनामिक आवंटन में प्रयुक्त malloc () फ़ंक्शन किस हेडर फ़ाइल में उपलब्ध है?

  1. stdio.h
  2. stdlib.h
  3. conio.h
  4. mem.h
View Answer Watch Solution Video

Q 8. The printf() function retunes which value when an error occurs? / जब कोई त्रुटि होती है तो Printf () फ़ंक्शन किस मान को फिर से ट्यून करता है?

  1. Positive value
  2. Zero
  3. Negative value
  4. None of these
View Answer Watch Solution Video

Q 9. Which escape character can be used to beep from speaker in C? / C में स्पीकर से बीप करने के लिए किस एस्केप कैरेक्टर का उपयोग किया जा सकता है?

  1. \a
  2. \b
  3. \m
  4. \n
View Answer Watch Solution Video

Q 10. Which of the following is library function of studio.h header file in C language?/ निम्नलिखित में से कौन सी भाषा में Studio.h हेडर फाइल का लाइब्रेरी फंक्शन है?

  1. getc()
  2. putc()
  3. printf()
  4. all of these
View Answer Watch Solution Video