Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.


Please wait...

C Programming :: Basic Concepts

Home > C Programming > Basic Concepts > General Questions

Answer: Option A

Explanation:

A source code is the input to the compiler. After the code has been compiled, we get the compiled code, which is basically not in a readable format. It can be just read by the machine. It is the work of the interpreter to execute this compiled code while execution of the program.

Hence, the correct option is A.

Workspace


Tags:  No Tags on this question yet!

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

74. #include
main()
{
scanf("%d");
printf();
}
which of the following is correct?

Answer: Option A

Explanation:

It will result to compilation error.

The return type of main() is not mentioned. Also, in the scanf() function, for the format specifier %d, there is no matching int argument. Moreover, printf() contains no argument.

Workspace


Tags:  Global Edge

75. What is the output of the following 'C' program ?

#include
int main()
{
200;
printf("tricky problem");
}

Answer: Option A

Explanation:

Here the number 200 has no importance, you can neglect it or remove it or just leave it just like that, code will compile and run just fine, giving the output as tricky problem.

Workspace


Tags:  Global Edge

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Global Edge

77. What is the output of the following 'C' program ?

#include
int main()
{
printf( printf ("world") );

}

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Global Edge

78. What does main return on successful execution?

Answer: Option B

Explanation:

The return type of the main() function basically tells about its exit status. As a convention, the exit status of 0 tells the compiler that it's a success and other non-zero values tell that it's a failure. More precisely, return 0 tells the compiler that the end of code was reached and the program was executed successfully. 

Workspace


Tags:  Global Edge

79. What will be output of the following "C" code?

#include
void main()
{
printf("%d ",printf("FACE"));
}

Answer: Option A

Explanation:

printf("FACE");........will be executed first and will return the output as FACE.

Now, since no. of characters in the word FACE is 4, and we know that printf() return the no of characters that are passed as an argument.

Therefore, the output of this code will be FACE4.

Workspace


Tags:  TCS

80. What will be output of the following "C" code?

#include
void main()
{
printf("\nks");
printf("\bmi a");
printf("\rha n");
}

Answer: Option C

Explanation:

Line 4 will give the result as "ks".

Line 5 will give the result as "kmi a". The escape sequence '\b'(backspace) re-writes "ks" with "kmi a".

Line 6 will give the result as "ha na". The escape sequence '\r'(carriage return) returns the control to the starting point of the string and it will rewrite "kmi a" with "ha na".

Hence, the output is ha na.

Workspace


Tags:  TCS



Most Popular Qs.

Latest MCQ Qs.