C Programming and Problem Solving
Questions 1 to 10
Click at down for go to next Set 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14... 15... 16... 17... 18... 19... 20... 21... 22... 23... 24... 25... 26... 27... 28... 29... 30... 31... 32... 33... 34... 35... 36... |
|
Answers
1.
|
Answer : (a)
Reason: According to precedence of operators.
|
2.
|
Answer : (d)
Reason:
|
3.
|
Answer : (c)
Reason: After successful completion of a
program 0 is returned to the operating
system.
|
4.
|
Answer : (c)
Reason: Since main() is the starting of a program
execution.
|
5.
|
Answer : (b)
Reason: real is not a variable type in C language.
|
6.
|
Answer : (a)
Reason: Since array index starts with 0 in c
language.
|
7.
|
Answer : (b)
Reason: Since return type for the function is int and in the function definition return statement
is used by returning an integer value of x.
|
8.
|
Answer : (d)
Reason: Getchar() is not a keyword in C language.
|
9.
|
Answer : (e)
Reason: If the same statement is used in a C
program compilation error will occur.
|
10.
|
Answer : (c)
Reason: Function returns a generic value.
|