C Language Questions For NET/SLET/GATE/JE/PSU/TA/JRF/PROGRAMMER Set-04

Q.1 The conversion character for data input memory that the data item is.
Ans. (A)An unsigned decimal integer                        (B)A short integer      
        (C)A hexadecimal integer                                  (D)A string followed by white space 

Q.2 Which of the following is a keyword is used for a storage class?
Ans.(A) auto                 (B)static                    (C)register                   (D)All of the above


Q.3 The number of the relational operators in the C language is..
Ans. (A)4                     (B)5                          (C)6                             (D)9

Q.4 A compound statement is a group of statement’s included between a pair of ….
Ans. (A)Double quote  (B)Curely braces  (C)Paranthesis              (D)A pair  of /’s

Q.5 scanf() can be used for reading.
 Ans.(A) single character                                             (B)  double character
        (C) multiple characters                                        (D) no character

Q.6 The continue cmd cann’t be used with.
Ans. (A)for                       (B)switch                                  (C)do                   (D)while 

Q.7 In C, a Union is.
Ans. (A)memory location (B)memory store (C)memory screen     (D)None of these 

Q.8 When the main function is called, if is called with arguments.
Ans. (A)argc                       (B)argv                (C)None of these        (D)both a & b

Q.9 A multidimensional array can be expressed in terms of.
Ans. (A) Data types arrays                                 
        (B)Array without the group of contiguous array 
        (C)Array of pointers rather than as pointer to a groups of contiguous array  
        (D)None Of These

Q.10 Array subscripts in C always start at.
Ans. (A)0                          (B)1                               (C)2                                 (D)3

Q.11 The expression X=4+2%-8 evaluates.
Ans.(A) –6                     (B) 6                                     (C) 4                           (D) None

Q.12 Max number of elements in the array declaration int a[5] [8] is.
Ans. (A)28        (B)32                                    (C)35                           (D)40

Q.13 A pointer variable can be.
Ans. (A) passed to a function as argument                       (B) changed within function
        (C) returned by a function                                        (D) both (A) and (B)

Answer Sheet:-Q.1(B) Q.2(D)  Q.3(C)  Q.4(B)  Q.5(C)  Q.6(A)  Q.7(B)  Q.8(D)  Q.9(C)  Q.10 (A) Q.11(A)  Q.12(D)  Q.13 (C)
                                                     Page:05

No comments:

Post a Comment