Recents in Beach

C Programming MCQ For WBJECA ( SET - 14)

WBJECA MCQ FOR NEW SYLLABUS

C Programming MCQ ( SET - 14)

C programming MCQ
  1. The statement char ch='a' would store in ch ?

    1. ASCII value of a
    2. a along with the single inverted comma
    3. the charater a
    4. none of the above
    Answer: A
    Explantion: None


  2. Arguments passed to C language are called __________ ?

    1. Definite Arguments
    2. Ideal Arguments
    3. Actual Arguments
    4. Formal Arguments
    Answer: C
    Explantion: None


  3. The function fprintf() is used in a program ?

    1. when output is to be printed on to a file
    2. When too many printf calls have been alrady used in the program
    3. inplace of printf , since pirintf used more memory
    4. all of these
    Answer: A
    Explantion: None.


  4. What is the output of that program ?

    main()
    {
       printf("hello World");
       main() ;
        return 0 ;
    }
    1. 255 times
    2. 0 times
    3. Till stack overflows
    4. Infinite times
    Answer: C
    Explantion: None


  5. The function that actually created from a call to a template function is called ?

    1. Declassified
    2. Spawned
    3. Generated
    4. Inherited
    Answer: B
    Explantion: None


  6. Which of the following cannot be checked in a switch-case statement ?

    1. int
    2. char
    3. long
    4. float
    Answer: D
    Explantion: None


  7. choose the currect answer ?

    main()
    {
        float num=4.5+4.5 ;
       printf("%f",num) ;
        return 0;
    }
    1. 9
    2. 9.0
    3. 4.5
    4. 9.000000
    Answer: D
    Explantion: None


  8. C Formatted input output function is ?

    1. sscanf() , sprintf()
    2. fprintf() , fscanf()
    3. printf(),scanf()
    4. All of the above
    Answer: D
    Explantion: None


  9. C unformatted input output function is ?

    1. getchar() , putchar()
    2. gets() , puts()
    3. both A and B
    4. None of the above
    Answer: C
    Explantion: None


  10. 10

    What is the way to suddenly come out of or Quit any loop in c programming language ?

    1. leave; statement
    2. quit; statement
    3. break; statement
    4. continue; statement
    Answer: C
    Explantion: None



Post a Comment

0 Comments