C Programming Questions & Answers: part8



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

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

1.Read the following statements and choose the most appropriate one. I. An algorithm is an actual program that can be executed on a machine directly. II. An algorithm is a set of rules for carrying the calculations either by hand or on a machine. III. An algorithm can be a program dependent and machine dependent code to define a solution for a given problem. IV. An algorithm is an abstraction of a program to be executed on a machine.

Both (I) and (IV) above
Both (I) and (III) above
Both (II) and (IV) above
Both (I) and (II) above
(II), (III) and (IV) above.

2.For the initial values as a=3, b=40, c=13, d=10, what is the final value of a, a = b^c|d&a;

Syntax error
39
3
35
31.

3.Pick the equivalent control structure for the following repetitive control structure For ( E1; E3; E2 ) { statements; }

while( E1) { E2; statements; E3; }
E1; while(E2) { statements; E3; }
while( E3) { E1; statements; E2; }
E1; while(E3) { statements; E2; }
E1; E3; while(E2) { statements; }.

4.Which one of the following is valid for opening a read-only ASCII file?

fileOpen(filename, �r�);
fopen(filename, �ra�);
fileOpne(filename, read);
fopen(filename, �read�);
fopen(filename, �r�);.

5.Let A, B are the integer variables, and P, Q are the integer pointers, then which of the following are valid in a C program?

P = P*A;
P = A/P;
P = P/Q;
P = P*Q;
P = P+A;.

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If you are not willing to risk the usual you will have to settle for the ordinary- Jim Rohn