C Questions and Answers – String Operations – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “String Operations – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. There are two groups of string functions defined in the header <string.h>. What are they? a) first group names beginning with str; second group names beginning with … Read more

advertisement

C Questions and Answers – Typedef

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Typedef”. Pre-requisite for C Typedef MCQ set: Video Tutorial on C Typedef. 1. Which of the following keywords is used to define an alternate name for an already existing data type? a) default b) volatile c) typedef d) static 2. We want to … Read more

advertisement

C Questions and Answers – Enums – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Enums – 2”. Pre-requisite for C Enums MCQ set: Video Tutorial on C Enums (Enumeration). 1. What will be the output of the following C code? main() { enum resut {pass, fail}; enum result s1,s2; s1=pass; s2=fail; printf("%d",s1); } a) error b) pass … Read more

advertisement

C Questions and Answers – Enums – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Enums – 1”. Pre-requisite for C Enums MCQ set: Video Tutorial on C Enums (Enumeration). 1. A user defined data type, which is used to assign names to integral constants is called ____________ a) Union b) Array c) Structure d) Enum 2. What … Read more

advertisement

C Programming Questions and Answers – Sizeof Keyword – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Sizeof Keyword – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which among the following is never possible in C when members are different in a structure and union? //Let P be a structure //Let Q be a … Read more

advertisement

C Programming Questions and Answers – Sizeof Keyword – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Sizeof Keyword – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What is the sizeof(char) in a 32-bit C compiler? a) 1 bit b) 2 bits c) 1 Byte d) 2 Bytes 2. What will be the output … Read more

advertisement

C Programming Questions and Answers – Float Datatype – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Float Datatype – 2”. Pre-requisite for C Float Datatype MCQ set: Video Tutorial on C Data Types. 1. What will be the output of the following C code? #include <stdio.h> printf("%.0f", 2.89); a) 2.890000 b) 2.89 c) 2 d) 3 2. What will … Read more

advertisement

C Programming Questions and Answers – Float Datatype – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Float Datatype – 1”. Pre-requisite for C Float Datatype MCQ set: Video Tutorial on C Data Types. 1. How many digits are present after the decimal in float value? a) 1 b) 3 c) 6 d) 16 2. Which among the following is … Read more

advertisement

C Questions and Answers – File Operations – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “File Operations – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. what is the function of fputs()? a) read a line from a file b) read a character from a file c) write a character to a file … Read more

advertisement

C Questions and Answers – File Operations – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “File Operations – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which one of the following is correct syntax for opening a file. a) FILE *fopen(const *filename, const char *mode) b) FILE *fopen(const *filename) c) FILE *open(const *filename, … 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.