C Programming Questions & Answers: part13



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

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

6.What is the value of i after this segment of the program is executed? n = 27; i = 0; for( i = 0; i <= n; i+= 2 ) { printf(i ); }

25
28
27
26
29.

7.FILE is -------------

Stack
Pointer
Union
Structure
Variable.

8.What is the final value of x if initially x has the value 0? #222. What is the final value of x if initially x has the value 0? if (x >= 0) x += 5; if (x >= 5) x += 2;

0
2
5
7
8.

9.Which of the following is an advantage of using macros over functions?

Functions must have parameters; macros do not
The code associated with a function is expanded in line
Values passed to functions must be of a specific data type; values passed to macros do not
When macros are used many times in a program they are expanded each time
The code associated with a function is not expanded in line.

10.The getchar() function reads a

String from a file
Character from a file
String from the keyboard
Character from the keyboard
Word from the file.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Too many of us are not living our dreams because we are living our fears.- Les Brown