C Programming Questions & Answers: part11



Software Programming : C Programming QUESTIONS AND ANSWERS :: part11 : 6 to 10

Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :

6.Consider the following code: unsigned char c; for( c=0; c!=256; c+2) printf(�%d�, c); How many times the loop will be executed?

127
128
256
Infinitely
Zero.

7.How is a variable accessed from another file?

The global variable is referenced via the pointer specifier
The global variable is referenced via the extern specifier
The global variable is referenced via the auto specifier
The global variable is referenced via the global specifier
Can�t be accessed at all in C.

8.What is the value of �a�, if the expression is executed as a = ( x=10, x*x );?

Syntax Error
Garbage Value
1
10
100.

9.How many times the �for� loop in the following code will be executed on Turbo C compiler? void main(){ int i=0; for(; ++i; )

0 times
Infinite times
The maximum value an integer can have in that machine
One time
The program will give an syntax error.

10.int *p[5]; is used for

Fixed row size and varying column size
Fixed row size and fixed column size
Varying row size and varying column size
Varying row size and fixed column size
For storing integers.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Failure defeats losers, failure inspires winners.-Robert T. Kiyosaki