C Programming Viva Questions Answers

If you are preparing for a C programming viva or interview, then you have reached the right place. In this article, a list of frequently asked C programming viva or interview questions and answers are given below. You will also get a mix of Basic to Advanced C programming viva or interview questions in this article. And before going ahead, if you want to know more about C programming, check out Introduction to C now?

C Programming Viva Questions Answer Download (PDF)

C Programming Viva Questions Answers Part-1
Compiler is a program that converts human readable code (source code) into machine readable code, this process is called compilation.
Interpreter converts human readable code (source code) into intermediate code and then this intermediate code is executed line by line.
Assembler is a program that converts assembly level language (low level language) into machine level language.
Protocol is nothing but a set of rules to be followed by a programmer.
IDE is nothing but integrated development environment. IDE is a tool that provides user to create, compile and execute C program. For example: Turbo C++, DevC++. These provide integrated development environment.
In C instructions are the statements which tells computer to perform the specific task.
C is a high level programming language. It is used to develop system software and application software.
C language has been developed using assembly language.
Text file contain data that can be easily understood by human. It includes letters, numbers and other characters. On the other hand, binary files contain 1s and 0s that only computers can interpret.
Yes, C language is structured language.
An algorithm refers to the step by step instructions written to solve any problem.
A flowchart is a diagrammatic or symbolic representation of an algorithm. It uses various symbols to represent the operations to be performed.
Library functions are predefined functions and stored in .lib files.
A computer program is a collection of the instructions necessary to solve a specific problem.
Compilation process translates source code into binary language. This binary language code is known as object code.
This code contains object code and definition of predefined function from library. This code is written in binary language.
Void is an empty data type that has no value. We use void data type in functions when we don’t want to return any value to the calling functions.
Header files contain declaration of predefined functions. We can use any number of header files in our program as per the requirement of predefined functions. Some header files are: stdio.h, conio.h, math.h, stdlib.h, string.h, graphics.h
It is possible to create a new header file. Create a file with function prototypes that need to be used in the program. Include the file in the ‘#include’ section in its name.
Comma operator can be used to separate two or more expression.
The printf() function is used to print the integer, character, float and string values on to the screen or console. It is a predefined function.
The scanf() function is used to take input from the user or read some values from screen (or console). It is a predefined function.
Console is known as output screen through which user interacts with the source code.
It is a pre-processor directive. It is used to include any header file in our program.

More Topics

Conclusion

So just feel confident during your viva interview and wish you the best of luck for your viva or interview. I hope these C questions and answers will help you to crack your exam easily.