Professional Documents
Culture Documents
( C ) == (D) <=
3- What output will be there when you execute the following C – Code ?
# include <stdio.h>
Int main()
{
Int A = 100 ;
Int B = 200 ;
Int C = 300 ;
If (!(a>= 500))
{
B = 300 ;
C = 400 ;
}
Printf(“%d, %d, %d” , A , B , C );
Returen 0 ;
}
(A) 100 , 200 , 300 (B) 100 , 300 , 300
# include <stdio.h>
Int main()
{
Int X ;
X = 30 ;
Printf (“%d” , X );
Return 0 ;
}
(A) 20 (B) 30
( C ) 10 (D) X
6- To build and run a project in C – Programming press (……….) from the keyboard
( C ) 78 (D) 60
8- To run a project in C – Programming press (……….) from the keyboard
(A) 40 (B) 15
( C ) 30 (D) 35
(A) 4C (B) 5E
( C ) 5F (D) 4F
13 - What output will be there when you execute the following C – Code ?
# include <stdio.h>
Int main( )
{
Int j = 10 ;
Printf (“%d\n” , j++ );
Return 0 ;
}
(A) 10 (B) 11
14 What output will be there when you execute the following C – Code ?
# include <stdio.h>
void main( )
{
Int x = 5 ;
If (x < 1);
Printf (“Hello”);
}
(A) hello (B) 5
(A) 30 (B) 36
( C ) 22 (D) 14
(A) 16 (B) 17
22 - What output will be there when you execute the following C – Code ?
# include <stdio.h>
Int main( )
{
Int a = 7 ;
If (a < 10 )
{
Printf (“C#”);
}
else
{
Printf (“C++”);
}
Return 0 ;
}
(A) C++ (B) C#
( C ) 10 (D) 7
# include <stdio.h>
void main( )
{
Int x = 5 * 9 / 3 + 9 ;
Printf (“%d” , x );
}
(A) 3.7 (B) 20
( C ) 24 (D) 9
(A) E8 (B) C8
( C ) B8 (D) 10101010
# include <stdio.h>
Int main( )
{
Int i = 3 ;
Int k = i % 2 ;
Printf (“%d\n” , k );
}
(A) Compile time error (B) 3
(C) 1 (D) 2
29 - What output will be there when you execute the following C – Code ?
# include <stdio.h>
Int main( )
{
Int i = 1 ;
i = 2+2* i++ ;
Printf (“%d\n” , i );
}
(A) 4 (B) 2
(C) 5 (D) 6
(A) 55 (B) 44
( C ) 46 (D) 64
(A) 22 (B) 66
( C ) 26 (D) 62
Best Regards