Top 50+ Solved Managing IO Operations MCQ Questions Answer

From 31 to 38 of 38

Q. What error will be generated on using incorrect specifier for the datatype being read?

a. compile error

b. run-time error

c. logical error

d. no error

  • b. run-time error

Q. What is the prototype of scanf function?

a. scanf("controlstring",arg1,arg2,arg3,….,argn);

b. scanf("control string", variable list);

c. scanf(" varible list,", control string);

d. scanf("arg1,arg2,arg3,….,argn", control string);

  • a. scanf("controlstring",arg1,arg2,arg3,….,argn);

Q. What is the meaning of the following C statement? scanf("%[^\n]s", ch);

a. read all character except new line

b. read all characters

c. read only new line character

d. syntax error

  • a. read all character except new line

Q. What is the qualifying input for the type specifier G?

a. floating point numbers

b. floating point numbers in exponential format

c. floating point numbers in the shorter of exponential format

d. not a type specifier

  • c. floating point numbers in the shorter of exponential format

Q. scanf() is a predefined function in______header file.

a. stdlib. h

b. ctype. h

c. stdio. h

d. stdarg. h

  • c. stdio. h

Q. What does the C statement given below says? scanf("%7s",ch);

a. read string with minimum 7 characters.

b. read string with maximum 7 characters

c. read string exactly to 7 characters

d. read string with any number of characters

  • b. read string with maximum 7 characters
Subscribe Now

Get All Updates & News