Test 3

  1. First operating system designed using C programming language.
    DOS       Windows       UNIX       Mac      
  2. Which of the following variable cannot be used by switch-case statement?
    char       int       float       double      
  3. The prototype of a function can be used to
    Define a function       Declare a function      
    Erase a function       None of the above      
  4. To print a double value which format specifier can be used?
    %L       %lf       %LF       None      
  5. Which of the following is a logical operator?
    !       &&       ||       All the above      

  6. Which of the following is used in mode string to open the file in binary mode?
    a       b       B       bin      
  7. Which of these is an invalid dataname?
    wd-count       wd_count       w4count       wdcountabcd      
  8. Which of the following is the correct usage of conditional operators used in C?
    a>b ? c=30 : c=40;                a>b ? c=30;      
    max = a>b ? a>c?a:c:b>c?b:c       return (a>b)?(a:b)      
  9. Which of the following data type uses %e format specifier?
    int       float       char       double      
  10. Which of the following format specifier is used for unsigned char?
    %c       %u       %uc       None      

No comments:

Post a Comment

Total Pageviews