adplus-dvertising

Welcome to the Strings MCQs Page

Dive deep into the fascinating world of Strings with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Strings, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Strings, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Strings. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Strings. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Strings MCQs | Page 10 of 14

Q91.
What will be the output of the program ?
#include <stdio.h>
int main()
{
    
 int a[5]={5,1,15,20,25};
    int i,j,m;
    i = ++a[1];
 j = a[1]++; 
    m = a[i++];
 printf("%d, %d, %d", i, j, m);
   
    return 0;
}
Discuss
Answer: (a).3,2,15
Q92.
Enumeration (or enum) is a ______ data type in C.
Discuss
Answer: (a).user defined
Q93.
If we do not explicitly assign values to enum names, the compiler by default assigns values to ?
Discuss
Answer: (c).0
Discuss
Answer: (b).unique in their scope
Q95.
String handling functions such as strcmp(), strcpy() etc can be used with enumerated types.
Discuss
Answer: (b).False
Discuss
Answer: (a).Two enum symbols cannot have the same value
Q97.
Arithmetic operations are not allowed on enumerated constants.
Discuss
Answer: (b).False
Discuss
Answer: (a).enum flag{constant1, constant2, constant3, ....... };
Discuss
Answer: (b).String is an array of Characters with null character as the last element of array.
Discuss
Answer: (a).Character array, ary is a string.

Suggested Topics

Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!