Recents in Beach

C Programming MCQ For WBJECA ( SET - 16)

WBJECA MCQ FOR NEW SYLLABUS

C Programming MCQ ( SET - 16)

C programming MCQ
  1. A multidimensional array of dimension n is a collection of ............. ?

    1. n-1 dimensio arrays
    2. single dimensional arrays
    3. n-2 dimension arrays
    4. n dimensional arrays
    Answer: A
    Explantion: None


  2. Which keyword is used to prevent any changes in the variable within a C program ?

    1. volatile
    2. register
    3. const
    4. break
    Answer: C
    Explantion: None


  3. What is the keyword used to declare a C file pointer ?

    1. filefp
    2. file
    3. FILEFP
    4. FILE
    Answer: D
    Explantion: None.


  4. What is the output of this staement " ... printf("%d",(i--)); ...." ?

    1. The current value of => i
    2. The value of (i+1)
    3. the value of (i-1)
    4. error message
    Answer: A
    Explantion: None


  5. What is a C FILE data type ?

    1. FILE like a Structure only
    2. FILE is like a structure only
    3. FILE is like a user define int data type
    4. None of above
    Answer: B
    Explantion: None


  6. Directives are translated by the _______

    1. Linker
    2. Editor
    3. Compiler
    4. Pre-processor
    Answer: D
    Explantion: None


  7. In Which of the following modes , the user can read and write the file ?

    1. w
    2. b+
    3. x+
    4. r+
    Answer: D
    Explantion: None


  8. Let num1 and num2 be integer pointers . Which one is a syntactically wrong statement ?

    1. num2=num2+7 ;
    2. num1=num1-7;
    3. V=num1-num2;
    4. num1=num1+num2;
    Answer: D
    Explantion: None


  9. Which of the following statement is right about the ftell() function ?

    1. it reads a character from the file
    2. it returns the current position
    3. it sets the file pointer to give position
    4. none of above
    Answer: B
    Explantion: None


  10. 10

    Why is a macro used in place of a function ?

    1. it reduces code size
    2. it reduces execution time
    3. it reduces execution time
    4. none of above
    Answer: C
    Explantion: None



Post a Comment

0 Comments