C-CATSection B: C, C++, DSA, OS, Networking & AI•20 Questions
C Programming Practice MCQs
Topic Covered in this Question Set
Introduction to C Programming; C Program Structure; Data Types and Variables
Click on an option to check your answer immediately. Full solution & explanation provided for every question.
Interactive Practice Mode
C Programming Free MCQs
Select an option to test your knowledge with real exam questions and instant explanations.
Total20
Correct0
Wrong0
Progress: 0 of 20 answered0% Accuracy
Q1 of 20
Which data type is most suitable to store the number 65000 on a 32-bit system?
Q2 of 20
What is printed? ```c signed char a = 322; unsigned char b = -1; printf("%d %d %c", b-a, sizeof(a=1), a); ```
Q11 of 20
Output? ```c typedef struct { int a1; char ch; } demo_t; demo_t s1={1}, s2={1}; if (s1 == s2) ... else ... ```
Q13 of 20
Output? ```c union demo { int a1; unsigned k1:2; unsigned char s1:6; } st; st.s1=127; st.k1=8; st.a1=15; int *p = st.a1; ++*p; // Treating int as pointer … ```
Q14 of 20
What does the following code print? ```c short x = 32767; x = x + 1; printf("%d\n", x); ```
Need to review the concepts?
Read Free Study Notes →Read C Programming Study Notes
Review complete topic notes, syntax guides, code examples, and summary tables.