C Programming Trivia Quiz On Format Specifiers!

20 Questions | Total Attempts: 38

SettingsSettingsSettings
Please wait...
C Programming Trivia Quiz On Format Specifiers!

Below is a C programming trivia quiz of format specifiers. According to our classes Format specifier is used during input and output. It is a way to tell the compiler what type of data is in a variable during taking input or printing. Take up this test and get to see just how much you got to understand through the study!


Questions and Answers
  • 1. 
    Why programmers find goto keyword seductive?
    • A. 

      Unreliable

    • B. 

      Unreadable

    • C. 

      Hard to debug

    • D. 

      All of those

  • 2. 
    Which thing do we write under two brace () in case-control structure?
    • A. 

      Statement

    • B. 

      Expression

    • C. 

      Constant value

    • D. 

      Any variable

  • 3. 
    Which one of the format modifier for unsigned int?
    • A. 

      %d

    • B. 

      %u

    • C. 

      %ld

    • D. 

      %lf

  • 4. 
    Which of these comes on secondary constants.
    • A. 

      Character constant

    • B. 

      Pointer

  • 5. 
    When you declare a variable of char type what's its range? example: char i = 'a'
    • A. 

      0 to 255

    • B. 

      -128 to 127

  • 6. 
    When continue is encountered  inside any loop, control automatically passes to the __________of the loop?
  • 7. 
    What is the proper syntax for do-while?
    • A. 

      Do { statement} while {condition};

    • B. 

      Do { statement} while {condition}{statement}

    • C. 

      Do { statement} while (condition) {statement}

    • D. 

      Do { statement} while (condition) {statement};

  • 8. 
    What is the default or initial value of the static storage class?
    • A. 

      One

    • B. 

      Zero

    • C. 

      Garbage value

    • D. 

      No one of these

  • 9. 
    What do we call *?
    • A. 

      Address of

    • B. 

      Value at

  • 10. 
    There are __________ keywords in c language?
  • 11. 
    One function which is   __________ important to declare in C programming.?
  • 12. 
    Is c a middle-level language?
    • A. 

      True

    • B. 

      False

  • 13. 
    Int a = 1; printf ("%d%d",a,++a,a++); What is the output of the following program?
    • A. 

      122

    • B. 

      123

    • C. 

      331

    • D. 

      321

  • 14. 
    How many types of storage classes in C are_______?
  • 15. 
    How many types of comments in C language ________ ?
  • 16. 
    How many bytes long double store in memory?
    • A. 

      4

    • B. 

      8

    • C. 

      10

    • D. 

      12

  • 17. 
    C is a _________ sensitive.
  • 18. 
    Break keyword _________out of a loop instantly?
  • 19. 
    Both the inverted comma's should point to the left eg: 'b' is a true statement.
    • A. 

      True

    • B. 

      False

  • 20. 
    A break is usually associated with an __________?