Welcome To Cse Club ( C Quiz )

30 Questions | Total Attempts: 114

SettingsSettingsSettings
Welcome To Cse Club ( C Quiz ) - Quiz

Rules: +2 for each correct answer. -1 for each incorrect answer. total time 30 MIN.


Questions and Answers
  • 1. 
    What is the output of following program?
    • A. 

      Garbage character

    • B. 

      A

    • C. 

      65

    • D. 

      Compile error

  • 2. 
    What is the output ??
    • A. 

      1

    • B. 

      -1

    • C. 

      Error

    • D. 

      -5.5

  • 3. 
    What is the output of the following code??
    • A. 

      4

    • B. 

      7

    • C. 

      2 6

    • D. 

      2 4

  • 4. 
    What is the output ??
    • A. 

      1

    • B. 

      0

    • C. 

      True

    • D. 

      False

  • 5. 
     
    • A. 

      10 10

    • B. 

      20 10

    • C. 

      10 20 10

    • D. 

      10 10 10

  • 6. 
     
    • A. 

      0

    • B. 

      1

    • C. 

      Run time error

    • D. 

      Syntax error

  • 7. 
    What is the output ??
    • A. 

      23

    • B. 

      22

    • C. 

      Wrong syntax declaration

    • D. 

      Compliation error

  • 8. 
    Suppose a,b,c are integer variables with values 5,6,7 respectively.  What is the value of the expression: !((b+c)>(a+10))
    • A. 

      1

    • B. 

      15

    • C. 

      0

    • D. 

      6

  • 9. 
    Switch cannot be used with which of the following datatypes??
    • A. 

      Long int

    • B. 

      Char

    • C. 

      Float

    • D. 

      Int

  • 10. 
    Which of the following range is a valid long double (Turbo C in 16 bit DOS OS) ?
    • A. 

      3.4E-4932 to 1.1E+4932

    • B. 

      3.4E-4932 to 3.4E+4932

    • C. 

      1.4E-4932 to 1.4E+4930

    • D. 

      1.1E-4932 to 1.1E+4932

  • 11. 
    In which order do the Relational, Arithmetic, Logical and Assignment operators are evaluated in C ?
    • A. 

      Arithmetic, Logical, Relational, Assigment

    • B. 

      Logical, Relational, Arithmetic, Assignment

    • C. 

      Relational, Logical, Arithmetic, Assignment

    • D. 

      Arithmetic, Relational, Logical, Assignment

  • 12. 
    Which of the following storage classes has zero default initial value ?
    • A. 

      Automatic, Static

    • B. 

      Static, External

    • C. 

      Register, External

    • D. 

      Automatic, Register

  • 13. 
    What is the total number of keywords in C language ?  
    • A. 

      42

    • B. 

      35

    • C. 

      32

    • D. 

      22

  • 14. 
    Correct output??
    • A. 

      2 1 3 1 4 1 5 1 6 1 7 0

    • B. 

      2 1 3 1 4 1 5 1 6 1

    • C. 

      2 1 3 1 4 1 5 1

    • D. 

      2 2 3 3 4 4 5 5

  • 15. 
    What will be the output of the program if the array begins 1200 in memory ??
    • A. 

      1200, 1202, 1204

    • B. 

      1200, 1200, 1200

    • C. 

      1200, 1204, 1208

    • D. 

      1200, 1202, 1200

  • 16. 
    Output of the following code??
    • A. 

      Error

    • B. 

      IndiaBIX

    • C. 

      BIX

    • D. 

      Wrong syntax

  • 17. 
    Which one do you like?
    • A. 

      Error: in structure declaration

    • B. 

      Linker Error

    • C. 

      No Error

    • D. 

      Undefined

  • 18. 
    The maximum combined length of the command-line arguments including the spaces between adjacent arguments is ??
    • A. 

      128 characters

    • B. 

      256 characters

    • C. 

      67 characters

    • D. 

      It may vary from one operating system to another

  • 19. 
    What is the output of the following ??
    • A. 

      Error: in Array declaration

    • B. 

      Error: in printf declaration

    • C. 

      Unspecified character in printf

    • D. 

      No error

  • 20. 
    What is the output of following program?
    • A. 

      10

    • B. 

      11

    • C. 

      Errror

    • D. 

      13

  • 21. 
    Which of the following is an incorrect way of accessing ith array element using pointers int arr[10],*p,i=2; p=arr;
    • A. 

      *i[p]

    • B. 

      *(i+p)

    • C. 

      P[i]

    • D. 

      *(p+i)

  • 22. 
    C Programming was created at ______ by Dennis Ritchie.
    • A. 

      L & T Labs

    • B. 

      Stanford lab

    • C. 

      AT & T Bell lab

    • D. 

      MIT lab

  • 23. 
    What is the correct order of the build process of a C program??
    • A. 

      Type -> Preprocess -> Link -> Assemble

    • B. 

      Type -> Compile -> Link -> Assemble

    • C. 

      Type -> Preprocess -> Link -> Compile

    • D. 

      Type -> Preprocess -> Compile -> Assemble

  • 24. 
    Which of the following statements is true??
    • A. 

      Global variables get priority over local variables of the same name.

    • B. 

      Out of all the local variables of same name, local variable of the outermost block i.e. least local variable gets the priority.

    • C. 

      Local variables get the priority over global variables of the same name.

    • D. 

      Redefinition of a variable is OK, redeclaration doesn't.

  • 25. 
    Which of the following is a valid variable name??
    • A. 

      Int

    • B. 

      Stack-Queue

    • C. 

      TotalArea

    • D. 

      $hello

Back to Top Back to top