C Library, Preprocessor and I/O: viva questions and MCQs
Computer Programming Lab (C), Unit 1. 100+ C Library, Preprocessor and I/O questions with explanations (Computer Programming Lab (C)). Topics: C Basics, C Io Output. Take a free test now.
Topics
- C Basics: programming, format specifier, header file, file declaring, output, escape sequence, single character, function
- C Io Output: printf, define, prints
Key terms: programming, format specifier, header file, file declaring, output, escape sequence, printf, define, prints
Sample questions with answers
In a flowchart, a parallelogram represents:
Options: A) Process B) Connector C) Input or output D) Decision
Answer: C) Input or output. I/O symbol.
In C programming, "Linker" is:
Options: A) Escape sequence for horizontal tab B) Function that reads formatted input from the keyboard C) Escape sequence for new line D) Combines object files and libraries into an executable
Answer: D) Combines object files and libraries into an executable. Linker: Combines object files and libraries into an executable.
In C programming, "getchar()" is:
Options: A) File with declarations of library functions and macros, ending in .h B) Function that reads a single character from standard input C) Translates C source code into object/machine code D) Escape sequence for horizontal tab
Answer: B) Function that reads a single character from standard input. getchar(): Function that reads a single character from standard input.