adplus-dvertising

Welcome to the C Programming Fundamentals MCQs Page

Dive deep into the fascinating world of C Programming Fundamentals with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of C Programming Fundamentals, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of C Programming Fundamentals, 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 C Programming Fundamentals. 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 C Programming Fundamentals. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

C Programming Fundamentals MCQs | Page 4 of 24

Q31.
Which is the only function all C programs must contain?
Discuss
Answer: (c).main()
Q32.
Which of the following is not a correct variable type?
Discuss
Answer: (b).real
Q33.
What number would be shown on the screen after the following statements of C are executed?
char ch; 
int i; 
ch = 'G'; 
i = ch-'A';
printf("%d", i);

a.

5

b.

6

c.

7

d.

8

Discuss
Answer: (b).6
Q34.
Which of following is not a valid name for a C variable?
Discuss
Answer: (c).computer scibits
Q35.
Find the output of the following program.
void main() { int i=01289; printf("%d", i); }
Discuss
Answer: (d).Syntax error
Q36.
Find the output of the following program.
void main()
{
   int i=065, j=65;
   printf("%d %d", i, j);
}
Discuss
Answer: (a).53 65
Q37.
If ASCII value of 'x' is 120, then what is the value of the H, if
H = ('x' – 'w' ) / 3;

a.

1

b.

2

c.

3

d.

0

Discuss
Answer: (d).0
Discuss
Answer: (d).A declaration occurs once, but a definition may occur many times
Q39.
"My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above.
Discuss
Answer: (d).printf("My salary was increased by 15%%!");
Q40.
Assuming a short is two bytes long, what will be printed by the below code?
short testarray[4][3] = { {1}, {2,3}, {4,5,6}};
printf("%d", sizeof(testarray));
Discuss
Answer: (c).24
Page 4 of 24

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!