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 |
Non Executable code in C programming is referred as __________.
Array | |
Comment | |
Statement | |
Variable |
Question 2 |
C Programming Supports ______ type(s) of Comments.
2 | |
1 | |
3 | |
4 |
Question 3 |
Which of the following is appropriate position for writing comment in C Programming ?
before calling the main function | |
anywhere in the code | |
before variable declaration section | |
before header file section |
Question 4 |
Which of the following Comments are used in C Programming ?
Multiple Line Comment | |
None of these | |
Single Line Comment | |
Enhanced Comment |
Question 5 |
Comments in C Programming are ignored by ________.
Browser | |
Interpreter | |
Compiler | |
None of these |
Question 6 |
Single line comments are denoted by _____.
\\ | |
// | |
*/ | |
/* |
Question 7 |
How many comment lines are present in the below program -
main() { printf("Hello World in C //Comment "); printf("Hello World in C "); //Comment //Comment printf("Hello World in C "); }
0 | |
1 | |
2 | |
3 |
Question 7 Explanation:
printf("Hello World in C //Comment ");
above statement contains comment as part of string so it will not be considered as comment.Question 8 |
Which of the comment can be split over multiple lines ?
Enhanced Comment | |
Single Line Comment | |
Multiple line comment | |
Combination of Single and Multi Line Comment |
Question 9 |
Identify the comment used in the following c program ?
/* following line is used to get - 1.Count of the Customer 2.It is going to Return Integer */ int var = getCount(str);
Multiple Line Comment | |
HTML Like comment | |
None of these | |
Single Line Comment |
Question 10 |
Comments are case Sensitive !
False | |
True |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
There are 10 questions to complete.