C Programming Hardest Quiz Test!

37 Questions | Attempts: 765
Share

SettingsSettingsSettings
C Programming Hardest Quiz Test! - Quiz

This quiz is the C Programming Hardest Test that programming students should try and tackle before they sit for their certification exams. Do you feel like you have what it takes to tackle it based on what you have learned so far? How about you give it a try and see how well you will do?


Questions and Answers
  • 1. 
    What statement can print \n on screen?
    • A. 

      Printf("\\n");

    • B. 

      Printf("n\")

    • C. 

      Printf('\\n')

    • D. 

      Printf("\n")

  • 2. 
    The address stored in the pointer variable is of type?
    • A. 

      Int

    • B. 

      Float 

    • C. 

      Array

    • D. 

      String

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

      11 11 11

    • B. 

      Compile time error

    • C. 

      Segmentation  fault/code trash

    • D. 

      12 12 undefined value

  • 4. 
    What will be printed? int a = 15;  int b = 0;  b = (a % 7);    printf("\n\n%i\n", b);
    • A. 

      0

    • B. 

      1

    • C. 

      7

    • D. 

      15

  • 5. 
    The operators . , !! , < , = if arranged in ascending order of precedence reads?
    • A. 

      .,!!,<,=

    • B. 

      =,<,!!,.

    • C. 

      =,!!,<,.

    • D. 

      <,!!,=,.

  • 6. 
    Pain:Misery::?
    • A. 

      Ignore::greet

    • B. 

      Ignorance::confusion

    • C. 

      Disease:poverty

    • D. 

      Despair:lonliness

  • 7. 
    A clock is so placed that at 12 noon its minutes hand points towards north-east, in which direction does its hour hand points at 1.30p.m?  
    • A. 

      North

    • B. 

      West

    • C. 

      South 

    • D. 

      East

  • 8. 
    Number of letters skipped in between adjacent letters in the series is in the order of 12 ,22,32 . which of the following series observes the above rule
    • A. 

      CEJT

    • B. 

      EGLO

    • C. 

      EGLP

    • D. 

      RTWZ

  • 9. 
    Which one of the four equations will be correct? given interchanges: signs "-" and "*" , numbers 3 and 6. 
    • A. 

      6-3*2=9

    • B. 

      6*3-4=15

    • C. 

      3-6*8=10

    • D. 

      3*6-4=33

  • 10. 
    In a row of 10 boys, when Rohith was shifted by 2 places towards the left he became 7th from the left end what was his earlier position from the right end of the row?
    • A. 

      1

    • B. 

      2

    • C. 

      4

    • D. 

      6

  • 11. 
    4,23,60,121,___?
  • 12. 
    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Which letter should be 9th letter to the left of 9th letter from the right if the first half of the given alphabets is reversed
    • A. 

    • B. 

      E

    • C. 

      F

    • D. 

      I

  • 13. 
    Umbrella is to rain what goggles are to?
    • A. 

      Light 

    • B. 

      Glare

    • C. 

      Sun

    • D. 

      Beam

  • 14. 
    Odd man out.
    • A. 

      Billiards

    • B. 

      Basketball

    • C. 

      Snookers

    • D. 

      Table tennis

  • 15. 
    According to ANSI specifications which is the correct way of declaring main when it receives command-line arguments?
    • A. 

      Int main(int argc,char *argv[])

    • B. 

      Int main(){int argc ; char *argv);

    • C. 

      None

    • D. 

      Int main {argc,argv)int argc; char *argv;

  • 16. 
    Char *s[10] defines an array of ___________
    • A. 

      None

    • B. 

      String to pointer 

    • C. 

      Pointers to strings

    • D. 

      Both pointers to string and strings to pointers

  • 17. 
    Which header file should be included to use functions like malloc() and calloc()?
    • A. 

      Dos.h

    • B. 

      Alloc.h

    • C. 

      Stdlib.h

    • D. 

      Memory.h

  • 18. 
    What gets printed? printf("%d\n",4 ?:8);
    • A. 

      8

    • B. 

      4

    • C. 

      Null

    • D. 

      Compiler error

  • 19. 
    1   11   21   1211 111221   ________
    • A. 

      213211

    • B. 

      312211

    • C. 

      122311

    • D. 

      312221

  • 20. 
    Which keyword is used for coming out of recursion?
    • A. 

      Break 

    • B. 

      Return

    • C. 

      Exit

    • D. 

      All the above

    • E. 

      Continue

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

      Yes 

    • B. 

      No

    • C. 

      Compile time error

    • D. 

      Yes no

  • 22. 
    How many tokens are there in the following?       if(csi==100);
    • A. 

      6

    • B. 

      7

    • C. 

      5

    • D. 

      4

  • 23. 
    C programming:the given expression P-=Q+1 is same as
    • A. 

      P=P-Q-1

    • B. 

      P=P-Q+1

    • C. 

      P=-P+Q+1

    • D. 

      NONE

  • 24. 
    A pointer is a C which has not been initialized is know as:
    • A. 

      Far pointer

    • B. 

      Void pointer

    • C. 

      Null pointer

    • D. 

      Wild pointer

  • 25. 
    Which of the following does not represent a valid storage class in C?
    • A. 

      Static

    • B. 

      Union

    • C. 

      Extern

    • D. 

      Automatic

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.