VKV SirTest Lab

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

Key terms: programming, format specifier, header file, file declaring, output, escape sequence, printf, define, prints

Sample questions with answers

  1. 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.

  2. 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.

  3. 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.

Take a free C Library, Preprocessor and I/O test

All units of Computer Programming Lab (C)