49. Which of the following is an example of compounded assignment statement?
(A) a = 5 (B) a += 5 (C) a = b = c (D) a = 5
50. The operator && is an example for _ operator.
(A) Assignment (B) Increment (C) Logical
(D) Rational
ANSWERS
1. C 2. A 3. B 4. C 5. B 6. C 7. D 8. A 9. D 10. A
11. C
|
12. B
|
13. A
|
14. A
|
15. D 16. D
|
17. B
|
|
18. A
|
19. C
|
20. A
|
21. B
|
22. C
|
23. A
|
24. D
|
25. A 26. A 27. C
|
|
28. B
|
29. C
|
30. D
|
|
31. C
|
32. A
|
33. B
|
34. D
|
35. C
|
36. C 37. D
|
38. D
|
39. D
|
40. B
|
|
41. A
|
42. B
|
43. D
|
44. A
|
45. B
|
46. C 47. C
|
|
48. D
|
49. B
|
50. C
|
1. The operator & is used for
(A) Bitwise AND (C) Logical AND
2. The operator I can be applied to
(A) integer values
(C) double values
(B) Bitwise OR (D) Logical OR
(B) float values
(D) All of these
3. The equality operator is represented by
(A) := (B) .EQ. (C) = (D) ==
4. Operators have precedence. It is used to know which operator
(A) is most important (B) is used first
(C) is faster (D) operates on large numbers
5. The bitwise AND operator is used for
(A) Masking (B) Comparison (C) Division (D) Shifting bits
6. 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
7. Which of the following operator has the highest precedence?
(A) * (B) == (C) -> (D)+
8. The associatively of! operator is
(A) Right to Left
(C) for Arithmetic and (b) for Relational
9. Which operator has the lowest priority?
(A) * (B) I (C) ++ (D) +
(B) Left to Right
(D) for Relational and (b) for Arithmetic
10. Integer Division results in
(A) Rounding the fractional part
(C) Floating value
11. The type cast operator is
(B) Truncating the fractional part
(D) An Error is generated
(A) (type) (B) cast () (C) II (D)" "
12. Explicit type conversion is known as
(A) Casting (B) Conversion
13. The operator + in a+=4 means
(C) Disjunction (D) Separation
(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
(C) ++ is faster than +
15. Header files in C contain
(A) Compiler commands
(B) p++ is a single instruction
(D) None of these
(B) Library functions
(C) Header information ofC programs
(D) Operators for files
16. Which pair of functions below are used for single character IO.
(A) getchar ()and putchar ()
(C) scanf() and printf()
17. The output of printf ("%u", -1) is
(B) gets () and puts () (D) fgets () and fputs 0
(A) -1 (B) minimum int value (C) maximum int value (D) Error message
18. An Ampersand (&) before the name of a variable denotes ...............
(A) Actual value (B) Address (C) Variable value
19. Symbolic constants can be defined using
(A) #define (B) constS (C) symbols (0) None of these
20. Null character is represented by
(A) \N (B) \0 (C) \0 (D) \e
21. A statement differs from expression by terminating with a
(D) Data type
(A) ; (B) : (C) NULL (D) .
22. Which operator in C is called a ternary operator
(A) ++ (B) 0 (C) If .... then (D) ? :
23. The conversion characters '%s' for data input means that the data item is
(A) An unsigned decimal integer
(C) A short integear
(B) A hexadecimal integer
(D) A string followed by white space
24. An expression contains relational, assignment and arithmetic operators. If Parenthesis are not
present, the order will be
(A) Assignment, relational, Arithmetic
(C) Assignment, arithmetic, relational
(B) Relational, arithmetic, assignment
(D) Arithmetic, relational, assignment
25. Which of the following is a key word is used for a storage class
(A)printf (B)auto (C)external (D)scanf
26. In the C language 'a' represents
(A) A Character (B) An integer (C) A digit
27. The number of the relational operators in the C language is
(D) A word
(A) Four
28. In C, a Union is
(B) Six (C) Three (D) Done
(A) memory store (B) memory screen (C) memory location (D) None
29. A multidimensional array can be expressed in terms of
(A) Array of pointers rather than as pointers to a group of continuous array
(B) Array without the group of continuous array
(C) Data type array
(D) None of these
Share with your friends: |