C Programming Questions & Answers: part3



Software Programming : C Programming QUESTIONS AND ANSWERS :: part3 : 1 to 5

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

1.What is the following code�s output if choice = �R�? switch(choice) { case �R� : printf( �RED �); case �W� : printf( �WHITE �); case �B� : printf( �BLUE �); default : printf( �ERROR �); break; }

RED
RED WHITE BLUE ERROR
RED ERROR
RED WHITE BLUE
ERROR.

2.Which of the following is a not a keyword in C language.

void
volatile
sizeof
getchar
short.

3.It is necessary to declare the type of the function in the calling program if

The function returns an integer
Function returning only the float values
The function is not defined in the same file
The function returns a non- integer value
The size of the function is vary big.

4.What will be the value of sum after the following program is executed? main( ) { int sum = 1, index = 9; do { index = index � 1; sum *= 2; }while( index > 9 ); }

1
2
9
0.5
0.25.

5.The recursive functions are executed in a

Parallel order
First In First Out order
Last In First Out order
Iterative order
Random order.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Identify your problems but give your power and energy to solutions- Tony Robbins