C programming Viva questions

1. Which type of language is C ? 

Ans- C is a high level language and general-purpose structured programming language.

2. what is  a compiler ?

Ans- Compiler is the software that transfer program developed in a high-level language into executable object code.

3. What is an algorithm ?

Ans- The approach and method that used to solve the problem is called an algorithm. 

4. What is a token and types of c tokens ? 

Ans- The smallest individual units are known as C tokens . C has six types of tokens : Keyword, constants , Identifier , Strings , Operators and Special symbols.

5. How many keywords in c ?

Ans- There are 32 keywords in the c language.

6. what is an identifier ?

Ans- Identifiers are user define name given to variables , Functions and arrays.

7. what are the datatypes present in c ?

Ans- C language supports 2 different type of data types:

1.Primary data types:
These are fundamental data types in C namely integer(int), floating point(float), character(char) and void
2. Derived data types:
Derived data types are nothing but primary datatypes but a little twisted or grouped together like arraystructureunion and pointers. These are discussed in details later.

Comments

Popular posts from this blog

Python | Calendar Module

privacy police