Congratulations - you have completed C Programming : Multiple Choice Questions. You scored %%SCORE%% out of %%TOTAL%%. Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1
Comments can be split over more than one line !!
A
False
B
True
Question 2
Nested Comments are not allowed in C Programming !!
A
True
B
False
Question 3
C Program can Contain Any number of Comments at Any Place !
A
True
B
False
Question 4
Guess the output of the following code -
/* This is /*Print Hello */ */
printf("Hello");
A
Stack Overflow
B
Compile Error
C
Garbage Value
D
Hello
Question 4 Explanation: 
Nested Comments not allowed
Question 5
How many comments are present in following C program ?
void main(/*Main Function*/)
{
int sample_comment; // Variable
printf("Enter the comment ID : ");
scanf("%d",/*Type Age*/&sample_comment);
printf("Comment is %d : ",/*Your comment here*/sample_comment);
getch()
}
A
3
B
4
C
3
D
5
Question 5 Explanation: 
1 Single Line and 3 Multiple Line Comments are present in the above c program
Question 6
C Programming comment is not used for any of the following purpose !!
A
Documentation Purpose
B
Specifying Author Information
C
Dynamic Memory Allocation
D
None of these
Question 7
Following is the example of nested comment.
/* Hello World // Sample Nested Comment */
Is it legal C Programming Comment ?
A
No
B
Yes
Question 7 Explanation: 
Nesting of Single Line Comment in Multiple Line Comment is allowed !!
Question 8
A Single C Program can have _______ Single Line and multiple line comments ?
A
None of these
B
1-10
C
Depends on the Number of Lines
D
Any Number of Comment
Question 9
Comments in C Program can be used for beautifying code !!
A
True
B
False
Question 10
Good Comment can improve the readability of the code and can reduce the complexity while understanding the code written by another author !!
A
True
B
False
Once you are finished, click the button below. Any items you have not completed will be marked incorrect. Get Results
There are 10 questions to complete.