C Questions and Answers – Non-Local Jumps – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Non-Local Jumps – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which of the following header file defines one function longjmp(), and one variable type jmp_buf? a) stdarg.h b) locale.h c) setjmp.h d) stdlib.h 2. Which of the … Read more

advertisement

C Questions and Answers – Localization

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Localization”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which header file is used to define data formats and currency symbols? a) setjmp.h b) locale.h c) stdarg.h d) assert.h 2. Which among the given macros is defined in the … Read more

advertisement

C Questions and Answers – Variable Argument Lists

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Variable Argument Lists”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. How many macros are defined in the header file stdarg.h? a) one b) two c) three d) four 2. The header file stdarg.h defines a variable type ________ … Read more

advertisement

C Questions and Answers – Diagnostics – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Diagnostics – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. The following message is displayed in stderr. Assertion failed: expression, file filenum, line nmn a) true b) false 2. The source filename and line number come from the … Read more

advertisement

C Questions and Answers – Diagnostics – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Diagnostics – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. The header file assert.h of the C Standard Library defines ________ macro. a) stderr b) stdarg c) setjmp d) assert 2. What is the name of the macro … Read more

advertisement

C Questions and Answers – General Utilities – 6

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “General Utilities – 6”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What will the code display on compiling? void funccall() { printf("this is funccall\n"); } void main () { atexit(funccall); printf("program starts\n"); printf("program ends\n"); } a) program starts … Read more

advertisement

C Questions and Answers – General Utilities – 5

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “General Utilities – 5”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. The number of bytes contained in the multibyte character pointed to by a character is ___________ a) getenv() b) bsearch() c) mblen() d) qsort() 2. The pointer … Read more

advertisement

C Questions and Answers – General Utilities – 4

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “General Utilities – 4”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which of the given function is used for searching? a) lsearch() b) bsearch() c) csearch() d) qsearch() 2. Which function is called repeatedly by bsearch() to compare … Read more

advertisement

C Questions and Answers – General Utilities – 3

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “General Utilities – 3”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. void free(void *ptr) deallocates the memory previously allocated by a call to _______ ________ or _________ a) malloc,getenv,abort b) calloc,malloc,exit c) calloc,malloc,realloc d) exit,getenv,abort 2. The ________ … Read more

advertisement

C Questions and Answers – General Utilities – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “General Utilities – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What will be the output of the following C code? char word[20 ] = "1.234555 WELCOME"; char *w; double dis; dis= strtod(word, &w); printf("The number is %lf\n", … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.