1) C programming language was developed by
A] Dennis Ritchie
B]Ken Thompson
C] Bill Gates
D] Peter Norton
2) C was developed in the year ___
A] 1970
B] 1972
C] 1976
D] 1980
3) C is a ___ language
A] High Level
B] Low Level
C] Middle Level
D] Machine Level
4) C language is available for which of the following Operating Systems?
A] DOS
B] Windows
C] Unix
D] All of these
5) Which of the following symbol is used to denote a pre-processor statement?
A] !
B] #
C] ~
D] ;
6) Which of the following is a Scalar Data type
A] Float
B] Union
C] Array
D] Pointer
7) Which of the following are tokens in C?
A] Keywords
B] Variables
C] Constants
D] All of the above
8) 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
9) Which symbol is used as a statement terminator in C?
A] !
B] #
C] ~
D] ;
10) Which escape character can be used to begin a new line in C?
A] \a
B] \b
C] \m
D] \n
11) Which escape character can be used to beep from speaker in C?
A] \a
B] \b
C] \m
D] \n
12) Character constants should be enclosed between ___
A] Single quotes
B] Double quotes
C] Both a and b
D]None of these
13) String constants should be enclosed between ___
A] Single quotes
B] Double quotes
C] Both a and b
D]None of these
14) Which of the following is invalid?
A] ‘’
B] “ “
C] ‘a’
D] ‘abc’
15) The maximum length of a variable in C is ___
A] 8
B] 16
C] 32
D] 64
16) What will be the maximum size of a float variable?
A] 1 byte
B] 2 bytes
C] 4 bytes
D] 8 bytes
17) What will be the maximum size of a double variable?
A] 1 byte
B] 4 bytes
C] 8 bytes
D] 16 bytes
18) A declaration float a,b; occupies ___ of memory
A] 1 byte
B] 4 bytes
C] 8 bytes
D] 16 bytes
19) The size of a String variable is
A] 1 byte
B] 8 bytes
C] 16 bytes
D] None
20) Which of the following is an example of compounded assignment statement?
A] a = 5
B ]a += 5
C] a = b = c
D] a = b
21) The operator && is an example for ___ operator.
A] Assignment
B] Increment
C] Logical
D] Rational
22) The operator & is used for
A] Bitwise AND
B] Bitwise OR
C] Logical AND
D] Logical OR
23) The operator / can be applied to
A] integer values
B] float values
C] double values
D] All of these
24) The equality operator is represented by
A] :=
B] .EQ.
C] =
D] ==
25) Operators have hierarchy. It is used to know which operator
A] is most important
B] is used first
C] is faster
D] operates on large numbers
Post A Comment:
0 comments: