C Programming Questions & Answers: part12



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

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

6.When a program is running the value of a constant

Can be changed
Cannot be used
Is always hidden
Cannot be changed
Can be used.

7.To read the formatted input data from a file, which of the following function is used?

getchar()
fgets()
fscanf()
scanf()
fread().

8.void foo (int x, int & y) { int c; c = x + y; y = 2 * c; x = 2 * x; } The function �foo� returns the following type as result

Integer
No result is returned
Float
Char
Double.

9.What is the result of the expression 6+12*3�4/2 ?

22
25
40
52
45.

10.void foo (int x, int & y) { int c; c = x + y; y = 2 * c; x = 2 * x; } An example of a value parameter in the code above is

x
y
c
foo
fo.

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