Multiple Choice Questions-
1) The C language consists of ____ number of keywords.
A] 32
B] 40
C] 24
D] 56
2) Which function is used to read character as you type ?
A] getchar()
B] getch()
C] getche()
D] Both (B) and (C)
3) What is the output of this program ?
void main()
{
int a=b=c=10;
a=b=c=50;
printf(“\n %d %d %d”,a,b,c);
}
A] 50 50 50
B] Compile Time Error
C] 10 10 10
D] Three Gaebage Value
4) Which format specifier is used to print the values of double type variable
A]%If
B]%Id
C]%Iu
D] %f
5) What will be the output of the following program?
void main ( )
{
double x=28;
int r;
r= x%5;
printf (“\n r=%d”, r);
}
A] r= 3
B] Run time Error
C]Compile time Error
6) Which of the following is not s keyword of ‘C’ ?
A] auto
B] register
C] int
D] function
7) Explicit type conversion is known as
A] conversion
B] disjunction
C] separation
D] casting
8) What will be the output ?
#define SQUARE(X) X * X
void main ( )
{
printf (“\n Square = %d” , SQUARE(10+2) );
}
A] Square = 144
B] Square =32
C] Square =122
D]Square =12
9) A declaration float a,b; occcupies ______of memory ?
A] 1 bytes B] 4bytes C] 8byte D] 16 bytes
10) Which of the following language is predecessor to C
Programming Language?
A] A
B]B
C] BCPL
D]C++
D]None of the Above
1) The C language consists of ____ number of keywords.
A] 32
B] 40
C] 24
D] 56
2) Which function is used to read character as you type ?
A] getchar()
B] getch()
C] getche()
D] Both (B) and (C)
3) What is the output of this program ?
void main()
{
int a=b=c=10;
a=b=c=50;
printf(“\n %d %d %d”,a,b,c);
}
A] 50 50 50
B] Compile Time Error
C] 10 10 10
D] Three Gaebage Value
4) Which format specifier is used to print the values of double type variable
A]%If
B]%Id
C]%Iu
D] %f
5) What will be the output of the following program?
void main ( )
{
double x=28;
int r;
r= x%5;
printf (“\n r=%d”, r);
}
A] r= 3
B] Run time Error
C]Compile time Error
6) Which of the following is not s keyword of ‘C’ ?
A] auto
B] register
C] int
D] function
7) Explicit type conversion is known as
A] conversion
B] disjunction
C] separation
D] casting
8) What will be the output ?
#define SQUARE(X) X * X
void main ( )
{
printf (“\n Square = %d” , SQUARE(10+2) );
}
A] Square = 144
B] Square =32
C] Square =122
D]Square =12
9) A declaration float a,b; occcupies ______of memory ?
A] 1 bytes B] 4bytes C] 8byte D] 16 bytes
10) Which of the following language is predecessor to C
Programming Language?
A] A
B]B
C] BCPL
D]C++
No comments:
Post a Comment