Académique Documents
Professionnel Documents
Culture Documents
Name: __________________________________
Section: ____
(1) C programming language was developed by (A) Dennis Ritchie (B) Ken Thompson (C) Ken Thompson (D) Peter Norton (2) C is a ___ language (A) High Level (B) Low Level (C) Middle Level (D) Machine Level (3) What is the valid range of numbers for int type of data? (A) 0 to 256 (B) -32768 to +32767 (C) -65536 to +65536 (D) No specific range (4) An integer constant in C must have: (A) At least one digit (B) digit with decimal (C) both A & B (D) None of above (5) Which of the following symbol is used to denote a pre-processor statement? (A) ~ (B) # (C) ! (D) ;
(6) Find out the output for the following code main( ) { float a = 5, b = 2 ; int c ; c=a%b; printf ( "%d", c ) ; } (A) 2.5 (B) 1 (C) 2 (D) error
(7) Find out the output for the following code main( ) { int a = 300, b, c ; if ( a >= 400 ) b = 300 ; c = 200 ; printf ( "\n%d ", b ) ; }
(A) 300
(B) garbage
(C) 2
(D) error
(A) 3
(B) 5
(C) x
(D) error
(B) Dosa
(C) infinite
(D) error
(B) Definitely C !
(C) 5
(D) error
(B) Infinite
(C) 12345678910
(D) error
(A) 0
(B)1
(C) infinite
(D) error
(A) 1
(B)0
(C) warning
(D) error
(A) 3 3 2
(B)4 3 2
(C) 2 3 3
(D) error
(B)infinite loop
(C) 10
(D) 20
(A) 4021
(B)4031
(C) 1325
(D) error
(A) Tailor
(B)Tytor
(C) Tramp
(18) C programs are converted into machine language with the help of (A) An Editor (B) A compiler (19) C variable cannot start with (A) Alphabet (B) Number (C) Both A & B (D) None of the above (C) An operating system (D) None of the above
(B) 2.5
(C) 0
11)_ _ _ _ 12) _ _ _ _ 13)_ _ _ _ 14) _ _ _ _ 15) _ _ _ _ 1 6)_ _ _ _ 17) _ _ _ _ 18)_ _ _ _ _ 19)_ _ _ _ _ _ 20)_ _ _ _ _