CONSOLE IO OPERATIONS
Multiple Choice Questions
b) conio.h
c) std.h
d) std:.h(“word”);
2. Variable number of arguments can be passed to toprintf() library function?
b) False
b) long
c) char array
d) string
b) printf(“%10d”, 456);
c) printf(“%10.2d”, 456.4);
d) printf(“%d %d”, 456, 454.4);
b) 987600
c) 009876
d) 980076
b) scanf (“format-string”, list of address of variables);
c) scanf (“format-string”, variable);
d) scanf (“format-string”, list of address of operator);
b) logical operator
c) address of operator
d) none of above
b) scanf(“%d”, “%d”, “%d”, &a, &b, &c);
c) scanf(“%d %f %d”, &a, &b, &c);
d) All of above
b) echo’s character instantly without pressing enter key
c) Write a single character after pressing enter key
d) Read a single character after pressing enter key