C Programming Questions & Answers: part16



Software Programming : C Programming QUESTIONS AND ANSWERS :: part16 : 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 function will read a specified number of elements from a file?

fileread()
getline()
readfile()
fread()
gets().

7.What is the associativity of the conditional operator

left to right
right to left
top to bottom
bottom to top
left to left.

8.int z, x = 5, y = -10, a = 4, b = 2; z = x++ - --y * b / a; What number will z in the sample code above contain?

5
6
10
11
12.

9."My salary was increased by 15%!" Select the statement which will EXACTLY reproduce the line of text above.

printf("\"My salary was increased by 15/%\!\"\n");
printf("My salary was increased by 15%!\n");
printf("My salary was increased by 15'%'!\n");
printf("\"My salary was increased by 15%%!\"\n");
printf("\"My salary was increased by 15'%'!\"\n");

10.Which of the following function is used to detect the end of the file? #297. Which of the following function is used to detect the end of the file?

feof()
ferror()
fputs()
fgetch()
freach().

More C Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If your ship doesn’t come in, swim out to meet it!-Jonathan Winters