1- Convert the decimal number (176) to binary :
(A) 10110111 (B) 10101100
( C ) 10110110 (D) 10110000
2- Which of the following is not a valid relational operator ?
(A) * (B) >=
( 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
( C ) 100 , 200 , 400 (D) 100 , 300 , 400
4- What output will be there when you execute the following C – Code ?
# include <stdio.h>
Int main()
{
Int X ;
X = 30 ;
Printf (“%d” , X );
Return 0 ;
}
(A) 20 (B) 30
( C ) 10 (D) X
5- Which operators are used to compare the values of operands to produce
logical value in C Language ?
(A) Logical operator (B) assignment operator
( C ) relational operator (D) None of the above
6- To build and run a project in C – Programming press (……….) from the keyboard
(A) F9 (B) Ctrl + F9
( C ) F10 (D) Alt + F9
7- Convert the decimal number (120) to Hexadecimal :
(A) 87 (B) 100
( C ) 78 (D) 60
8- To run a project in C – Programming press (……….) from the keyboard
(A) Alt + F3 (B) Ctrl + F3
( C ) Alt + F5 (D) Ctrl + F10
9- Which of the following is a valid statement for declaring a variable in C –
Language
(A) Int p (B) Int F;
( C ) Int c , (D) Float P.
10 - Which is an integer data
type
(A) Char (B) Decimal
( C ) int (D) Double
11 - Convert the decimal number (24) to octal :
(A) 40 (B) 15
( C ) 30 (D) 35
12 - Convert the decimal number (79) to Hexadecimal :
(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
( C ) Compile time error (D) 100
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
( C ) Compile time error (D) printf
15 - Convert the decimal number (112) to octal :
(A) 160 (B) 100
( C ) 120 (D) 200
16 - Which of the following is not a correct variable type?
(A) Float (B) Reality
( C ) Int (D) double
17 - Convert the Hexadecimal number (1E) to octal :
(A) 30 (B) 36
( C ) 22 (D) 14
18 - Convert the decimal number (14) to binary :
(A) 11100000 (B) 01010101
( C ) 00001110 (D) 10101010
19 - Convert the decimal number (14) to octal :
(A) 16 (B) 17
( C ) 34E (D) 10101010
20 - ………………………. Is a graphical representation of sequential operations in a
program that helps programmers to show logic of algorithm
(A) Algorithm (B) Flow lines
( C ) Flowchart (D) Pseudo code
21 - A function popularly used C input function
(A) Getch (B) Char
( C ) Scanf (D) printf
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
23 - At least two paths ( branches ) must come out from …………
(A) Diamond (B) Terminal
( C ) Flow line (D) Rectangle
24 - What output will be there when you execute the following C – Code ?
# include <stdio.h>
void main( )
{
Int x = 5 * 9 / 3 + 9 ;
Printf (“%d” , x );
}
(A) 3.7 (B) 20
( C ) 24 (D) 9
25 - A function popularly used C output function
(A) Getch (B) Char
( C ) Scanf (D) printf
26 - Convert the decimal number (200) to Hexadecimal :
(A) E8 (B) C8
( C ) B8 (D) 10101010
27 - Convert the decimal number (200) to binary :
(A) 11001000 (B) 11001001
( C ) 11001010 (D) 10101010
28 - What output will be there when you execute the following C – Code ?
# 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
30 - Any input or output operation of program flowcharts are shown in symbol of
(A) Rhombus (B) Circle
( C ) Parallelogram (D) Rectangle
31 - Convert the binary number (100110) to octal :
(A) 55 (B) 44
( C ) 46 (D) 64
32 - Convert the inary number (100110) to Hexadecimal :
(A) 22 (B) 66
( C ) 26 (D) 62
Best Regards