Sunday, July 13, 2014

C is a general purpose programming language. It’s called as structured language also. Here are some short questions and their answers on C programming are given bellow.

Question No. – 1: Who invented the Programming in C?
Ans: Dennis Ritchie of AT & T Bell Laboratory.
Question No. – 2: When he invented Programming in C?
Ans: In the year 1972
Question No. – 3: Write down some Library Function’s name of C.
Ans: getchar(), scanf(), gets(), fscanf(), printf()
Question No. – 4: Write down some C complier’s name.
Ans: Turbo C, Borland C, Microsoft C, Power C, Watcom C
Question No. – 5: How many kinds of Programming Language?
Ans: Generally programming language is of two kinds.
a.       High Level Language
b.      Low Level Language
Low Level Language has two kinds more
a.       Machine Language
b.      Assembly Language
Question No. – 6: What is the basic format of a C program?
Ans:     >> Include Files
            >> Main Function
            >> Other Function (Library/User defined functions)
Question No. – 7: How many kinds of data type?
Ans: There are 4 kinds of data type in C.
1.      Character Type Data
2.      Integer Type Data
3.      Floating Point Data
4.      Double Type Data
Question No. – 8: What is the memory space for Character Type Data?
Ans: 1 byte
Question No. – 9: What is the memory space for Integer Type Data?
Ans: 2 bytes
Question No. – 10: What are the memory spaces for Float Point and Double Type Data?


Ans: 4 bytes (float) and 8 bytes (double).

0 comments:

Post a Comment