Computer Education Computer Notes VS Computer Education

C Programming | Question and Answers

1) Who is the father of C Language?
Dennis Ritchie
2) How many keyword’s in C?
32
3) How many types of loop in C?
Three
4) Which of the following function is user defined?
Main
5) Void occupies how many bytes in memory?
0
6) In C, we used for input/output?
Scanf & Printf
7) What is the range of int data type?
-32768 to +32767
8) What is the range of char data type?
-128 to +127
9) In which year, C language was developed?
1972
10) Which type of Language is C?
Procedural Oriented Programming
11) The format identifier ‘%c’ is used for which data type?
Char
12) Sizeof() is a _?
Operator
13) Break statement is used for ____?
Quit the current iteration
14) Is it possible to run program without main()?
Yes
15) Which of the following is a logical NOT operator?
!
16) What is the default value of local variable?
Garbage
17) What is the default value of static variable?
0
18) Which of the following will not return a value?
Void
19) Is const better than #define?
Yes
20) Can we assign null on void point?
Yes

21) Prototype of a function means________?
Declaration of function
22) Float a[15], what is the size of array?
60
23) Variable that are declared but not initialized contains __?
Garbage
24) Which of the following is not a valid storage class?
Dynamic
25) Which type of statement is ‘break’ in C language?
Jump Statement
26) What is the scope of local variable?
Within the block or function
27) Which operator is used to access value at address stored by a pointer variable?
*
28) Which of the following user-defined data type share it’s memory each other?
Union
29) Which pre-defined function is used for comparing two strings?
Strcmp()
30) Which standard liberary file printf & scanf are located?
Stdio.h
31) Can we print normal variable inside static function?
No
32) How many way to calling of function in C language?
Two
33) Which of the following is more memory efficient?
Union

34) Which of the following is the correct operator to compare to variables?

==

35) Which of the following is the correct comment?
/*Comment*/
36) What is the index number of the last element of an array in 5 elements?
4
37) The parameters specified in the function call are called parameters?
Actual
38) Which type of loop are while and for?
Entry Control
39) What is the ASCII value of space character?
32
40) Logical expression produce type results?
Bool

41) If int a=5/2; will return a value?
2
42) By default how the values are passed to the function?
Call by value
43) C language developed at ?
AT & T’s Bell Lab
44) C programs are converted into machine language with the help of ?
A compiler
45) C was primarily developed as ____?
System Programming
46) Which of the following is not a reserved keyword for C?
Main
47) Which one of the following is not a valid identifier?
1a
48) Which is the only function all C programs must contain?
Main()
49) Which of the following is not a correct variable type?
Real
50) Which loop execute at least even condition is false?
Do while

155
Spread the love

Leave a Reply

Your email address will not be published.