1) The bitwise AND operator is used for
A] Masking
B] Comparison
C] Division
D] Shifting bits
2) The bitwise OR operator is used to
A] set the desired bits to 1
B] set the desired bits to 0
C] divide numbers
D] multiply numbers
3) Which of the following operator has the highest precedence?
A] *
B] ==
C] =>
D] +
4) The associativity of ! operator is
A] Right to Left
B] Left to Right
C] (a) for Arithmetic and (b) for Relational
D] (a) for Relational and (b) for Arithmetic
5) Which operator has the lowest priority?
A]++
B]%
C]+
D]||
6) Which operator has the highest priority?
A]++
B]%
C]+
D]||
7) Operators have precedence. A Precedence determines which operator is
A] faster
B] takes less memory
C] evaluated first
D]takes no arguments
8) Integer Division results in
A] Rounding the fractional part
B] truncating the fractional part
C] Floating value
D]An Error is generated
9) Which of the following is a ternary operator?
A] ?
B] *
C] sizeof
D]^
10) What will be the output of the expression 11 ^ 5?
A]5
B]6
C] 11
D]None of these
11) The type cast operator is
A] (type)
B]cast()
C]//
D] " "
12) Explicit type conversion is known as
A] Casting
B] Conversion
C] Disjunction
D] Separation
13) The operator + in a+=4 means
A] a = a + 4
B] a + 4 = a
C] a = 4
D] a = 4 + 4
14) p++ executes faster than p+1 because
A] p uses registers
B] p++ is a single instruction
C] ++ is faster than +
D] None of these
15) Which of the following statements is true?
A] C Library functions provide I/O facilities
B] C inherent I/O facilities
C] C doesn’t have I/O facilities
D] Both (a) and (c)
16) Header files in C contain
A] Compiler commands
B] Library functions
C] Header information of C programs
D] Operators for files
17) Which pair of functions below are used for single character I/O.
A] Getchar() and putchar()
B] Scanf() and printf()
C] Input() and output()
D] None of these
18) The printf() function retunes which value when an error occurs?
A]Positive value
B]Zero
C] Negative value
D]None of these
19) Identify the wrong statement
A] putchar(65)
B] putchar('x')
C] putchar("x")
D] putchar('\n')
20) Which of the following is charecter oriented console I/O function?
A] getchar() and putchar()
B] gets() and puts()
C]scanf() and printf()
D] fgets() and fputs()
21) The output of printf("%u", -1) is
A] -1
B] minimum int value
C] maxium int value
D] Error message
22) An Ampersand before the name of a variable denotes
A] Actual Value
B] Variable Name
C] Address
D] Data Type
23) Symbolic constants can be defined using
A] # define
B] const
C] symbols
D] None of these
24) Null character is represented by
A] \n
B] \0
C] \o
D] \e
25) Which header file is essential for using strcmp() function?
A] string.h
B] strings.h
C] text.h
D] strcmp.h
Post A Comment:
0 comments: