Question
: 1) C is a:
Answer
: General Purpose Programming Language
Question
: 2) Which of the following are valid data types in
C?
Answer
: int, float, double, char
Question
: 3) What is the starting point for a C program?
Answer
: The main() function
Question
: 4) The preprocessor acts:
Answer
: Before compilation
Question
: 5) Which one of the following is not reserved keyword in
C?
Answer
: main
Question
: 6) What will be printed after execution of following
code?
Answer
: Hai
Question
: 7) What will be the output of the following
program?
Answer
: 6
Question
: 8) Find out the output of following program:
Answer
: Syntax eroor
Question
: 9) What is the difference between declaration and
definition of a variable ?
Answer
: There is no difference between them.
Question
: 10) What will happen after compiling and running
following code?
Answer
: Some address will be printed
Question
: 11) What will be the output of following code?
Answer
: 9
Question
: 12) Determine the output?
Answer
: 10 20 21 10
Question
: 13) Find out output of following program
Answer
: 13
Question
: 14) What is true about a break?
Answer
: Break halts the execution and forces the control out of the loop
Question
: 15) What is output of following program?
Answer
: Welcome
Question
: 16) What is a right way to initialize an array ?
Answer
: int a[6] = { 2, 3, 5, 6, 7, 8 };
Question
: 17) What will be the output of the following C program?
Answer
: Morningn
Question
: 18) What is the return type of a method that does not
return any value?
Answer
: void
Question
: 19) Which of the following operator take only integer operand ?
Answer
: %
Question
: 20) What will be the output of the following C
program?
Answer
: 8 5 5
No comments:
Post a Comment
if you have any doubt please let me know