C Questions and Answers – General Utilities – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “General Utilities – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. _______variable type defined in the header stdlib.h is an integer type of the size of a wide character constant. a) size_t b) wchar_t c) div_t d) ldiv_t … Read more

advertisement

C Questions and Answers – Mathematical Functions – 3

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Mathematical Functions – 3”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which of the following statement is correct? double x, y, z; x = 5.123456; z= modf(x, *y); a) y stores integer part of x, z returns fractional … Read more

advertisement

C Questions and Answers – Mathematical Functions – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Mathematical Functions – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What does the given C code do? double atan2 (double y, double x); a) The atan2 function returns the arc tangent of x/y b) The atan2 function … Read more

advertisement

C Questions and Answers – Mathematical Functions – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Mathematical Functions – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which of the following header declares mathematical functions and macros? a) math.h b) assert.h c) stdmat. h d) stdio. h 2. All the functions in this library … Read more

advertisement

C Questions and Answers – Error Handling

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Error Handling”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. _______ occurs when a result is too large in magnitude to represent errors as a floating-point value of the required type. a) underflow b) significance loss c) domain d) … Read more

advertisement

C Questions and Answers – Character Handling – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Character Handling – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. The________function converts an uppercase letter to the corresponding lowercase letter. a) islower() b) isupper() c) toupper() d) tolower() 2. The toupper() function converts a ______ to the … Read more

advertisement

C Questions and Answers – Character Handling – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Character Handling – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which header declares several functions useful for testing and mapping characters? a) assert.h b) stdio.h c) ctype.h d) errno.h 2. The______function tests for any character for which … Read more

advertisement

C Questions and Answers – String Operations – 4

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “String Operations – 4”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What will be returned in the following C code? size- t strlen(const char *s) const char *sc; for(sc = s; *sc!= ‘ \ O ‘ ; ++sc) … Read more

advertisement

C Questions and Answers – String Operations – 3

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “String Operations – 3”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What is the return value of strxfrm()? a) length of the transformed string, not including the terminating null-character b) length of the transformed string, including the terminating … Read more

advertisement

C Questions and Answers – String Operations – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “String Operations – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which among the following is Copying function? a) memcpy() b) strcopy() c) memcopy() d) strxcpy() 2. Which function will you choose to join two words? a) strcpy() … 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.